Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a92089810 | ||
|
|
211c487297 | ||
|
|
3f3c5a753f | ||
|
|
d1d0168793 | ||
|
|
a1f6e207f4 | ||
|
|
de4e56ace0 | ||
|
|
6c5ca7ebec | ||
|
|
d9f3d319fb | ||
|
|
4fd3289739 | ||
|
|
1a267c58f3 | ||
|
|
745a1b7838 | ||
|
|
7e62e08b5d | ||
|
|
2328bf8779 | ||
|
|
1fb35ae110 | ||
|
|
91278f67ac | ||
|
|
f8121e364d | ||
|
|
5c0ff26585 | ||
|
|
7366fc201d | ||
|
|
6ce7deb1df | ||
|
|
b80a28f65d | ||
|
|
4f7f7769be | ||
|
|
a79dcca89f | ||
|
|
17a7427e04 | ||
|
|
43abd5f525 | ||
|
|
660fe4e087 | ||
|
|
3b9d03bb2e | ||
|
|
1cbbe3bb12 | ||
|
|
a79e9f56a1 | ||
|
|
3b39de3852 | ||
|
|
0526b8dbfc | ||
|
|
3aeca2942b | ||
|
|
591b96206d | ||
|
|
b2c8e748c3 | ||
|
|
be9feced65 | ||
|
|
f73ed3ef36 | ||
|
|
cf1fabaecf | ||
|
|
ac8446b30c | ||
|
|
abb802bc92 | ||
|
|
9cc2cd8240 | ||
|
|
efbbde74fc | ||
|
|
ba5a02b5f5 | ||
|
|
e035ba20ac | ||
|
|
116b6ee1b5 | ||
|
|
8d1736c047 | ||
|
|
4408f3a3ac | ||
|
|
058edbe9c5 | ||
|
|
0c5211c1a6 | ||
|
|
7a5ef6249e | ||
|
|
5fa64a9e26 | ||
|
|
48d2dbd885 | ||
|
|
254e218a7b | ||
|
|
e44cf73a45 | ||
|
|
61589add1b | ||
|
|
046f51daf6 | ||
|
|
4c3b6a660e | ||
|
|
5145a0c181 | ||
|
|
95fc6c0fd3 | ||
|
|
84621a26cb | ||
|
|
60652cdf22 | ||
|
|
a37045036e | ||
|
|
3887f6f836 | ||
|
|
fcdb31dc3c | ||
|
|
f4ee507a17 | ||
|
|
58881bc317 | ||
|
|
42d39a81e4 | ||
|
|
f818e334eb | ||
|
|
e861a0a4eb | ||
|
|
611ff12a3d | ||
|
|
9ac9d72082 | ||
|
|
aa30b39525 | ||
|
|
91161b95c3 | ||
|
|
9fe2798b70 | ||
|
|
f233671c27 | ||
|
|
29244d211b | ||
|
|
73b226b30b | ||
|
|
97c7625557 | ||
|
|
0e96488024 | ||
|
|
baf681e98d | ||
|
|
32c9580bfc | ||
|
|
aa09601e88 | ||
|
|
b9805cdc94 | ||
|
|
feb36d43a4 | ||
|
|
92c88d7c13 | ||
|
|
033fc4f480 | ||
|
|
4ca9670e4e | ||
|
|
8fee66c0fa | ||
|
|
9a3b5d7a2c | ||
|
|
f166431b02 | ||
|
|
088fdc6171 | ||
|
|
910c77fd39 | ||
|
|
dacf2875b7 | ||
|
|
cbcc79972a | ||
|
|
0faddf1df6 | ||
|
|
697c8b8e7a | ||
|
|
99403b8246 | ||
|
|
4b7e1003e0 | ||
|
|
5fd6d39aed | ||
|
|
cedb1afe6f | ||
|
|
4bff8e5158 | ||
|
|
474aedde34 | ||
|
|
a8d7566186 | ||
|
|
beb7b54e4a | ||
|
|
d08cc74aad | ||
|
|
27e4279c55 | ||
|
|
6cd2f3b386 | ||
|
|
472c971c5b | ||
|
|
d8756455c2 |
@@ -10,7 +10,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: jacogr/action-merge@d2d64b4545acd93b0a9575177d3d215ae3f92029
|
- uses: jacogr/action-merge@d2d64b4545acd93b0a9575177d3d215ae3f92029
|
||||||
with:
|
with:
|
||||||
checks: build,lint,test
|
checks: pr (build),pr (lint),pr (test)
|
||||||
labels: -auto
|
labels: -auto
|
||||||
strategy: squash
|
strategy: squash
|
||||||
token: ${{ secrets.GH_PAT_BOT }}
|
token: ${{ secrets.GH_PAT_BOT }}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
YARN_ENABLE_SCRIPTS: false
|
YARN_ENABLE_SCRIPTS: false
|
||||||
steps:
|
steps:
|
||||||
- uses: dessant/lock-threads@f1a42f0f44eb83361d617a014663e1a76cf282d2
|
- uses: dessant/lock-threads@c1b35aecc5cdb1a34539d14196df55838bb2f836
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GH_PAT_BOT }}
|
github-token: ${{ secrets.GH_PAT_BOT }}
|
||||||
issue-lock-inactive-days: '7'
|
issue-lock-inactive-days: '7'
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ on: [pull_request]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pr:
|
pr:
|
||||||
|
continue-on-error: true
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
step: ['lint', 'test', 'build', 'deno']
|
step: ['lint', 'test', 'build', 'deno']
|
||||||
name: ${{ matrix.step }}
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
YARN_ENABLE_SCRIPTS: false
|
YARN_ENABLE_SCRIPTS: false
|
||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 'lts/*'
|
node-version: 'lts/*'
|
||||||
- uses: denoland/setup-deno@004814556e37c54a2f6e31384c9e18e983317366
|
- uses: denoland/setup-deno@v1
|
||||||
with:
|
with:
|
||||||
deno-version: vx.x.x
|
deno-version: vx.x.x
|
||||||
- name: ${{ matrix.step }}
|
- name: ${{ matrix.step }}
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
step: ['build:release']
|
step: ['build:release']
|
||||||
name: ${{ matrix.step }}
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
YARN_ENABLE_SCRIPTS: false
|
YARN_ENABLE_SCRIPTS: false
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
name: 'Close stale issues and PRs'
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: '55 1/3 * * *'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
stale:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
YARN_ENABLE_SCRIPTS: false
|
|
||||||
steps:
|
|
||||||
- uses: actions/stale@98ed4cb500039dbcccf4bd9bedada4d0187f2757
|
|
||||||
with:
|
|
||||||
repo-token: ${{ secrets.GH_PAT_BOT }}
|
|
||||||
stale-issue-message: 'This issue has been open for 21 days with no activity and is not labelled as an enhancement. It will be closed in 7 days.'
|
|
||||||
stale-issue-label: 'stale'
|
|
||||||
exempt-issue-labels: '-size-l,-size-m,-size-s,-size-xl,-size-xs,[bug]'
|
|
||||||
days-before-stale: 21
|
|
||||||
days-before-close: 7
|
|
||||||
@@ -1,5 +1,87 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 10.2.2 Apr 1, 2023
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Support expanded Nimbus lookups to Collators (Thanks to https://github.com/grenade)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||||
|
|
||||||
|
|
||||||
|
## 10.2.1 Mar 25, 2023
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Add support for new Frontier `AccountId20` mapping (Thanks to https://github.com/koushiro)
|
||||||
|
- Adjust MMR RPCs & runtime calls to align with latest (Thanks to https://github.com/Lederstrumpf)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Use Promise resolve/reject to track state in typegen on-chain metadata retrievals
|
||||||
|
- Adjust signing header retrieval, catering for discarded state fallbacks
|
||||||
|
- Add support for `ParachainHost v4` runtime calls
|
||||||
|
- Basic support for markdown generation for different chains (only Kusama & Polkadot currently added)
|
||||||
|
- Add not-to-be-used `ISize` type support (same as `USize`, throwing on use - added for completeness)
|
||||||
|
- Ensure `AccountId20.eq` does not fail on null/undefined inputs
|
||||||
|
- Expand tests around `toU8a()` where the `isBare` flag is is being used
|
||||||
|
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||||
|
|
||||||
|
|
||||||
|
## 10.1.4 Mar 19, 2023
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Add methods for v2 `Metadata_*` runtime calls
|
||||||
|
|
||||||
|
|
||||||
|
## 10.1.3 Mar 15, 2023
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Remove incorrect `.module.` specifiers in typegen code
|
||||||
|
- Mark unsafe RPC methods (and include in `rpc.md` generation)
|
||||||
|
|
||||||
|
|
||||||
|
## 10.1.2 Mar 11, 2023
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Adjust type exports to remove invalid generated exports from `/src/`
|
||||||
|
- Apply missing `/*#__PURE__*/` exports in `api-derive`
|
||||||
|
|
||||||
|
|
||||||
|
## 10.1.1 Mar 11, 2023
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Fix yargs usage inside ESM modules (Thanks to https://github.com/conr2d)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Align runtime APIs with latest Substrate
|
||||||
|
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||||
|
- Use consistent `.js` imports in source files (TS moduleResolution)
|
||||||
|
|
||||||
|
|
||||||
|
## 10.0.1 Mar 4, 2023
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Expose per-endpoint stats for providers (Thanks to https://github.com/jeluard)
|
||||||
|
- Adjust ink! primitive extraction for v4 (Thanks to https://github.com/statictype)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Ensure that provider disconnect clears all subscriptions
|
||||||
|
- Adjust typegen to internally use `import()` (catering for ESM provided types)
|
||||||
|
- Swap TS -> JS compiler to use tsc (from babel)
|
||||||
|
- Adjust all tests to use `node:test` runner (ESM variants)
|
||||||
|
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||||
|
|
||||||
|
|
||||||
## 9.14.2 Feb 19, 2023
|
## 9.14.2 Feb 19, 2023
|
||||||
|
|
||||||
Changes:
|
Changes:
|
||||||
|
|||||||
+7
-3
@@ -1,4 +1,4 @@
|
|||||||
3374 Jaco 9.14.2 (#5500)
|
3422 Jaco 10.2.2 (#5573)
|
||||||
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
|
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
|
||||||
37 Keith Ingram Update contract types and rpc (#4541)
|
37 Keith Ingram Update contract types and rpc (#4541)
|
||||||
35 Stefanie Doll Updated child storage parameters (#1709)
|
35 Stefanie Doll Updated child storage parameters (#1709)
|
||||||
@@ -10,16 +10,16 @@
|
|||||||
10 Axel Chalon Make Enum/Tuple constructor use value directly if instance (#1954)
|
10 Axel Chalon Make Enum/Tuple constructor use value directly if instance (#1954)
|
||||||
5 Chevdor Fix metadata package link (#3458)
|
5 Chevdor Fix metadata package link (#3458)
|
||||||
5 Jake Naviasky Fixing approvalFlagsToBools. (#1250)
|
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 D Use derive customAccount and customLocks for balance overrides (#3248)
|
||||||
4 Alex Wang fix issue that creates duplicate providers (#983)
|
4 Alex Wang fix issue that creates duplicate providers (#983)
|
||||||
4 Alexander Popiak Add asset id in signing (#4009)
|
4 Alexander Popiak Add asset id in signing (#4009)
|
||||||
|
4 Andreea Eftene add type overrides (#5506)
|
||||||
4 Joshy Orndorff spelling; efect -> effect (#2295)
|
4 Joshy Orndorff spelling; efect -> effect (#2295)
|
||||||
4 Julien Eluard Clarified WsProvider constructor parameters documentation (#5404)
|
|
||||||
4 Nantian fix bigint type (#3869)
|
4 Nantian fix bigint type (#3869)
|
||||||
4 Scott Twiname Add support for historical BlockNumber rpc methods (#4574)
|
4 Scott Twiname Add support for historical BlockNumber rpc methods (#4574)
|
||||||
4 Thibaut Sardan no subscription for http (#3127)
|
4 Thibaut Sardan no subscription for http (#3127)
|
||||||
3 André Silva add support for ValidationCodeHash (#3640)
|
3 André Silva add support for ValidationCodeHash (#3640)
|
||||||
3 Andreea Eftene Fix code source type (#5236)
|
|
||||||
3 Antoine Estienne Adapted to display moonbeam author (#3108)
|
3 Antoine Estienne Adapted to display moonbeam author (#3108)
|
||||||
3 Arjan Zijderveld Added `Emergency` to `ElectionPhase` (#3707)
|
3 Arjan Zijderveld Added `Emergency` to `ElectionPhase` (#3707)
|
||||||
3 Ewa Kowalska Handle no council for bounties proposals (#3062)
|
3 Ewa Kowalska Handle no council for bounties proposals (#3062)
|
||||||
@@ -70,6 +70,7 @@
|
|||||||
1 Hyungsuk Kang Update fees.ts (#1014)
|
1 Hyungsuk Kang Update fees.ts (#1014)
|
||||||
1 icodezjb Update SessionKeys (#3035)
|
1 icodezjb Update SessionKeys (#3035)
|
||||||
1 iiiiiiii Make unknownTypes externally accessible (#3263)
|
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 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 Joey don't throw error at `onSocketClose` (#4363)
|
||||||
1 Jordan Allow typegen for custom RPCs (#2876)
|
1 Jordan Allow typegen for custom RPCs (#2876)
|
||||||
@@ -94,9 +95,12 @@
|
|||||||
1 Paul M Fox Basic BTreeMaps codec support (#1474)
|
1 Paul M Fox Basic BTreeMaps codec support (#1474)
|
||||||
1 philipstanislaus Update types for centrifuge chain v1.2.0 (#2424)
|
1 philipstanislaus Update types for centrifuge chain v1.2.0 (#2424)
|
||||||
1 Pierre Krieger Update substrate/connect to 0.7.6 (#4940)
|
1 Pierre Krieger Update substrate/connect to 0.7.6 (#4940)
|
||||||
|
1 Qinxuan Chen Add fp_account::AccountId20 mapping (#5551)
|
||||||
1 qiuhao update DeriveCustom type (#2581)
|
1 qiuhao update DeriveCustom type (#2581)
|
||||||
1 r0t0r-r0t0r Fix memory leak on raw rpc call (#4505)
|
1 r0t0r-r0t0r Fix memory leak on raw rpc call (#4505)
|
||||||
1 Raphael Flechtner fix: typegen disconnect ws on success (#4901)
|
1 Raphael Flechtner fix: typegen disconnect ws on success (#4901)
|
||||||
|
1 rob thijssen support manta author lookup (#5561)
|
||||||
|
1 Robert Hambrock update MMR API (#5479)
|
||||||
1 Rocco Musolino remove broken link (#2671)
|
1 Rocco Musolino remove broken link (#2671)
|
||||||
1 sander2 fix: type generation for nested tuples (#5395)
|
1 sander2 fix: type generation for nested tuples (#5395)
|
||||||
1 satellitex Add BTreeSet<V> Codec (#1639)
|
1 satellitex Add BTreeSet<V> Codec (#1639)
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
module.exports = require('@polkadot/dev/config/babel-config-cjs.cjs');
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
const config = require('@polkadot/dev/config/jest.cjs');
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
...config,
|
|
||||||
moduleNameMapper: {
|
|
||||||
'@polkadot/api-(augment|base|contract|derive)(.*)$': '<rootDir>/packages/api-$1/src/$2',
|
|
||||||
// eslint-disable-next-line sort-keys
|
|
||||||
'@polkadot/api(.*)$': '<rootDir>/packages/api/src/$1',
|
|
||||||
'@polkadot/rpc-(augment|core|provider)(.*)$': '<rootDir>/packages/rpc-$1/src/$2',
|
|
||||||
'@polkadot/typegen(.*)$': '<rootDir>/packages/typegen/src/$1',
|
|
||||||
'@polkadot/types-(augment|codec|create|known|support)(.*)$': '<rootDir>/packages/types-$1/src/$2',
|
|
||||||
// eslint-disable-next-line sort-keys
|
|
||||||
'@polkadot/types(.*)$': '<rootDir>/packages/types/src/$1'
|
|
||||||
},
|
|
||||||
testTimeout: 30000
|
|
||||||
};
|
|
||||||
+13
-14
@@ -1,6 +1,9 @@
|
|||||||
{
|
{
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18.14"
|
||||||
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api#readme",
|
"homepage": "https://github.com/polkadot-js/api#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"packageManager": "yarn@3.2.0",
|
"packageManager": "yarn@3.2.0",
|
||||||
@@ -11,18 +14,18 @@
|
|||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.2",
|
"version": "10.2.2",
|
||||||
"versions": {
|
"versions": {
|
||||||
"git": "9.14.2",
|
"git": "10.2.2",
|
||||||
"npm": "9.14.2"
|
"npm": "10.2.2"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "yarn build:interfaces && polkadot-dev-build-ts",
|
"build": "yarn build:interfaces && polkadot-dev-build-ts",
|
||||||
"build:extra": "(cd packages/typegen && copyfiles scripts/* build)",
|
"build:before": "(cd packages/typegen && polkadot-dev-copy-dir scripts build/scripts)",
|
||||||
"build:interfaces": "polkadot-types-internal-interfaces",
|
"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:metadata": "yarn build:interfaces && polkadot-dev-run-test packages/types/src/metadata/v14",
|
||||||
"build:release": "polkadot-ci-ghact-build",
|
"build:release": "polkadot-ci-ghact-build",
|
||||||
"build:rollup": "polkadot-exec-rollup --config",
|
"build:rollup": "polkadot-exec-rollup --config",
|
||||||
@@ -32,20 +35,16 @@
|
|||||||
"deno": "yarn polkadot-dev-deno-map && yarn build && deno check --import-map=import_map.json mod.ts",
|
"deno": "yarn polkadot-dev-deno-map && yarn build && deno check --import-map=import_map.json mod.ts",
|
||||||
"lint": "polkadot-dev-run-lint",
|
"lint": "polkadot-dev-run-lint",
|
||||||
"postinstall": "polkadot-dev-yarn-only",
|
"postinstall": "polkadot-dev-yarn-only",
|
||||||
"test": "polkadot-dev-run-test --env jest --coverage --forceExit --runInBand ^e2e",
|
"test": "polkadot-dev-run-test --env node ^e2e",
|
||||||
"test:node": "polkadot-dev-run-test --env node ^e2e",
|
"test:node": "polkadot-dev-run-test --env node ^e2e",
|
||||||
"test:one": "polkadot-dev-run-test --detectOpenHandles --forceExit"
|
"test:one": "polkadot-dev-run-test --env node"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.20.12",
|
"@polkadot/dev": "^0.72.29",
|
||||||
"@babel/register": "^7.18.9",
|
|
||||||
"@babel/runtime": "^7.20.13",
|
|
||||||
"@polkadot/dev": "^0.68.38",
|
|
||||||
"@polkadot/typegen": "workspace:packages/typegen",
|
"@polkadot/typegen": "workspace:packages/typegen",
|
||||||
"@types/jest": "^29.4.0",
|
"@types/node": "^18.15.11"
|
||||||
"copyfiles": "^2.4.1"
|
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"typescript": "^4.9.5"
|
"typescript": "^5.0.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||||
"contributors": [],
|
|
||||||
"description": "API generated augmentation",
|
"description": "API generated augmentation",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.0.0"
|
"node": ">=14"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-augment#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-augment#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"maintainers": [],
|
|
||||||
"name": "@polkadot/api-augment",
|
"name": "@polkadot/api-augment",
|
||||||
"repository": {
|
"repository": {
|
||||||
"directory": "packages/api-augment",
|
"directory": "packages/api-augment",
|
||||||
@@ -20,15 +18,15 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.2",
|
"version": "10.2.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.13",
|
"@polkadot/api-base": "10.2.2",
|
||||||
"@polkadot/api-base": "9.14.2",
|
"@polkadot/rpc-augment": "10.2.2",
|
||||||
"@polkadot/rpc-augment": "9.14.2",
|
"@polkadot/types": "10.2.2",
|
||||||
"@polkadot/types": "9.14.2",
|
"@polkadot/types-augment": "10.2.2",
|
||||||
"@polkadot/types-augment": "9.14.2",
|
"@polkadot/types-codec": "10.2.2",
|
||||||
"@polkadot/types-codec": "9.14.2",
|
"@polkadot/util": "^11.1.3",
|
||||||
"@polkadot/util": "^10.4.2"
|
"tslib": "^2.5.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import './substrate';
|
import './substrate/index.js';
|
||||||
|
|
||||||
export { packageInfo } from './packageInfo';
|
export { packageInfo } from './packageInfo.js';
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
import { detectPackage } from '@polkadot/util';
|
import { detectPackage } from '@polkadot/util';
|
||||||
|
|
||||||
import others from './detectOther';
|
import others from './detectOther.js';
|
||||||
import { packageInfo } from './packageInfo';
|
import { packageInfo } from './packageInfo.js';
|
||||||
|
|
||||||
detectPackage(packageInfo, null, others);
|
detectPackage(packageInfo, null, others);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import './detectPackage';
|
import './detectPackage.js';
|
||||||
|
|
||||||
export * from './bundle';
|
export * from './bundle.js';
|
||||||
|
|||||||
@@ -6,10 +6,10 @@
|
|||||||
import '@polkadot/api-base/types/consts';
|
import '@polkadot/api-base/types/consts';
|
||||||
|
|
||||||
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
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 { Codec, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { Perbill, Percent, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
import type { Perbill, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, KusamaRuntimeHoldReason, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
||||||
|
|
||||||
@@ -59,9 +59,24 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
};
|
};
|
||||||
balances: {
|
balances: {
|
||||||
/**
|
/**
|
||||||
* The minimum amount required to keep an account open.
|
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
|
||||||
|
*
|
||||||
|
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
|
||||||
|
* this pallet. However, you do so at your own risk: this will open up a major DoS vector.
|
||||||
|
* In case you have multiple sources of provider references, you may also get unexpected
|
||||||
|
* behaviour if you set this to zero.
|
||||||
|
*
|
||||||
|
* Bottom line: Do yourself a favour and make it at least one!
|
||||||
**/
|
**/
|
||||||
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* 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.
|
* The maximum number of locks that should exist on an account.
|
||||||
* Not strictly enforced, but used for weight estimation.
|
* Not strictly enforced, but used for weight estimation.
|
||||||
@@ -183,72 +198,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[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: {
|
electionProviderMultiPhase: {
|
||||||
/**
|
/**
|
||||||
* The minimum amount of improvement to the solution score that defines a solution as
|
* The minimum amount of improvement to the solution score that defines a solution as
|
||||||
@@ -280,6 +229,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
||||||
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
||||||
minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||||
|
minerMaxWinners: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The priority of the unsigned transaction submitted in the unsigned-phase
|
* The priority of the unsigned transaction submitted in the unsigned-phase
|
||||||
**/
|
**/
|
||||||
@@ -495,6 +445,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* Must be no greater than `MaxQueueLen`.
|
* Must be no greater than `MaxQueueLen`.
|
||||||
**/
|
**/
|
||||||
fifoQueueLen: u32 & AugmentedConst<ApiType>;
|
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.
|
* The number of blocks between consecutive attempts to dequeue bids and create receipts.
|
||||||
*
|
*
|
||||||
@@ -537,10 +491,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* this value multiplied by `Period`.
|
* this value multiplied by `Period`.
|
||||||
**/
|
**/
|
||||||
queueCount: u32 & AugmentedConst<ApiType>;
|
queueCount: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
|
||||||
* The name for the reserve ID.
|
|
||||||
**/
|
|
||||||
reserveId: U8aFixed & AugmentedConst<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* The maximum proportion which may be thawed and the period over which it is reset.
|
* The maximum proportion which may be thawed and the period over which it is reset.
|
||||||
**/
|
**/
|
||||||
@@ -552,9 +502,24 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
};
|
};
|
||||||
nisCounterpartBalances: {
|
nisCounterpartBalances: {
|
||||||
/**
|
/**
|
||||||
* The minimum amount required to keep an account open.
|
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
|
||||||
|
*
|
||||||
|
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
|
||||||
|
* this pallet. However, you do so at your own risk: this will open up a major DoS vector.
|
||||||
|
* In case you have multiple sources of provider references, you may also get unexpected
|
||||||
|
* behaviour if you set this to zero.
|
||||||
|
*
|
||||||
|
* Bottom line: Do yourself a favour and make it at least one!
|
||||||
**/
|
**/
|
||||||
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* 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.
|
* The maximum number of locks that should exist on an account.
|
||||||
* Not strictly enforced, but used for weight estimation.
|
* Not strictly enforced, but used for weight estimation.
|
||||||
@@ -601,70 +566,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[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: {
|
proxy: {
|
||||||
/**
|
/**
|
||||||
* The base amount of currency needed to reserve for creating an announcement.
|
* The base amount of currency needed to reserve for creating an announcement.
|
||||||
@@ -979,34 +880,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[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: {
|
transactionPayment: {
|
||||||
/**
|
/**
|
||||||
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
|
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
|
||||||
|
|||||||
@@ -69,35 +69,43 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
};
|
};
|
||||||
balances: {
|
balances: {
|
||||||
/**
|
/**
|
||||||
* Beneficiary account must pre-exist
|
* Beneficiary account must pre-exist.
|
||||||
**/
|
**/
|
||||||
DeadAccount: AugmentedError<ApiType>;
|
DeadAccount: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Value too low to create account due to existential deposit
|
* Value too low to create account due to existential deposit.
|
||||||
**/
|
**/
|
||||||
ExistentialDeposit: AugmentedError<ApiType>;
|
ExistentialDeposit: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* A vesting schedule already exists for this account
|
* A vesting schedule already exists for this account.
|
||||||
**/
|
**/
|
||||||
ExistingVestingSchedule: AugmentedError<ApiType>;
|
ExistingVestingSchedule: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Transfer/payment would kill account.
|
||||||
|
**/
|
||||||
|
Expendability: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Balance too low to send value.
|
* Balance too low to send value.
|
||||||
**/
|
**/
|
||||||
InsufficientBalance: AugmentedError<ApiType>;
|
InsufficientBalance: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Transfer/payment would kill account
|
* Account liquidity restrictions prevent withdrawal.
|
||||||
**/
|
|
||||||
KeepAlive: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Account liquidity restrictions prevent withdrawal
|
|
||||||
**/
|
**/
|
||||||
LiquidityRestrictions: AugmentedError<ApiType>;
|
LiquidityRestrictions: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Number of named reserves exceed MaxReserves
|
* Number of freezes exceed `MaxFreezes`.
|
||||||
|
**/
|
||||||
|
TooManyFreezes: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Number of holds exceed `MaxHolds`.
|
||||||
|
**/
|
||||||
|
TooManyHolds: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Number of named reserves exceed `MaxReserves`.
|
||||||
**/
|
**/
|
||||||
TooManyReserves: AugmentedError<ApiType>;
|
TooManyReserves: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Vesting balance too high to send value
|
* Vesting balance too high to send value.
|
||||||
**/
|
**/
|
||||||
VestingBalance: AugmentedError<ApiType>;
|
VestingBalance: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -270,52 +278,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[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: {
|
crowdloan: {
|
||||||
/**
|
/**
|
||||||
* The fund is already in `NewRaise`
|
* The fund is already in `NewRaise`
|
||||||
@@ -414,109 +376,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[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: {
|
electionProviderMultiPhase: {
|
||||||
/**
|
/**
|
||||||
* Some bound not met
|
* Some bound not met
|
||||||
@@ -1055,6 +914,9 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The portion supplied is beyond the value of the receipt.
|
* The portion supplied is beyond the value of the receipt.
|
||||||
**/
|
**/
|
||||||
PortionTooBig: AugmentedError<ApiType>;
|
PortionTooBig: AugmentedError<ApiType>;
|
||||||
|
Release1: AugmentedError<ApiType>;
|
||||||
|
Release2: AugmentedError<ApiType>;
|
||||||
|
Tah: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The thaw throttle has been reached for this period.
|
* The thaw throttle has been reached for this period.
|
||||||
**/
|
**/
|
||||||
@@ -1078,35 +940,43 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
};
|
};
|
||||||
nisCounterpartBalances: {
|
nisCounterpartBalances: {
|
||||||
/**
|
/**
|
||||||
* Beneficiary account must pre-exist
|
* Beneficiary account must pre-exist.
|
||||||
**/
|
**/
|
||||||
DeadAccount: AugmentedError<ApiType>;
|
DeadAccount: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Value too low to create account due to existential deposit
|
* Value too low to create account due to existential deposit.
|
||||||
**/
|
**/
|
||||||
ExistentialDeposit: AugmentedError<ApiType>;
|
ExistentialDeposit: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* A vesting schedule already exists for this account
|
* A vesting schedule already exists for this account.
|
||||||
**/
|
**/
|
||||||
ExistingVestingSchedule: AugmentedError<ApiType>;
|
ExistingVestingSchedule: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Transfer/payment would kill account.
|
||||||
|
**/
|
||||||
|
Expendability: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Balance too low to send value.
|
* Balance too low to send value.
|
||||||
**/
|
**/
|
||||||
InsufficientBalance: AugmentedError<ApiType>;
|
InsufficientBalance: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Transfer/payment would kill account
|
* Account liquidity restrictions prevent withdrawal.
|
||||||
**/
|
|
||||||
KeepAlive: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Account liquidity restrictions prevent withdrawal
|
|
||||||
**/
|
**/
|
||||||
LiquidityRestrictions: AugmentedError<ApiType>;
|
LiquidityRestrictions: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Number of named reserves exceed MaxReserves
|
* Number of freezes exceed `MaxFreezes`.
|
||||||
|
**/
|
||||||
|
TooManyFreezes: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Number of holds exceed `MaxHolds`.
|
||||||
|
**/
|
||||||
|
TooManyHolds: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Number of named reserves exceed `MaxReserves`.
|
||||||
**/
|
**/
|
||||||
TooManyReserves: AugmentedError<ApiType>;
|
TooManyReserves: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Vesting balance too high to send value
|
* Vesting balance too high to send value.
|
||||||
**/
|
**/
|
||||||
VestingBalance: AugmentedError<ApiType>;
|
VestingBalance: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -1120,6 +990,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* pool at a time.
|
* pool at a time.
|
||||||
**/
|
**/
|
||||||
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Bonding extra is restricted to the exact pending reward amount.
|
||||||
|
**/
|
||||||
|
BondExtraRestricted: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The pools state cannot be changed.
|
* The pools state cannot be changed.
|
||||||
**/
|
**/
|
||||||
@@ -1128,6 +1002,18 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* None of the funds can be withdrawn yet because the bonding duration has not passed.
|
* None of the funds can be withdrawn yet because the bonding duration has not passed.
|
||||||
**/
|
**/
|
||||||
CannotWithdrawAny: AugmentedError<ApiType>;
|
CannotWithdrawAny: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The submitted changes to commission change rate are not allowed.
|
||||||
|
**/
|
||||||
|
CommissionChangeRateNotAllowed: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Not enough blocks have surpassed since the last commission update.
|
||||||
|
**/
|
||||||
|
CommissionChangeThrottled: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The supplied commission exceeds the max allowed commission.
|
||||||
|
**/
|
||||||
|
CommissionExceedsMaximum: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Some error occurred that should never happen. This should be reported to the
|
* Some error occurred that should never happen. This should be reported to the
|
||||||
* maintainers.
|
* maintainers.
|
||||||
@@ -1146,6 +1032,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Pool id provided is not correct/usable.
|
* Pool id provided is not correct/usable.
|
||||||
**/
|
**/
|
||||||
InvalidPoolId: AugmentedError<ApiType>;
|
InvalidPoolId: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The pool's max commission cannot be set higher than the existing value.
|
||||||
|
**/
|
||||||
|
MaxCommissionRestricted: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Too many members in the pool or system.
|
* Too many members in the pool or system.
|
||||||
**/
|
**/
|
||||||
@@ -1170,6 +1060,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* permissions for the pool. Members can never unbond to a value below `MinJoinBond`.
|
* permissions for the pool. Members can never unbond to a value below `MinJoinBond`.
|
||||||
**/
|
**/
|
||||||
MinimumBondNotMet: AugmentedError<ApiType>;
|
MinimumBondNotMet: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* No commission current has been set.
|
||||||
|
**/
|
||||||
|
NoCommissionCurrentSet: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* There is no pending commission to claim.
|
||||||
|
**/
|
||||||
|
NoPendingCommission: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for
|
* A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for
|
||||||
* other members to be permissionlessly unbonded.
|
* other members to be permissionlessly unbonded.
|
||||||
@@ -1477,75 +1375,32 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[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>;
|
ValidatorIndexIdMismatch: 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>;
|
|
||||||
/**
|
/**
|
||||||
* Generic error
|
* Generic error
|
||||||
**/
|
**/
|
||||||
@@ -2098,100 +1953,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[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: {
|
treasury: {
|
||||||
/**
|
/**
|
||||||
* The spend origin is valid but the amount it is allowed to spend is lower than the
|
* The spend origin is valid but the amount it is allowed to spend is lower than the
|
||||||
|
|||||||
@@ -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 { ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
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';
|
||||||
|
|
||||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||||
|
|
||||||
@@ -57,7 +57,11 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* A balance was set by root.
|
* A balance was set by root.
|
||||||
**/
|
**/
|
||||||
BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128, reserved: u128], { who: AccountId32, free: u128, reserved: u128 }>;
|
BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128], { who: AccountId32, free: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some amount was burned from an account.
|
||||||
|
**/
|
||||||
|
Burned: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Some amount was deposited (e.g. for transaction fees).
|
* Some amount was deposited (e.g. for transaction fees).
|
||||||
**/
|
**/
|
||||||
@@ -71,6 +75,22 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* An account was created with some free balance.
|
* An account was created with some free balance.
|
||||||
**/
|
**/
|
||||||
Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: u128 }>;
|
Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: u128 }>;
|
||||||
|
/**
|
||||||
|
* Total issuance was increased by `amount`, creating a credit to be balanced.
|
||||||
|
**/
|
||||||
|
Issued: AugmentedEvent<ApiType, [amount: u128], { amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some balance was locked.
|
||||||
|
**/
|
||||||
|
Locked: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some amount was minted into an account.
|
||||||
|
**/
|
||||||
|
Minted: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Total issuance was decreased by `amount`, creating a debt to be balanced.
|
||||||
|
**/
|
||||||
|
Rescinded: AugmentedEvent<ApiType, [amount: u128], { amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Some balance was reserved (moved from free to reserved).
|
* Some balance was reserved (moved from free to reserved).
|
||||||
**/
|
**/
|
||||||
@@ -80,18 +100,34 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* Final argument indicates the destination balance type.
|
* Final argument indicates the destination balance type.
|
||||||
**/
|
**/
|
||||||
ReserveRepatriated: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus], { from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus }>;
|
ReserveRepatriated: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus], { from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus }>;
|
||||||
|
/**
|
||||||
|
* Some amount was restored into an account.
|
||||||
|
**/
|
||||||
|
Restored: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Some amount was removed from the account (e.g. for misbehavior).
|
* Some amount was removed from the account (e.g. for misbehavior).
|
||||||
**/
|
**/
|
||||||
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some amount was suspended from an account (it can be restored later).
|
||||||
|
**/
|
||||||
|
Suspended: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Transfer succeeded.
|
* Transfer succeeded.
|
||||||
**/
|
**/
|
||||||
Transfer: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;
|
Transfer: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some balance was unlocked.
|
||||||
|
**/
|
||||||
|
Unlocked: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Some balance was unreserved (moved from reserved to free).
|
* Some balance was unreserved (moved from reserved to free).
|
||||||
**/
|
**/
|
||||||
Unreserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
Unreserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* An account was upgraded.
|
||||||
|
**/
|
||||||
|
Upgraded: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
|
||||||
/**
|
/**
|
||||||
* Some amount was withdrawn from the account (e.g. for transaction fees).
|
* Some amount was withdrawn from the account (e.g. for transaction fees).
|
||||||
**/
|
**/
|
||||||
@@ -181,42 +217,6 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[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: {
|
crowdloan: {
|
||||||
/**
|
/**
|
||||||
* A parachain has been moved to `NewRaise`
|
* A parachain has been moved to `NewRaise`
|
||||||
@@ -264,80 +264,6 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[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: {
|
electionProviderMultiPhase: {
|
||||||
/**
|
/**
|
||||||
* An election failed.
|
* An election failed.
|
||||||
@@ -496,7 +422,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* New authority set has been applied.
|
* New authority set has been applied.
|
||||||
**/
|
**/
|
||||||
NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>>], { authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>> }>;
|
NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>], { authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>> }>;
|
||||||
/**
|
/**
|
||||||
* Current authority set has been paused.
|
* Current authority set has been paused.
|
||||||
**/
|
**/
|
||||||
@@ -682,7 +608,11 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* A balance was set by root.
|
* A balance was set by root.
|
||||||
**/
|
**/
|
||||||
BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128, reserved: u128], { who: AccountId32, free: u128, reserved: u128 }>;
|
BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128], { who: AccountId32, free: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some amount was burned from an account.
|
||||||
|
**/
|
||||||
|
Burned: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Some amount was deposited (e.g. for transaction fees).
|
* Some amount was deposited (e.g. for transaction fees).
|
||||||
**/
|
**/
|
||||||
@@ -696,6 +626,22 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* An account was created with some free balance.
|
* An account was created with some free balance.
|
||||||
**/
|
**/
|
||||||
Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: u128 }>;
|
Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: u128 }>;
|
||||||
|
/**
|
||||||
|
* Total issuance was increased by `amount`, creating a credit to be balanced.
|
||||||
|
**/
|
||||||
|
Issued: AugmentedEvent<ApiType, [amount: u128], { amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some balance was locked.
|
||||||
|
**/
|
||||||
|
Locked: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some amount was minted into an account.
|
||||||
|
**/
|
||||||
|
Minted: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Total issuance was decreased by `amount`, creating a debt to be balanced.
|
||||||
|
**/
|
||||||
|
Rescinded: AugmentedEvent<ApiType, [amount: u128], { amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Some balance was reserved (moved from free to reserved).
|
* Some balance was reserved (moved from free to reserved).
|
||||||
**/
|
**/
|
||||||
@@ -705,18 +651,34 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* Final argument indicates the destination balance type.
|
* Final argument indicates the destination balance type.
|
||||||
**/
|
**/
|
||||||
ReserveRepatriated: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus], { from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus }>;
|
ReserveRepatriated: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus], { from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus }>;
|
||||||
|
/**
|
||||||
|
* Some amount was restored into an account.
|
||||||
|
**/
|
||||||
|
Restored: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Some amount was removed from the account (e.g. for misbehavior).
|
* Some amount was removed from the account (e.g. for misbehavior).
|
||||||
**/
|
**/
|
||||||
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some amount was suspended from an account (it can be restored later).
|
||||||
|
**/
|
||||||
|
Suspended: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Transfer succeeded.
|
* Transfer succeeded.
|
||||||
**/
|
**/
|
||||||
Transfer: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;
|
Transfer: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some balance was unlocked.
|
||||||
|
**/
|
||||||
|
Unlocked: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Some balance was unreserved (moved from reserved to free).
|
* Some balance was unreserved (moved from reserved to free).
|
||||||
**/
|
**/
|
||||||
Unreserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
Unreserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* An account was upgraded.
|
||||||
|
**/
|
||||||
|
Upgraded: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
|
||||||
/**
|
/**
|
||||||
* Some amount was withdrawn from the account (e.g. for transaction fees).
|
* Some amount was withdrawn from the account (e.g. for transaction fees).
|
||||||
**/
|
**/
|
||||||
@@ -749,6 +711,22 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A payout has been made to a member.
|
* A payout has been made to a member.
|
||||||
**/
|
**/
|
||||||
PaidOut: AugmentedEvent<ApiType, [member: AccountId32, poolId: u32, payout: u128], { member: AccountId32, poolId: u32, payout: u128 }>;
|
PaidOut: AugmentedEvent<ApiType, [member: AccountId32, poolId: u32, payout: u128], { member: AccountId32, poolId: u32, payout: u128 }>;
|
||||||
|
/**
|
||||||
|
* A pool's commission `change_rate` has been changed.
|
||||||
|
**/
|
||||||
|
PoolCommissionChangeRateUpdated: AugmentedEvent<ApiType, [poolId: u32, changeRate: PalletNominationPoolsCommissionChangeRate], { poolId: u32, changeRate: PalletNominationPoolsCommissionChangeRate }>;
|
||||||
|
/**
|
||||||
|
* Pool commission has been claimed.
|
||||||
|
**/
|
||||||
|
PoolCommissionClaimed: AugmentedEvent<ApiType, [poolId: u32, commission: u128], { poolId: u32, commission: u128 }>;
|
||||||
|
/**
|
||||||
|
* A pool's commission setting has been changed.
|
||||||
|
**/
|
||||||
|
PoolCommissionUpdated: AugmentedEvent<ApiType, [poolId: u32, current: Option<ITuple<[Perbill, AccountId32]>>], { poolId: u32, current: Option<ITuple<[Perbill, AccountId32]>> }>;
|
||||||
|
/**
|
||||||
|
* A pool's maximum commission setting has been changed.
|
||||||
|
**/
|
||||||
|
PoolMaxCommissionUpdated: AugmentedEvent<ApiType, [poolId: u32, maxCommission: Perbill], { poolId: u32, maxCommission: Perbill }>;
|
||||||
/**
|
/**
|
||||||
* The active balance of pool `pool_id` has been slashed to `balance`.
|
* The active balance of pool `pool_id` has been slashed to `balance`.
|
||||||
**/
|
**/
|
||||||
@@ -757,7 +735,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* The roles of a pool have been updated to the given new roles. Note that the depositor
|
* The roles of a pool have been updated to the given new roles. Note that the depositor
|
||||||
* can never change.
|
* can never change.
|
||||||
**/
|
**/
|
||||||
RolesUpdated: AugmentedEvent<ApiType, [root: Option<AccountId32>, stateToggler: Option<AccountId32>, nominator: Option<AccountId32>], { root: Option<AccountId32>, stateToggler: Option<AccountId32>, nominator: Option<AccountId32> }>;
|
RolesUpdated: AugmentedEvent<ApiType, [root: Option<AccountId32>, bouncer: Option<AccountId32>, nominator: Option<AccountId32>], { root: Option<AccountId32>, bouncer: Option<AccountId32>, nominator: Option<AccountId32> }>;
|
||||||
/**
|
/**
|
||||||
* The state of a pool has changed
|
* The state of a pool has changed
|
||||||
**/
|
**/
|
||||||
@@ -810,15 +788,15 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* A candidate was backed. `[candidate, head_data]`
|
* A candidate was backed. `[candidate, head_data]`
|
||||||
**/
|
**/
|
||||||
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV2CandidateReceipt, Bytes, u32, u32]>;
|
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV4CandidateReceipt, Bytes, u32, u32]>;
|
||||||
/**
|
/**
|
||||||
* A candidate was included. `[candidate, head_data]`
|
* A candidate was included. `[candidate, head_data]`
|
||||||
**/
|
**/
|
||||||
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV2CandidateReceipt, Bytes, u32, u32]>;
|
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV4CandidateReceipt, Bytes, u32, u32]>;
|
||||||
/**
|
/**
|
||||||
* A candidate timed out. `[candidate, head_data]`
|
* A candidate timed out. `[candidate, head_data]`
|
||||||
**/
|
**/
|
||||||
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV2CandidateReceipt, Bytes, u32]>;
|
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV4CandidateReceipt, Bytes, u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
@@ -875,11 +853,6 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A dispute has been initiated. \[candidate hash, dispute location\]
|
* A dispute has been initiated. \[candidate hash, dispute location\]
|
||||||
**/
|
**/
|
||||||
DisputeInitiated: AugmentedEvent<ApiType, [H256, PolkadotRuntimeParachainsDisputesDisputeLocation]>;
|
DisputeInitiated: AugmentedEvent<ApiType, [H256, PolkadotRuntimeParachainsDisputesDisputeLocation]>;
|
||||||
/**
|
|
||||||
* A dispute has timed out due to insufficient participation.
|
|
||||||
* `\[para id, candidate hash\]`
|
|
||||||
**/
|
|
||||||
DisputeTimedOut: AugmentedEvent<ApiType, [H256]>;
|
|
||||||
/**
|
/**
|
||||||
* A dispute has concluded with supermajority against a candidate.
|
* A dispute has concluded with supermajority against a candidate.
|
||||||
* Block authors should no longer build on top of this head and should
|
* Block authors should no longer build on top of this head and should
|
||||||
@@ -892,49 +865,6 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[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: {
|
preimage: {
|
||||||
/**
|
/**
|
||||||
* A preimage has ben cleared.
|
* A preimage has ben cleared.
|
||||||
@@ -1320,98 +1250,6 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[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: {
|
transactionPayment: {
|
||||||
/**
|
/**
|
||||||
* A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
|
* A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import '../base';
|
import '../base.js';
|
||||||
import './consts';
|
import './consts.js';
|
||||||
import './errors';
|
import './errors.js';
|
||||||
import './events';
|
import './events.js';
|
||||||
import './query';
|
import './query.js';
|
||||||
import './registry';
|
import './registry.js';
|
||||||
import './runtime';
|
import './runtime.js';
|
||||||
import './tx';
|
import './tx.js';
|
||||||
|
|||||||
@@ -7,11 +7,11 @@ import '@polkadot/api-base/types/storage';
|
|||||||
|
|
||||||
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
||||||
import type { Data } from '@polkadot/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 { BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, 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, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotPrimitivesVstagingExecutorParams, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, 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, 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 { Observable } from '@polkadot/types/types';
|
import type { Observable } from '@polkadot/types/types';
|
||||||
|
|
||||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||||
@@ -151,6 +151,17 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* epoch.
|
* epoch.
|
||||||
**/
|
**/
|
||||||
segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* A list of the last 100 skipped epochs and the corresponding session index
|
||||||
|
* when the epoch was skipped.
|
||||||
|
*
|
||||||
|
* 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 epoch indices, i.e. we need to validate that
|
||||||
|
* a validator was the owner of a given key on a given session, and what the
|
||||||
|
* active epoch index was during that session.
|
||||||
|
**/
|
||||||
|
skippedEpochs: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u64, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
|
* TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
|
||||||
**/
|
**/
|
||||||
@@ -188,6 +199,17 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* NOTE: This is only used in the case that this pallet is used to store balances.
|
* NOTE: This is only used in the case that this pallet is used to store balances.
|
||||||
**/
|
**/
|
||||||
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* Freeze locks on account balances.
|
||||||
|
**/
|
||||||
|
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* Holds on account balances.
|
||||||
|
**/
|
||||||
|
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<{
|
||||||
|
readonly id: KusamaRuntimeHoldReason;
|
||||||
|
readonly amount: u128;
|
||||||
|
} & Struct>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* The total units of outstanding deactivated balance in the system.
|
* The total units of outstanding deactivated balance in the system.
|
||||||
**/
|
**/
|
||||||
@@ -324,36 +346,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[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: {
|
crowdloan: {
|
||||||
/**
|
/**
|
||||||
* The number of auctions that have entered into their ending period so far.
|
* The number of auctions that have entered into their ending period so far.
|
||||||
@@ -377,78 +369,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[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: {
|
dmp: {
|
||||||
/**
|
/**
|
||||||
* A mapping that stores the downward message queue MQC head for each para.
|
* A mapping that stores the downward message queue MQC head for each para.
|
||||||
@@ -931,6 +851,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* NOTE: This is only used in the case that this pallet is used to store balances.
|
* NOTE: This is only used in the case that this pallet is used to store balances.
|
||||||
**/
|
**/
|
||||||
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* Freeze locks on account balances.
|
||||||
|
**/
|
||||||
|
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* Holds on account balances.
|
||||||
|
**/
|
||||||
|
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* The total units of outstanding deactivated balance in the system.
|
* The total units of outstanding deactivated balance in the system.
|
||||||
**/
|
**/
|
||||||
@@ -958,6 +886,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Storage for bonded pools.
|
* Storage for bonded pools.
|
||||||
**/
|
**/
|
||||||
bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* Map from a pool member account to their opted claim permission.
|
||||||
|
**/
|
||||||
|
claimPermissions: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletNominationPoolsClaimPermission>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* Counter for the related counted storage map
|
* Counter for the related counted storage map
|
||||||
**/
|
**/
|
||||||
@@ -982,6 +914,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Counter for the related counted storage map
|
* Counter for the related counted storage map
|
||||||
**/
|
**/
|
||||||
counterForSubPoolsStorage: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
counterForSubPoolsStorage: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* The maximum commission that can be charged by a pool. Used on commission payouts to bound
|
||||||
|
* pool commissions that are > `GlobalMaxCommission`, necessary if a future
|
||||||
|
* `GlobalMaxCommission` is lower than some current pool commissions.
|
||||||
|
**/
|
||||||
|
globalMaxCommission: AugmentedQuery<ApiType, () => Observable<Option<Perbill>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Ever increasing number of all pools created so far.
|
* Ever increasing number of all pools created so far.
|
||||||
**/
|
**/
|
||||||
@@ -1033,13 +971,13 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
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
|
* Reward pools. This is where there rewards for each pool accumulate. When a members payout is
|
||||||
* is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
|
* claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
|
||||||
**/
|
**/
|
||||||
rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,
|
* Groups of unbonding pools. Each group of unbonding pools belongs to a
|
||||||
* hence the name sub-pools. Keyed by the bonded pools account.
|
* 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]>;
|
subPoolsStorage: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsSubPools>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1082,7 +1020,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* The commitments of candidates pending availability, by `ParaId`.
|
* The commitments of candidates pending availability, by `ParaId`.
|
||||||
**/
|
**/
|
||||||
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -1101,7 +1039,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* Scraped on chain data for extracting resolved disputes as well as backing votes.
|
* Scraped on chain data for extracting resolved disputes as well as backing votes.
|
||||||
**/
|
**/
|
||||||
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV2ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
|
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV4ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -1219,7 +1157,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
||||||
* the format will require migration of parachains.
|
* the format will require migration of parachains.
|
||||||
**/
|
**/
|
||||||
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* This is used by the relay-chain to communicate that there are restrictions for performing
|
* This is used by the relay-chain to communicate that there are restrictions for performing
|
||||||
* an upgrade for this parachain.
|
* an upgrade for this parachain.
|
||||||
@@ -1231,7 +1169,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
||||||
* the format will require migration of parachains.
|
* the format will require migration of parachains.
|
||||||
**/
|
**/
|
||||||
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -1248,7 +1186,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* * The number of parachains and parathread multiplexers
|
* * The number of parachains and parathread multiplexers
|
||||||
* * The number of validators divided by `configuration.max_validators_per_core`.
|
* * The number of validators divided by `configuration.max_validators_per_core`.
|
||||||
**/
|
**/
|
||||||
availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<Option<PolkadotPrimitivesV2CoreOccupied>>>, []> & QueryableStorageEntry<ApiType, []>;
|
availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<Option<PolkadotPrimitivesV4CoreOccupied>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* An index used to ensure that only one claim on a parathread exists in the queue or is
|
* 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.
|
* currently being handled by an occupied core.
|
||||||
@@ -1304,7 +1242,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* All ongoing or concluded disputes for the last several sessions.
|
* All ongoing or concluded disputes for the last several sessions.
|
||||||
**/
|
**/
|
||||||
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV2DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV4DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
||||||
/**
|
/**
|
||||||
* Whether the chain is frozen. Starts as `None`. When this is `Some`,
|
* 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,
|
* the chain will not accept any new parachain blocks for backing or inclusion,
|
||||||
@@ -1337,7 +1275,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.
|
* 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.
|
* When in doubt, use `Sessions` API instead.
|
||||||
**/
|
**/
|
||||||
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV2AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV4AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The earliest session for which previous session info is stored.
|
* The earliest session for which previous session info is stored.
|
||||||
**/
|
**/
|
||||||
@@ -1345,13 +1283,13 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* Executor parameter set for a given session index
|
* Executor parameter set for a given session index
|
||||||
**/
|
**/
|
||||||
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesVstagingExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Session information in a rolling window.
|
* Session information in a rolling window.
|
||||||
* Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
|
* Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
|
||||||
* Does not have any entries before the session index in the first session change notification.
|
* Does not have any entries before the session index in the first session change notification.
|
||||||
**/
|
**/
|
||||||
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -1367,7 +1305,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The parachain attestation keys of the validators actively participating in parachain consensus.
|
* The parachain attestation keys of the validators actively participating in parachain consensus.
|
||||||
* This should be the same length as `ActiveValidatorIndices`.
|
* This should be the same length as `ActiveValidatorIndices`.
|
||||||
**/
|
**/
|
||||||
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV2ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV4ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The current session index.
|
* The current session index.
|
||||||
**/
|
**/
|
||||||
@@ -1377,39 +1315,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
phragmenElection: {
|
parasSlashing: {
|
||||||
/**
|
/**
|
||||||
* The present candidate list. A current member or runner-up can never enter this vector
|
* Validators pending dispute slashes.
|
||||||
* and is always implicitly assumed to be a candidate.
|
|
||||||
*
|
|
||||||
* Second element is the deposit.
|
|
||||||
*
|
|
||||||
* Invariant: Always sorted based on account id.
|
|
||||||
**/
|
**/
|
||||||
candidates: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, u128]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsDisputesSlashingPendingSlashes>>, [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, []>;
|
validatorSetCounts: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
|
||||||
* 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]>;
|
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -1996,50 +1910,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[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: {
|
timestamp: {
|
||||||
/**
|
/**
|
||||||
* Did the timestamp get updated in this block?
|
* Did the timestamp get updated in this block?
|
||||||
@@ -2054,23 +1924,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[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: {
|
transactionPayment: {
|
||||||
nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletTransactionPaymentReleases>, []> & QueryableStorageEntry<ApiType, []>;
|
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletTransactionPaymentReleases>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
|||||||
@@ -9,17 +9,18 @@ import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-b
|
|||||||
import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec';
|
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 { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||||
import type { ValidatorSet } from '@polkadot/types/interfaces/beefy';
|
import type { BeefyEquivocationProof, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
||||||
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
||||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||||
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
||||||
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
|
||||||
import type { CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
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 { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||||
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
||||||
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
||||||
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
||||||
@@ -84,8 +85,20 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0x49eaaf1b548a0cb0/1 */
|
/** 0x49eaaf1b548a0cb0/2 */
|
||||||
beefyApi: {
|
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
|
* Return the current active BEEFY validator set
|
||||||
**/
|
**/
|
||||||
@@ -160,47 +173,43 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0x37e397fc7c91f5e4/1 */
|
/** 0x37e397fc7c91f5e4/2 */
|
||||||
metadata: {
|
metadata: {
|
||||||
/**
|
/**
|
||||||
* Returns the metadata of a runtime
|
* Returns the metadata of a runtime
|
||||||
**/
|
**/
|
||||||
metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
|
metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
|
||||||
|
/**
|
||||||
|
* Returns the metadata at a given version.
|
||||||
|
**/
|
||||||
|
metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
|
||||||
|
/**
|
||||||
|
* Returns the supported metadata versions.
|
||||||
|
**/
|
||||||
|
metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
|
||||||
/**
|
/**
|
||||||
* Generic call
|
* Generic call
|
||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0x91d5df18b0d2cf58/1 */
|
/** 0x91d5df18b0d2cf58/2 */
|
||||||
mmrApi: {
|
mmrApi: {
|
||||||
/**
|
/**
|
||||||
* Generate MMR proof for a series of leaves under given indices.
|
* Generate MMR proof for the given block numbers.
|
||||||
**/
|
**/
|
||||||
generateBatchProof: AugmentedCall<ApiType, (leafIndices: Vec<MmrLeafIndex> | (MmrLeafIndex | AnyNumber | Uint8Array)[]) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
||||||
/**
|
|
||||||
* Generate MMR proof for a leaf under given index.
|
|
||||||
**/
|
|
||||||
generateProof: AugmentedCall<ApiType, (leafIndex: MmrLeafIndex | AnyNumber | Uint8Array) => Observable<Result<ITuple<[MmrEncodableOpaqueLeaf, MmrProof]>, MmrError>>>;
|
|
||||||
/**
|
/**
|
||||||
* Return the on-chain MMR root hash.
|
* Return the on-chain MMR root hash.
|
||||||
**/
|
**/
|
||||||
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
root: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
||||||
/**
|
|
||||||
* Verify MMR proof against on-chain MMR for a batch of leaves.
|
|
||||||
**/
|
|
||||||
verifyBatchProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
|
||||||
/**
|
|
||||||
* Verify MMR proof against given root hash or a batch of leaves.
|
|
||||||
**/
|
|
||||||
verifyBatchProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
|
||||||
/**
|
/**
|
||||||
* Verify MMR proof against on-chain MMR.
|
* Verify MMR proof against on-chain MMR.
|
||||||
**/
|
**/
|
||||||
verifyProof: AugmentedCall<ApiType, (leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | { leafIndex?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
verifyProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||||
/**
|
/**
|
||||||
* Verify MMR proof against given root hash.
|
* Verify MMR proof against given root hash.
|
||||||
**/
|
**/
|
||||||
verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | { leafIndex?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||||
/**
|
/**
|
||||||
* Generic call
|
* Generic call
|
||||||
**/
|
**/
|
||||||
@@ -208,10 +217,18 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
};
|
};
|
||||||
/** 0x17a6bc0d0062aeb3/1 */
|
/** 0x17a6bc0d0062aeb3/1 */
|
||||||
nominationPoolsApi: {
|
nominationPoolsApi: {
|
||||||
|
/**
|
||||||
|
* Returns the equivalent points of `new_funds` for a given pool.
|
||||||
|
**/
|
||||||
|
balanceToPoints: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, newFunds: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||||
/**
|
/**
|
||||||
* Returns the pending rewards for the given member.
|
* Returns the pending rewards for the given member.
|
||||||
**/
|
**/
|
||||||
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
||||||
|
/**
|
||||||
|
* Returns the equivalent balance of `points` for a given pool.
|
||||||
|
**/
|
||||||
|
pointsToBalance: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, points: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||||
/**
|
/**
|
||||||
* Generic call
|
* Generic call
|
||||||
**/
|
**/
|
||||||
@@ -228,7 +245,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0xaf2c0297a23e6d3d/2 */
|
/** 0xaf2c0297a23e6d3d/4 */
|
||||||
parachainHost: {
|
parachainHost: {
|
||||||
/**
|
/**
|
||||||
* Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.
|
* Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.
|
||||||
@@ -250,6 +267,10 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
* Checks if the given validation outputs pass the acceptance criteria.
|
* Checks if the given validation outputs pass the acceptance criteria.
|
||||||
**/
|
**/
|
||||||
checkValidationOutputs: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, outputs: CandidateCommitments | { upwardMessages?: any; horizontalMessages?: any; newValidationCode?: any; headData?: any; processedDownwardMessages?: any; hrmpWatermark?: any } | string | Uint8Array) => Observable<bool>>;
|
checkValidationOutputs: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, outputs: CandidateCommitments | { upwardMessages?: any; horizontalMessages?: any; newValidationCode?: any; headData?: any; processedDownwardMessages?: any; hrmpWatermark?: any } | string | Uint8Array) => Observable<bool>>;
|
||||||
|
/**
|
||||||
|
* Returns all onchain disputes.
|
||||||
|
**/
|
||||||
|
disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, DisputeState]>>>>;
|
||||||
/**
|
/**
|
||||||
* Get all the pending inbound messages in the downward message queue for a para.
|
* Get all the pending inbound messages in the downward message queue for a para.
|
||||||
**/
|
**/
|
||||||
@@ -270,6 +291,10 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
* Returns code hashes of PVFs that require pre-checking by validators in the active set.
|
* Returns code hashes of PVFs that require pre-checking by validators in the active set.
|
||||||
**/
|
**/
|
||||||
pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<ValidationCodeHash>>>;
|
pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<ValidationCodeHash>>>;
|
||||||
|
/**
|
||||||
|
* Returns execution parameters for the session.
|
||||||
|
**/
|
||||||
|
sessionExecutorParams: AugmentedCall<ApiType, (sessionIndex: SessionIndex | AnyNumber | Uint8Array) => Observable<Option<ExecutorParams>>>;
|
||||||
/**
|
/**
|
||||||
* Returns the session index expected at a child of the block.
|
* Returns the session index expected at a child of the block.
|
||||||
**/
|
**/
|
||||||
@@ -322,6 +347,17 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
|
/** 0x18ef58a3b67ba770/1 */
|
||||||
|
stakingApi: {
|
||||||
|
/**
|
||||||
|
* Returns the nominations quota for a nominator with a given balance.
|
||||||
|
**/
|
||||||
|
nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
|
||||||
|
/**
|
||||||
|
* Generic call
|
||||||
|
**/
|
||||||
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
|
};
|
||||||
/** 0xd2bc9897eed08f15/3 */
|
/** 0xd2bc9897eed08f15/3 */
|
||||||
taggedTransactionQueue: {
|
taggedTransactionQueue: {
|
||||||
/**
|
/**
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './index';
|
export * from './index.js';
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.14.2' };
|
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '10.2.2' };
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import '@polkadot/api-base/types/consts';
|
|||||||
|
|
||||||
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
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, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { Codec } from '@polkadot/types-codec/types';
|
import type { Codec, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, 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>;
|
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
||||||
|
|
||||||
@@ -59,9 +59,24 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
};
|
};
|
||||||
balances: {
|
balances: {
|
||||||
/**
|
/**
|
||||||
* The minimum amount required to keep an account open.
|
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
|
||||||
|
*
|
||||||
|
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
|
||||||
|
* this pallet. However, you do so at your own risk: this will open up a major DoS vector.
|
||||||
|
* In case you have multiple sources of provider references, you may also get unexpected
|
||||||
|
* behaviour if you set this to zero.
|
||||||
|
*
|
||||||
|
* Bottom line: Do yourself a favour and make it at least one!
|
||||||
**/
|
**/
|
||||||
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* 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.
|
* The maximum number of locks that should exist on an account.
|
||||||
* Not strictly enforced, but used for weight estimation.
|
* Not strictly enforced, but used for weight estimation.
|
||||||
@@ -144,6 +159,26 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
|
convictionVoting: {
|
||||||
|
/**
|
||||||
|
* The maximum number of concurrent votes an account may have.
|
||||||
|
*
|
||||||
|
* Also used to compute weight, an overly large value can lead to extrinsics with large
|
||||||
|
* weight estimation: see `delegate` for instance.
|
||||||
|
**/
|
||||||
|
maxVotes: u32 & 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>;
|
||||||
|
/**
|
||||||
|
* Generic const
|
||||||
|
**/
|
||||||
|
[key: string]: Codec;
|
||||||
|
};
|
||||||
crowdloan: {
|
crowdloan: {
|
||||||
/**
|
/**
|
||||||
* The minimum amount that may be contributed into a crowdloan. Should almost certainly be at
|
* The minimum amount that may be contributed into a crowdloan. Should almost certainly be at
|
||||||
@@ -260,6 +295,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
||||||
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
||||||
minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||||
|
minerMaxWinners: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The priority of the unsigned transaction submitted in the unsigned-phase
|
* The priority of the unsigned transaction submitted in the unsigned-phase
|
||||||
**/
|
**/
|
||||||
@@ -573,6 +609,35 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
|
referenda: {
|
||||||
|
/**
|
||||||
|
* Quantization level for the referendum wakeup scheduler. A higher number will result in
|
||||||
|
* fewer storage reads/writes needed for smaller voters, but also result in delays to the
|
||||||
|
* automatic referendum status changes. Explicit servicing instructions are unaffected.
|
||||||
|
**/
|
||||||
|
alarmInterval: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Maximum size of the referendum queue for a single track.
|
||||||
|
**/
|
||||||
|
maxQueued: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The minimum amount to be used as a deposit for a public referendum proposal.
|
||||||
|
**/
|
||||||
|
submissionDeposit: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Information concerning the different referendum tracks.
|
||||||
|
**/
|
||||||
|
tracks: Vec<ITuple<[u16, PalletReferendaTrackInfo]>> & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The number of blocks after submission that a referendum must begin being decided by.
|
||||||
|
* Once this passes, then anyone may cancel the referendum.
|
||||||
|
**/
|
||||||
|
undecidingTimeout: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic const
|
||||||
|
**/
|
||||||
|
[key: string]: Codec;
|
||||||
|
};
|
||||||
registrar: {
|
registrar: {
|
||||||
/**
|
/**
|
||||||
* The deposit to be paid per byte stored on chain.
|
* The deposit to be paid per byte stored on chain.
|
||||||
|
|||||||
@@ -69,35 +69,43 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
};
|
};
|
||||||
balances: {
|
balances: {
|
||||||
/**
|
/**
|
||||||
* Beneficiary account must pre-exist
|
* Beneficiary account must pre-exist.
|
||||||
**/
|
**/
|
||||||
DeadAccount: AugmentedError<ApiType>;
|
DeadAccount: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Value too low to create account due to existential deposit
|
* Value too low to create account due to existential deposit.
|
||||||
**/
|
**/
|
||||||
ExistentialDeposit: AugmentedError<ApiType>;
|
ExistentialDeposit: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* A vesting schedule already exists for this account
|
* A vesting schedule already exists for this account.
|
||||||
**/
|
**/
|
||||||
ExistingVestingSchedule: AugmentedError<ApiType>;
|
ExistingVestingSchedule: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Transfer/payment would kill account.
|
||||||
|
**/
|
||||||
|
Expendability: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Balance too low to send value.
|
* Balance too low to send value.
|
||||||
**/
|
**/
|
||||||
InsufficientBalance: AugmentedError<ApiType>;
|
InsufficientBalance: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Transfer/payment would kill account
|
* Account liquidity restrictions prevent withdrawal.
|
||||||
**/
|
|
||||||
KeepAlive: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Account liquidity restrictions prevent withdrawal
|
|
||||||
**/
|
**/
|
||||||
LiquidityRestrictions: AugmentedError<ApiType>;
|
LiquidityRestrictions: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Number of named reserves exceed MaxReserves
|
* Number of freezes exceed `MaxFreezes`.
|
||||||
|
**/
|
||||||
|
TooManyFreezes: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Number of holds exceed `MaxHolds`.
|
||||||
|
**/
|
||||||
|
TooManyHolds: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Number of named reserves exceed `MaxReserves`.
|
||||||
**/
|
**/
|
||||||
TooManyReserves: AugmentedError<ApiType>;
|
TooManyReserves: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Vesting balance too high to send value
|
* Vesting balance too high to send value.
|
||||||
**/
|
**/
|
||||||
VestingBalance: AugmentedError<ApiType>;
|
VestingBalance: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -215,6 +223,61 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
|
convictionVoting: {
|
||||||
|
/**
|
||||||
|
* The account is already delegating.
|
||||||
|
**/
|
||||||
|
AlreadyDelegating: 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`.
|
||||||
|
**/
|
||||||
|
AlreadyVoting: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The class ID supplied is invalid.
|
||||||
|
**/
|
||||||
|
BadClass: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The class must be supplied since it is not easily determinable from the state.
|
||||||
|
**/
|
||||||
|
ClassNeeded: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Too high a balance was provided that the account cannot afford.
|
||||||
|
**/
|
||||||
|
InsufficientFunds: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Maximum number of votes reached.
|
||||||
|
**/
|
||||||
|
MaxVotesReached: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Delegation to oneself makes no sense.
|
||||||
|
**/
|
||||||
|
Nonsense: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The actor has no permission to conduct the action.
|
||||||
|
**/
|
||||||
|
NoPermission: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The actor has no permission to conduct the action right now but will do in the future.
|
||||||
|
**/
|
||||||
|
NoPermissionYet: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The account is not currently delegating.
|
||||||
|
**/
|
||||||
|
NotDelegating: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Poll is not ongoing.
|
||||||
|
**/
|
||||||
|
NotOngoing: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The given account did not vote on the poll.
|
||||||
|
**/
|
||||||
|
NotVoter: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic error
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedError<ApiType>;
|
||||||
|
};
|
||||||
council: {
|
council: {
|
||||||
/**
|
/**
|
||||||
* Members are already initialized!
|
* Members are already initialized!
|
||||||
@@ -860,6 +923,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* pool at a time.
|
* pool at a time.
|
||||||
**/
|
**/
|
||||||
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Bonding extra is restricted to the exact pending reward amount.
|
||||||
|
**/
|
||||||
|
BondExtraRestricted: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The pools state cannot be changed.
|
* The pools state cannot be changed.
|
||||||
**/
|
**/
|
||||||
@@ -868,6 +935,18 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* None of the funds can be withdrawn yet because the bonding duration has not passed.
|
* None of the funds can be withdrawn yet because the bonding duration has not passed.
|
||||||
**/
|
**/
|
||||||
CannotWithdrawAny: AugmentedError<ApiType>;
|
CannotWithdrawAny: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The submitted changes to commission change rate are not allowed.
|
||||||
|
**/
|
||||||
|
CommissionChangeRateNotAllowed: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Not enough blocks have surpassed since the last commission update.
|
||||||
|
**/
|
||||||
|
CommissionChangeThrottled: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The supplied commission exceeds the max allowed commission.
|
||||||
|
**/
|
||||||
|
CommissionExceedsMaximum: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Some error occurred that should never happen. This should be reported to the
|
* Some error occurred that should never happen. This should be reported to the
|
||||||
* maintainers.
|
* maintainers.
|
||||||
@@ -886,6 +965,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Pool id provided is not correct/usable.
|
* Pool id provided is not correct/usable.
|
||||||
**/
|
**/
|
||||||
InvalidPoolId: AugmentedError<ApiType>;
|
InvalidPoolId: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The pool's max commission cannot be set higher than the existing value.
|
||||||
|
**/
|
||||||
|
MaxCommissionRestricted: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Too many members in the pool or system.
|
* Too many members in the pool or system.
|
||||||
**/
|
**/
|
||||||
@@ -910,6 +993,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* permissions for the pool. Members can never unbond to a value below `MinJoinBond`.
|
* permissions for the pool. Members can never unbond to a value below `MinJoinBond`.
|
||||||
**/
|
**/
|
||||||
MinimumBondNotMet: AugmentedError<ApiType>;
|
MinimumBondNotMet: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* No commission current has been set.
|
||||||
|
**/
|
||||||
|
NoCommissionCurrentSet: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* There is no pending commission to claim.
|
||||||
|
**/
|
||||||
|
NoPendingCommission: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for
|
* A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for
|
||||||
* other members to be permissionlessly unbonded.
|
* other members to be permissionlessly unbonded.
|
||||||
@@ -1359,6 +1450,64 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
|
referenda: {
|
||||||
|
/**
|
||||||
|
* The referendum index provided is invalid in this context.
|
||||||
|
**/
|
||||||
|
BadReferendum: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The referendum status is invalid for this operation.
|
||||||
|
**/
|
||||||
|
BadStatus: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The track identifier given was invalid.
|
||||||
|
**/
|
||||||
|
BadTrack: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* There are already a full complement of referenda in progress for this track.
|
||||||
|
**/
|
||||||
|
Full: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Referendum's decision deposit is already paid.
|
||||||
|
**/
|
||||||
|
HasDeposit: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The deposit cannot be refunded since none was made.
|
||||||
|
**/
|
||||||
|
NoDeposit: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The deposit refunder is not the depositor.
|
||||||
|
**/
|
||||||
|
NoPermission: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* There was nothing to do in the advancement.
|
||||||
|
**/
|
||||||
|
NothingToDo: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Referendum is not ongoing.
|
||||||
|
**/
|
||||||
|
NotOngoing: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* No track exists for the proposal origin.
|
||||||
|
**/
|
||||||
|
NoTrack: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The preimage does not exist.
|
||||||
|
**/
|
||||||
|
PreimageNotExist: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The queue of the track is empty.
|
||||||
|
**/
|
||||||
|
QueueEmpty: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Any deposit cannot be refunded until after the decision is over.
|
||||||
|
**/
|
||||||
|
Unfinished: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic error
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedError<ApiType>;
|
||||||
|
};
|
||||||
registrar: {
|
registrar: {
|
||||||
/**
|
/**
|
||||||
* The ID is already registered.
|
* The ID is already registered.
|
||||||
@@ -1814,6 +1963,32 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
|
whitelist: {
|
||||||
|
/**
|
||||||
|
* The call was already whitelisted; No-Op.
|
||||||
|
**/
|
||||||
|
CallAlreadyWhitelisted: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The call was not whitelisted.
|
||||||
|
**/
|
||||||
|
CallIsNotWhitelisted: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The weight of the decoded call was higher than the witness.
|
||||||
|
**/
|
||||||
|
InvalidCallWeightWitness: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The preimage of the call hash could not be loaded.
|
||||||
|
**/
|
||||||
|
UnavailablePreImage: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The call could not be decoded.
|
||||||
|
**/
|
||||||
|
UndecodableCall: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic error
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedError<ApiType>;
|
||||||
|
};
|
||||||
xcmPallet: {
|
xcmPallet: {
|
||||||
/**
|
/**
|
||||||
* The given account is not an identifiable sovereign account for any location.
|
* The given account is not an identifiable sovereign account for any location.
|
||||||
|
|||||||
@@ -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 { ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, H256, Perbill } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, H256, Perbill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
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';
|
||||||
|
|
||||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||||
|
|
||||||
@@ -57,7 +57,11 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* A balance was set by root.
|
* A balance was set by root.
|
||||||
**/
|
**/
|
||||||
BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128, reserved: u128], { who: AccountId32, free: u128, reserved: u128 }>;
|
BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128], { who: AccountId32, free: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some amount was burned from an account.
|
||||||
|
**/
|
||||||
|
Burned: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Some amount was deposited (e.g. for transaction fees).
|
* Some amount was deposited (e.g. for transaction fees).
|
||||||
**/
|
**/
|
||||||
@@ -71,6 +75,22 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* An account was created with some free balance.
|
* An account was created with some free balance.
|
||||||
**/
|
**/
|
||||||
Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: u128 }>;
|
Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: u128 }>;
|
||||||
|
/**
|
||||||
|
* Total issuance was increased by `amount`, creating a credit to be balanced.
|
||||||
|
**/
|
||||||
|
Issued: AugmentedEvent<ApiType, [amount: u128], { amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some balance was locked.
|
||||||
|
**/
|
||||||
|
Locked: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some amount was minted into an account.
|
||||||
|
**/
|
||||||
|
Minted: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Total issuance was decreased by `amount`, creating a debt to be balanced.
|
||||||
|
**/
|
||||||
|
Rescinded: AugmentedEvent<ApiType, [amount: u128], { amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Some balance was reserved (moved from free to reserved).
|
* Some balance was reserved (moved from free to reserved).
|
||||||
**/
|
**/
|
||||||
@@ -80,18 +100,34 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* Final argument indicates the destination balance type.
|
* Final argument indicates the destination balance type.
|
||||||
**/
|
**/
|
||||||
ReserveRepatriated: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus], { from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus }>;
|
ReserveRepatriated: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus], { from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus }>;
|
||||||
|
/**
|
||||||
|
* Some amount was restored into an account.
|
||||||
|
**/
|
||||||
|
Restored: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Some amount was removed from the account (e.g. for misbehavior).
|
* Some amount was removed from the account (e.g. for misbehavior).
|
||||||
**/
|
**/
|
||||||
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some amount was suspended from an account (it can be restored later).
|
||||||
|
**/
|
||||||
|
Suspended: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Transfer succeeded.
|
* Transfer succeeded.
|
||||||
**/
|
**/
|
||||||
Transfer: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;
|
Transfer: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some balance was unlocked.
|
||||||
|
**/
|
||||||
|
Unlocked: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Some balance was unreserved (moved from reserved to free).
|
* Some balance was unreserved (moved from reserved to free).
|
||||||
**/
|
**/
|
||||||
Unreserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
Unreserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* An account was upgraded.
|
||||||
|
**/
|
||||||
|
Upgraded: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
|
||||||
/**
|
/**
|
||||||
* Some amount was withdrawn from the account (e.g. for transaction fees).
|
* Some amount was withdrawn from the account (e.g. for transaction fees).
|
||||||
**/
|
**/
|
||||||
@@ -167,6 +203,20 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
};
|
};
|
||||||
|
convictionVoting: {
|
||||||
|
/**
|
||||||
|
* An account has delegated their vote to another account. \[who, target\]
|
||||||
|
**/
|
||||||
|
Delegated: AugmentedEvent<ApiType, [AccountId32, AccountId32]>;
|
||||||
|
/**
|
||||||
|
* An \[account\] has cancelled a previous delegation operation.
|
||||||
|
**/
|
||||||
|
Undelegated: AugmentedEvent<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* Generic event
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
|
};
|
||||||
council: {
|
council: {
|
||||||
/**
|
/**
|
||||||
* A motion was approved by the required threshold.
|
* A motion was approved by the required threshold.
|
||||||
@@ -395,7 +445,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* New authority set has been applied.
|
* New authority set has been applied.
|
||||||
**/
|
**/
|
||||||
NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>>], { authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>> }>;
|
NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>], { authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>> }>;
|
||||||
/**
|
/**
|
||||||
* Current authority set has been paused.
|
* Current authority set has been paused.
|
||||||
**/
|
**/
|
||||||
@@ -566,6 +616,22 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A payout has been made to a member.
|
* A payout has been made to a member.
|
||||||
**/
|
**/
|
||||||
PaidOut: AugmentedEvent<ApiType, [member: AccountId32, poolId: u32, payout: u128], { member: AccountId32, poolId: u32, payout: u128 }>;
|
PaidOut: AugmentedEvent<ApiType, [member: AccountId32, poolId: u32, payout: u128], { member: AccountId32, poolId: u32, payout: u128 }>;
|
||||||
|
/**
|
||||||
|
* A pool's commission `change_rate` has been changed.
|
||||||
|
**/
|
||||||
|
PoolCommissionChangeRateUpdated: AugmentedEvent<ApiType, [poolId: u32, changeRate: PalletNominationPoolsCommissionChangeRate], { poolId: u32, changeRate: PalletNominationPoolsCommissionChangeRate }>;
|
||||||
|
/**
|
||||||
|
* Pool commission has been claimed.
|
||||||
|
**/
|
||||||
|
PoolCommissionClaimed: AugmentedEvent<ApiType, [poolId: u32, commission: u128], { poolId: u32, commission: u128 }>;
|
||||||
|
/**
|
||||||
|
* A pool's commission setting has been changed.
|
||||||
|
**/
|
||||||
|
PoolCommissionUpdated: AugmentedEvent<ApiType, [poolId: u32, current: Option<ITuple<[Perbill, AccountId32]>>], { poolId: u32, current: Option<ITuple<[Perbill, AccountId32]>> }>;
|
||||||
|
/**
|
||||||
|
* A pool's maximum commission setting has been changed.
|
||||||
|
**/
|
||||||
|
PoolMaxCommissionUpdated: AugmentedEvent<ApiType, [poolId: u32, maxCommission: Perbill], { poolId: u32, maxCommission: Perbill }>;
|
||||||
/**
|
/**
|
||||||
* The active balance of pool `pool_id` has been slashed to `balance`.
|
* The active balance of pool `pool_id` has been slashed to `balance`.
|
||||||
**/
|
**/
|
||||||
@@ -574,7 +640,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* The roles of a pool have been updated to the given new roles. Note that the depositor
|
* The roles of a pool have been updated to the given new roles. Note that the depositor
|
||||||
* can never change.
|
* can never change.
|
||||||
**/
|
**/
|
||||||
RolesUpdated: AugmentedEvent<ApiType, [root: Option<AccountId32>, stateToggler: Option<AccountId32>, nominator: Option<AccountId32>], { root: Option<AccountId32>, stateToggler: Option<AccountId32>, nominator: Option<AccountId32> }>;
|
RolesUpdated: AugmentedEvent<ApiType, [root: Option<AccountId32>, bouncer: Option<AccountId32>, nominator: Option<AccountId32>], { root: Option<AccountId32>, bouncer: Option<AccountId32>, nominator: Option<AccountId32> }>;
|
||||||
/**
|
/**
|
||||||
* The state of a pool has changed
|
* The state of a pool has changed
|
||||||
**/
|
**/
|
||||||
@@ -627,15 +693,15 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* A candidate was backed. `[candidate, head_data]`
|
* A candidate was backed. `[candidate, head_data]`
|
||||||
**/
|
**/
|
||||||
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV2CandidateReceipt, Bytes, u32, u32]>;
|
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV4CandidateReceipt, Bytes, u32, u32]>;
|
||||||
/**
|
/**
|
||||||
* A candidate was included. `[candidate, head_data]`
|
* A candidate was included. `[candidate, head_data]`
|
||||||
**/
|
**/
|
||||||
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV2CandidateReceipt, Bytes, u32, u32]>;
|
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV4CandidateReceipt, Bytes, u32, u32]>;
|
||||||
/**
|
/**
|
||||||
* A candidate timed out. `[candidate, head_data]`
|
* A candidate timed out. `[candidate, head_data]`
|
||||||
**/
|
**/
|
||||||
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV2CandidateReceipt, Bytes, u32]>;
|
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV4CandidateReceipt, Bytes, u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
@@ -692,11 +758,6 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A dispute has been initiated. \[candidate hash, dispute location\]
|
* A dispute has been initiated. \[candidate hash, dispute location\]
|
||||||
**/
|
**/
|
||||||
DisputeInitiated: AugmentedEvent<ApiType, [H256, PolkadotRuntimeParachainsDisputesDisputeLocation]>;
|
DisputeInitiated: AugmentedEvent<ApiType, [H256, PolkadotRuntimeParachainsDisputesDisputeLocation]>;
|
||||||
/**
|
|
||||||
* A dispute has timed out due to insufficient participation.
|
|
||||||
* `\[para id, candidate hash\]`
|
|
||||||
**/
|
|
||||||
DisputeTimedOut: AugmentedEvent<ApiType, [H256]>;
|
|
||||||
/**
|
/**
|
||||||
* A dispute has concluded with supermajority against a candidate.
|
* A dispute has concluded with supermajority against a candidate.
|
||||||
* Block authors should no longer build on top of this head and should
|
* Block authors should no longer build on top of this head and should
|
||||||
@@ -797,6 +858,70 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
};
|
};
|
||||||
|
referenda: {
|
||||||
|
/**
|
||||||
|
* A referendum has been approved and its proposal has been scheduled.
|
||||||
|
**/
|
||||||
|
Approved: AugmentedEvent<ApiType, [index: u32], { index: u32 }>;
|
||||||
|
/**
|
||||||
|
* A referendum has been cancelled.
|
||||||
|
**/
|
||||||
|
Cancelled: AugmentedEvent<ApiType, [index: u32, tally: PalletConvictionVotingTally], { index: u32, tally: PalletConvictionVotingTally }>;
|
||||||
|
ConfirmAborted: AugmentedEvent<ApiType, [index: u32], { index: u32 }>;
|
||||||
|
/**
|
||||||
|
* A referendum has ended its confirmation phase and is ready for approval.
|
||||||
|
**/
|
||||||
|
Confirmed: AugmentedEvent<ApiType, [index: u32, tally: PalletConvictionVotingTally], { index: u32, tally: PalletConvictionVotingTally }>;
|
||||||
|
ConfirmStarted: AugmentedEvent<ApiType, [index: u32], { index: u32 }>;
|
||||||
|
/**
|
||||||
|
* The decision deposit has been placed.
|
||||||
|
**/
|
||||||
|
DecisionDepositPlaced: AugmentedEvent<ApiType, [index: u32, who: AccountId32, amount: u128], { index: u32, who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* The decision deposit has been refunded.
|
||||||
|
**/
|
||||||
|
DecisionDepositRefunded: AugmentedEvent<ApiType, [index: u32, who: AccountId32, amount: u128], { index: u32, who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* A referendum has moved into the deciding phase.
|
||||||
|
**/
|
||||||
|
DecisionStarted: AugmentedEvent<ApiType, [index: u32, track: u16, proposal: FrameSupportPreimagesBounded, tally: PalletConvictionVotingTally], { index: u32, track: u16, proposal: FrameSupportPreimagesBounded, tally: PalletConvictionVotingTally }>;
|
||||||
|
/**
|
||||||
|
* A deposit has been slashaed.
|
||||||
|
**/
|
||||||
|
DepositSlashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* A referendum has been killed.
|
||||||
|
**/
|
||||||
|
Killed: AugmentedEvent<ApiType, [index: u32, tally: PalletConvictionVotingTally], { index: u32, tally: PalletConvictionVotingTally }>;
|
||||||
|
/**
|
||||||
|
* Metadata for a referendum has been cleared.
|
||||||
|
**/
|
||||||
|
MetadataCleared: AugmentedEvent<ApiType, [index: u32, hash_: H256], { index: u32, hash_: H256 }>;
|
||||||
|
/**
|
||||||
|
* Metadata for a referendum has been set.
|
||||||
|
**/
|
||||||
|
MetadataSet: AugmentedEvent<ApiType, [index: u32, hash_: H256], { index: u32, hash_: H256 }>;
|
||||||
|
/**
|
||||||
|
* A proposal has been rejected by referendum.
|
||||||
|
**/
|
||||||
|
Rejected: AugmentedEvent<ApiType, [index: u32, tally: PalletConvictionVotingTally], { index: u32, tally: PalletConvictionVotingTally }>;
|
||||||
|
/**
|
||||||
|
* The submission deposit has been refunded.
|
||||||
|
**/
|
||||||
|
SubmissionDepositRefunded: AugmentedEvent<ApiType, [index: u32, who: AccountId32, amount: u128], { index: u32, who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* A referendum has been submitted.
|
||||||
|
**/
|
||||||
|
Submitted: AugmentedEvent<ApiType, [index: u32, track: u16, proposal: FrameSupportPreimagesBounded], { index: u32, track: u16, proposal: FrameSupportPreimagesBounded }>;
|
||||||
|
/**
|
||||||
|
* A referendum has been timed out without being decided.
|
||||||
|
**/
|
||||||
|
TimedOut: AugmentedEvent<ApiType, [index: u32, tally: PalletConvictionVotingTally], { index: u32, tally: PalletConvictionVotingTally }>;
|
||||||
|
/**
|
||||||
|
* Generic event
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
|
};
|
||||||
registrar: {
|
registrar: {
|
||||||
Deregistered: AugmentedEvent<ApiType, [paraId: u32], { paraId: u32 }>;
|
Deregistered: AugmentedEvent<ApiType, [paraId: u32], { paraId: u32 }>;
|
||||||
Registered: AugmentedEvent<ApiType, [paraId: u32, manager: AccountId32], { paraId: u32, manager: AccountId32 }>;
|
Registered: AugmentedEvent<ApiType, [paraId: u32, manager: AccountId32], { paraId: u32, manager: AccountId32 }>;
|
||||||
@@ -1218,6 +1343,15 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
};
|
};
|
||||||
|
whitelist: {
|
||||||
|
CallWhitelisted: AugmentedEvent<ApiType, [callHash: H256], { callHash: H256 }>;
|
||||||
|
WhitelistedCallDispatched: AugmentedEvent<ApiType, [callHash: H256, result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo>], { callHash: H256, result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo> }>;
|
||||||
|
WhitelistedCallRemoved: AugmentedEvent<ApiType, [callHash: H256], { callHash: H256 }>;
|
||||||
|
/**
|
||||||
|
* Generic event
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
|
};
|
||||||
xcmPallet: {
|
xcmPallet: {
|
||||||
/**
|
/**
|
||||||
* Some assets have been claimed from an asset trap
|
* Some assets have been claimed from an asset trap
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import '../base';
|
import '../base.js';
|
||||||
import './consts';
|
import './consts.js';
|
||||||
import './errors';
|
import './errors.js';
|
||||||
import './events';
|
import './events.js';
|
||||||
import './query';
|
import './query.js';
|
||||||
import './registry';
|
import './registry.js';
|
||||||
import './runtime';
|
import './runtime.js';
|
||||||
import './tx';
|
import './tx.js';
|
||||||
|
|||||||
@@ -7,11 +7,11 @@ import '@polkadot/api-base/types/storage';
|
|||||||
|
|
||||||
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
||||||
import type { Data } from '@polkadot/types';
|
import type { Data } from '@polkadot/types';
|
||||||
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u32, u64 } from '@polkadot/types-codec';
|
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotPrimitivesVstagingExecutorParams, 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 { 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 { Observable } from '@polkadot/types/types';
|
import type { Observable } from '@polkadot/types/types';
|
||||||
|
|
||||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||||
@@ -151,6 +151,17 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* epoch.
|
* epoch.
|
||||||
**/
|
**/
|
||||||
segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* A list of the last 100 skipped epochs and the corresponding session index
|
||||||
|
* when the epoch was skipped.
|
||||||
|
*
|
||||||
|
* 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 epoch indices, i.e. we need to validate that
|
||||||
|
* a validator was the owner of a given key on a given session, and what the
|
||||||
|
* active epoch index was during that session.
|
||||||
|
**/
|
||||||
|
skippedEpochs: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u64, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
|
* TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
|
||||||
**/
|
**/
|
||||||
@@ -188,6 +199,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* NOTE: This is only used in the case that this pallet is used to store balances.
|
* NOTE: This is only used in the case that this pallet is used to store balances.
|
||||||
**/
|
**/
|
||||||
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* Freeze locks on account balances.
|
||||||
|
**/
|
||||||
|
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* Holds on account balances.
|
||||||
|
**/
|
||||||
|
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* The total units of outstanding deactivated balance in the system.
|
* The total units of outstanding deactivated balance in the system.
|
||||||
**/
|
**/
|
||||||
@@ -307,6 +326,23 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
|
convictionVoting: {
|
||||||
|
/**
|
||||||
|
* The voting classes which have a non-zero lock requirement and the lock amounts which they
|
||||||
|
* require. The actual amount locked on behalf of this pallet should always be the maximum of
|
||||||
|
* this list.
|
||||||
|
**/
|
||||||
|
classLocksFor: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<ITuple<[u16, u128]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* All voting for a particular voter in a particular voting class. We store the balance for the
|
||||||
|
* number of votes that we have recorded.
|
||||||
|
**/
|
||||||
|
votingFor: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u16 | AnyNumber | Uint8Array) => Observable<PalletConvictionVotingVoteVoting>, [AccountId32, u16]> & QueryableStorageEntry<ApiType, [AccountId32, u16]>;
|
||||||
|
/**
|
||||||
|
* Generic query
|
||||||
|
**/
|
||||||
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
|
};
|
||||||
council: {
|
council: {
|
||||||
/**
|
/**
|
||||||
* The current members of the collective. This is stored sorted (just by value).
|
* The current members of the collective. This is stored sorted (just by value).
|
||||||
@@ -802,6 +838,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Storage for bonded pools.
|
* Storage for bonded pools.
|
||||||
**/
|
**/
|
||||||
bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* Map from a pool member account to their opted claim permission.
|
||||||
|
**/
|
||||||
|
claimPermissions: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletNominationPoolsClaimPermission>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* Counter for the related counted storage map
|
* Counter for the related counted storage map
|
||||||
**/
|
**/
|
||||||
@@ -826,6 +866,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Counter for the related counted storage map
|
* Counter for the related counted storage map
|
||||||
**/
|
**/
|
||||||
counterForSubPoolsStorage: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
counterForSubPoolsStorage: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* The maximum commission that can be charged by a pool. Used on commission payouts to bound
|
||||||
|
* pool commissions that are > `GlobalMaxCommission`, necessary if a future
|
||||||
|
* `GlobalMaxCommission` is lower than some current pool commissions.
|
||||||
|
**/
|
||||||
|
globalMaxCommission: AugmentedQuery<ApiType, () => Observable<Option<Perbill>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Ever increasing number of all pools created so far.
|
* Ever increasing number of all pools created so far.
|
||||||
**/
|
**/
|
||||||
@@ -877,13 +923,13 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
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
|
* Reward pools. This is where there rewards for each pool accumulate. When a members payout is
|
||||||
* is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
|
* claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
|
||||||
**/
|
**/
|
||||||
rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,
|
* Groups of unbonding pools. Each group of unbonding pools belongs to a
|
||||||
* hence the name sub-pools. Keyed by the bonded pools account.
|
* 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]>;
|
subPoolsStorage: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsSubPools>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
@@ -926,7 +972,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* The commitments of candidates pending availability, by `ParaId`.
|
* The commitments of candidates pending availability, by `ParaId`.
|
||||||
**/
|
**/
|
||||||
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -945,7 +991,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* Scraped on chain data for extracting resolved disputes as well as backing votes.
|
* Scraped on chain data for extracting resolved disputes as well as backing votes.
|
||||||
**/
|
**/
|
||||||
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV2ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
|
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV4ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -1063,7 +1109,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
||||||
* the format will require migration of parachains.
|
* the format will require migration of parachains.
|
||||||
**/
|
**/
|
||||||
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* This is used by the relay-chain to communicate that there are restrictions for performing
|
* This is used by the relay-chain to communicate that there are restrictions for performing
|
||||||
* an upgrade for this parachain.
|
* an upgrade for this parachain.
|
||||||
@@ -1075,7 +1121,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
||||||
* the format will require migration of parachains.
|
* the format will require migration of parachains.
|
||||||
**/
|
**/
|
||||||
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -1092,7 +1138,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* * The number of parachains and parathread multiplexers
|
* * The number of parachains and parathread multiplexers
|
||||||
* * The number of validators divided by `configuration.max_validators_per_core`.
|
* * The number of validators divided by `configuration.max_validators_per_core`.
|
||||||
**/
|
**/
|
||||||
availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<Option<PolkadotPrimitivesV2CoreOccupied>>>, []> & QueryableStorageEntry<ApiType, []>;
|
availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<Option<PolkadotPrimitivesV4CoreOccupied>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* An index used to ensure that only one claim on a parathread exists in the queue or is
|
* 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.
|
* currently being handled by an occupied core.
|
||||||
@@ -1148,7 +1194,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* All ongoing or concluded disputes for the last several sessions.
|
* All ongoing or concluded disputes for the last several sessions.
|
||||||
**/
|
**/
|
||||||
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV2DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV4DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
||||||
/**
|
/**
|
||||||
* Whether the chain is frozen. Starts as `None`. When this is `Some`,
|
* 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,
|
* the chain will not accept any new parachain blocks for backing or inclusion,
|
||||||
@@ -1181,7 +1227,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.
|
* 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.
|
* When in doubt, use `Sessions` API instead.
|
||||||
**/
|
**/
|
||||||
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV2AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV4AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The earliest session for which previous session info is stored.
|
* The earliest session for which previous session info is stored.
|
||||||
**/
|
**/
|
||||||
@@ -1189,13 +1235,13 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* Executor parameter set for a given session index
|
* Executor parameter set for a given session index
|
||||||
**/
|
**/
|
||||||
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesVstagingExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Session information in a rolling window.
|
* Session information in a rolling window.
|
||||||
* Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
|
* Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
|
||||||
* Does not have any entries before the session index in the first session change notification.
|
* Does not have any entries before the session index in the first session change notification.
|
||||||
**/
|
**/
|
||||||
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -1211,7 +1257,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The parachain attestation keys of the validators actively participating in parachain consensus.
|
* The parachain attestation keys of the validators actively participating in parachain consensus.
|
||||||
* This should be the same length as `ActiveValidatorIndices`.
|
* This should be the same length as `ActiveValidatorIndices`.
|
||||||
**/
|
**/
|
||||||
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV2ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV4ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The current session index.
|
* The current session index.
|
||||||
**/
|
**/
|
||||||
@@ -1285,6 +1331,40 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
|
referenda: {
|
||||||
|
/**
|
||||||
|
* The number of referenda being decided currently.
|
||||||
|
**/
|
||||||
|
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
|
||||||
|
* 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: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* 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.
|
||||||
|
**/
|
||||||
|
referendumInfoFor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletReferendaReferendumInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* The sorted list of referenda ready to be decided but not yet being decided, ordered by
|
||||||
|
* conviction-weighted approvals.
|
||||||
|
*
|
||||||
|
* This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
|
||||||
|
**/
|
||||||
|
trackQueue: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[u32, u128]>>>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
||||||
|
/**
|
||||||
|
* Generic query
|
||||||
|
**/
|
||||||
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
|
};
|
||||||
registrar: {
|
registrar: {
|
||||||
/**
|
/**
|
||||||
* The next free `ParaId`.
|
* The next free `ParaId`.
|
||||||
@@ -1915,6 +1995,13 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
|
whitelist: {
|
||||||
|
whitelistedCall: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Null>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||||
|
/**
|
||||||
|
* Generic query
|
||||||
|
**/
|
||||||
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
|
};
|
||||||
xcmPallet: {
|
xcmPallet: {
|
||||||
/**
|
/**
|
||||||
* The existing asset traps.
|
* The existing asset traps.
|
||||||
|
|||||||
@@ -9,17 +9,18 @@ import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-b
|
|||||||
import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec';
|
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 { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||||
import type { ValidatorSet } from '@polkadot/types/interfaces/beefy';
|
import type { BeefyEquivocationProof, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
||||||
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
||||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||||
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
||||||
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
|
||||||
import type { CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
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 { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||||
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
||||||
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
||||||
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
||||||
@@ -84,8 +85,20 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0x49eaaf1b548a0cb0/1 */
|
/** 0x49eaaf1b548a0cb0/2 */
|
||||||
beefyApi: {
|
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
|
* Return the current active BEEFY validator set
|
||||||
**/
|
**/
|
||||||
@@ -160,47 +173,43 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0x37e397fc7c91f5e4/1 */
|
/** 0x37e397fc7c91f5e4/2 */
|
||||||
metadata: {
|
metadata: {
|
||||||
/**
|
/**
|
||||||
* Returns the metadata of a runtime
|
* Returns the metadata of a runtime
|
||||||
**/
|
**/
|
||||||
metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
|
metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
|
||||||
|
/**
|
||||||
|
* Returns the metadata at a given version.
|
||||||
|
**/
|
||||||
|
metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
|
||||||
|
/**
|
||||||
|
* Returns the supported metadata versions.
|
||||||
|
**/
|
||||||
|
metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
|
||||||
/**
|
/**
|
||||||
* Generic call
|
* Generic call
|
||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0x91d5df18b0d2cf58/1 */
|
/** 0x91d5df18b0d2cf58/2 */
|
||||||
mmrApi: {
|
mmrApi: {
|
||||||
/**
|
/**
|
||||||
* Generate MMR proof for a series of leaves under given indices.
|
* Generate MMR proof for the given block numbers.
|
||||||
**/
|
**/
|
||||||
generateBatchProof: AugmentedCall<ApiType, (leafIndices: Vec<MmrLeafIndex> | (MmrLeafIndex | AnyNumber | Uint8Array)[]) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
||||||
/**
|
|
||||||
* Generate MMR proof for a leaf under given index.
|
|
||||||
**/
|
|
||||||
generateProof: AugmentedCall<ApiType, (leafIndex: MmrLeafIndex | AnyNumber | Uint8Array) => Observable<Result<ITuple<[MmrEncodableOpaqueLeaf, MmrProof]>, MmrError>>>;
|
|
||||||
/**
|
/**
|
||||||
* Return the on-chain MMR root hash.
|
* Return the on-chain MMR root hash.
|
||||||
**/
|
**/
|
||||||
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
root: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
||||||
/**
|
|
||||||
* Verify MMR proof against on-chain MMR for a batch of leaves.
|
|
||||||
**/
|
|
||||||
verifyBatchProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
|
||||||
/**
|
|
||||||
* Verify MMR proof against given root hash or a batch of leaves.
|
|
||||||
**/
|
|
||||||
verifyBatchProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
|
||||||
/**
|
/**
|
||||||
* Verify MMR proof against on-chain MMR.
|
* Verify MMR proof against on-chain MMR.
|
||||||
**/
|
**/
|
||||||
verifyProof: AugmentedCall<ApiType, (leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | { leafIndex?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
verifyProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||||
/**
|
/**
|
||||||
* Verify MMR proof against given root hash.
|
* Verify MMR proof against given root hash.
|
||||||
**/
|
**/
|
||||||
verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | { leafIndex?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||||
/**
|
/**
|
||||||
* Generic call
|
* Generic call
|
||||||
**/
|
**/
|
||||||
@@ -208,10 +217,18 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
};
|
};
|
||||||
/** 0x17a6bc0d0062aeb3/1 */
|
/** 0x17a6bc0d0062aeb3/1 */
|
||||||
nominationPoolsApi: {
|
nominationPoolsApi: {
|
||||||
|
/**
|
||||||
|
* Returns the equivalent points of `new_funds` for a given pool.
|
||||||
|
**/
|
||||||
|
balanceToPoints: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, newFunds: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||||
/**
|
/**
|
||||||
* Returns the pending rewards for the given member.
|
* Returns the pending rewards for the given member.
|
||||||
**/
|
**/
|
||||||
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
||||||
|
/**
|
||||||
|
* Returns the equivalent balance of `points` for a given pool.
|
||||||
|
**/
|
||||||
|
pointsToBalance: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, points: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||||
/**
|
/**
|
||||||
* Generic call
|
* Generic call
|
||||||
**/
|
**/
|
||||||
@@ -228,7 +245,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0xaf2c0297a23e6d3d/2 */
|
/** 0xaf2c0297a23e6d3d/4 */
|
||||||
parachainHost: {
|
parachainHost: {
|
||||||
/**
|
/**
|
||||||
* Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.
|
* Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.
|
||||||
@@ -250,6 +267,10 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
* Checks if the given validation outputs pass the acceptance criteria.
|
* Checks if the given validation outputs pass the acceptance criteria.
|
||||||
**/
|
**/
|
||||||
checkValidationOutputs: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, outputs: CandidateCommitments | { upwardMessages?: any; horizontalMessages?: any; newValidationCode?: any; headData?: any; processedDownwardMessages?: any; hrmpWatermark?: any } | string | Uint8Array) => Observable<bool>>;
|
checkValidationOutputs: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, outputs: CandidateCommitments | { upwardMessages?: any; horizontalMessages?: any; newValidationCode?: any; headData?: any; processedDownwardMessages?: any; hrmpWatermark?: any } | string | Uint8Array) => Observable<bool>>;
|
||||||
|
/**
|
||||||
|
* Returns all onchain disputes.
|
||||||
|
**/
|
||||||
|
disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, DisputeState]>>>>;
|
||||||
/**
|
/**
|
||||||
* Get all the pending inbound messages in the downward message queue for a para.
|
* Get all the pending inbound messages in the downward message queue for a para.
|
||||||
**/
|
**/
|
||||||
@@ -270,6 +291,10 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
* Returns code hashes of PVFs that require pre-checking by validators in the active set.
|
* Returns code hashes of PVFs that require pre-checking by validators in the active set.
|
||||||
**/
|
**/
|
||||||
pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<ValidationCodeHash>>>;
|
pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<ValidationCodeHash>>>;
|
||||||
|
/**
|
||||||
|
* Returns execution parameters for the session.
|
||||||
|
**/
|
||||||
|
sessionExecutorParams: AugmentedCall<ApiType, (sessionIndex: SessionIndex | AnyNumber | Uint8Array) => Observable<Option<ExecutorParams>>>;
|
||||||
/**
|
/**
|
||||||
* Returns the session index expected at a child of the block.
|
* Returns the session index expected at a child of the block.
|
||||||
**/
|
**/
|
||||||
@@ -322,6 +347,17 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
|
/** 0x18ef58a3b67ba770/1 */
|
||||||
|
stakingApi: {
|
||||||
|
/**
|
||||||
|
* Returns the nominations quota for a nominator with a given balance.
|
||||||
|
**/
|
||||||
|
nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
|
||||||
|
/**
|
||||||
|
* Generic call
|
||||||
|
**/
|
||||||
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
|
};
|
||||||
/** 0xd2bc9897eed08f15/3 */
|
/** 0xd2bc9897eed08f15/3 */
|
||||||
taggedTransactionQueue: {
|
taggedTransactionQueue: {
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64,
|
|||||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportPreimagesBounded, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV4InherentData, PolkadotPrimitivesV4PvfCheckStatement, PolkadotPrimitivesV4ValidatorAppSignature, PolkadotPrimitivesVstagingAsyncBackingParams, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||||
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
||||||
@@ -91,11 +91,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
};
|
};
|
||||||
balances: {
|
balances: {
|
||||||
/**
|
/**
|
||||||
* Exactly as `transfer`, except the origin must be root and the source account may be
|
* Set the regular balance of a given account.
|
||||||
* specified.
|
*
|
||||||
* ## Complexity
|
* The dispatch origin for this call is `root`.
|
||||||
* - Same as transfer, but additional read and write because the source account is not
|
**/
|
||||||
* assumed to be in the overlay.
|
forceSetBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
||||||
|
/**
|
||||||
|
* Exactly as `transfer_allow_death`, except the origin must be root and the source account
|
||||||
|
* may be specified.
|
||||||
**/
|
**/
|
||||||
forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Compact<u128>]>;
|
forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Compact<u128>]>;
|
||||||
/**
|
/**
|
||||||
@@ -105,39 +108,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
forceUnreserve: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
|
forceUnreserve: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
|
||||||
/**
|
/**
|
||||||
* Set the balances of a given account.
|
* Set the regular balance of a given account; it also takes a reserved balance but this
|
||||||
*
|
* must be the same as the account's current reserved balance.
|
||||||
* This will alter `FreeBalance` and `ReservedBalance` in storage. it will
|
|
||||||
* also alter the total issuance of the system (`TotalIssuance`) appropriately.
|
|
||||||
* If the new free or reserved balance is below the existential deposit,
|
|
||||||
* it will reset the account nonce (`frame_system::AccountNonce`).
|
|
||||||
*
|
*
|
||||||
* The dispatch origin for this call is `root`.
|
* The dispatch origin for this call is `root`.
|
||||||
|
*
|
||||||
|
* WARNING: This call is DEPRECATED! Use `force_set_balance` instead.
|
||||||
**/
|
**/
|
||||||
setBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, newReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;
|
setBalanceDeprecated: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, oldReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;
|
||||||
/**
|
/**
|
||||||
* Transfer some liquid free balance to another account.
|
* Alias for `transfer_allow_death`, provided only for name-wise compatibility.
|
||||||
*
|
*
|
||||||
* `transfer` will set the `FreeBalance` of the sender and receiver.
|
* WARNING: DEPRECATED! Will be released in approximately 3 months.
|
||||||
* If the sender's account is below the existential deposit as a result
|
|
||||||
* of the transfer, the account will be reaped.
|
|
||||||
*
|
|
||||||
* The dispatch origin for this call must be `Signed` by the transactor.
|
|
||||||
*
|
|
||||||
* ## Complexity
|
|
||||||
* - Dependent on arguments but not critical, given proper implementations for input config
|
|
||||||
* types. See related functions below.
|
|
||||||
* - It contains a limited number of reads and writes internally and no complex
|
|
||||||
* computation.
|
|
||||||
*
|
|
||||||
* Related functions:
|
|
||||||
*
|
|
||||||
* - `ensure_can_withdraw` is always called internally but has a bounded complexity.
|
|
||||||
* - Transferring balances to accounts that did not exist before will cause
|
|
||||||
* `T::OnNewAccount::on_new_account` to be called.
|
|
||||||
* - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
|
|
||||||
* - `transfer_keep_alive` works the same way as `transfer`, but has an additional check
|
|
||||||
* that the transfer will not kill the origin account.
|
|
||||||
**/
|
**/
|
||||||
transfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
transfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
||||||
/**
|
/**
|
||||||
@@ -155,19 +137,39 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
||||||
* of the funds the account has, causing the sender account to be killed (false), or
|
* of the funds the account has, causing the sender account to be killed (false), or
|
||||||
* transfer everything except at least the existential deposit, which will guarantee to
|
* transfer everything except at least the existential deposit, which will guarantee to
|
||||||
* keep the sender account alive (true). ## Complexity
|
* keep the sender account alive (true).
|
||||||
* - O(1). Just like transfer, but reading the user's transferable balance first.
|
|
||||||
**/
|
**/
|
||||||
transferAll: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
|
transferAll: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
|
||||||
/**
|
/**
|
||||||
* Same as the [`transfer`] call, but with a check that the transfer will not kill the
|
* Transfer some liquid free balance to another account.
|
||||||
* origin account.
|
|
||||||
*
|
*
|
||||||
* 99% of the time you want [`transfer`] instead.
|
* `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
|
||||||
|
* If the sender's account is below the existential deposit as a result
|
||||||
|
* of the transfer, the account will be reaped.
|
||||||
*
|
*
|
||||||
* [`transfer`]: struct.Pallet.html#method.transfer
|
* The dispatch origin for this call must be `Signed` by the transactor.
|
||||||
|
**/
|
||||||
|
transferAllowDeath: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
||||||
|
/**
|
||||||
|
* Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
|
||||||
|
* kill the origin account.
|
||||||
|
*
|
||||||
|
* 99% of the time you want [`transfer_allow_death`] instead.
|
||||||
|
*
|
||||||
|
* [`transfer_allow_death`]: struct.Pallet.html#method.transfer
|
||||||
**/
|
**/
|
||||||
transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
||||||
|
/**
|
||||||
|
* Upgrade a specified account.
|
||||||
|
*
|
||||||
|
* - `origin`: Must be `Signed`.
|
||||||
|
* - `who`: The account to be upgraded.
|
||||||
|
*
|
||||||
|
* This will waive the transaction fee if at least all but 10% of the accounts needed to
|
||||||
|
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
||||||
|
* possibililty of churn).
|
||||||
|
**/
|
||||||
|
upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -562,6 +564,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
configuration: {
|
configuration: {
|
||||||
|
/**
|
||||||
|
* Set the asynchronous backing parameters.
|
||||||
|
**/
|
||||||
|
setAsyncBackingParams: AugmentedSubmittable<(updated: PolkadotPrimitivesVstagingAsyncBackingParams | { maxCandidateDepth?: any; allowedAncestryLen?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesVstagingAsyncBackingParams]>;
|
||||||
/**
|
/**
|
||||||
* Setting this to true will disable consistency checks for the configuration setters.
|
* Setting this to true will disable consistency checks for the configuration setters.
|
||||||
* Use with caution.
|
* Use with caution.
|
||||||
@@ -575,10 +581,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Set the acceptance period for an included candidate.
|
* Set the acceptance period for an included candidate.
|
||||||
**/
|
**/
|
||||||
setCodeRetentionPeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
setCodeRetentionPeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
/**
|
|
||||||
* Set the dispute conclusion by time out period.
|
|
||||||
**/
|
|
||||||
setDisputeConclusionByTimeOutPeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
||||||
/**
|
/**
|
||||||
* Set the dispute period, in number of sessions to keep for disputes.
|
* Set the dispute period, in number of sessions to keep for disputes.
|
||||||
**/
|
**/
|
||||||
@@ -749,6 +751,130 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
|
convictionVoting: {
|
||||||
|
/**
|
||||||
|
* Delegate the voting power (with some given conviction) of the sending account for a
|
||||||
|
* particular class of polls.
|
||||||
|
*
|
||||||
|
* The balance delegated is locked for as long as it's delegated, and thereafter for the
|
||||||
|
* time appropriate for the conviction's lock period.
|
||||||
|
*
|
||||||
|
* The dispatch origin of this call must be _Signed_, and the signing account must either:
|
||||||
|
* - be delegating already; or
|
||||||
|
* - have no voting activity (if there is, then it will need to be removed/consolidated
|
||||||
|
* through `reap_vote` or `unvote`).
|
||||||
|
*
|
||||||
|
* - `to`: The account whose voting the `target` account's voting power will follow.
|
||||||
|
* - `class`: The class of polls to delegate. To delegate multiple classes, multiple calls
|
||||||
|
* to this function are required.
|
||||||
|
* - `conviction`: The conviction that will be attached to the delegated votes. When the
|
||||||
|
* account is undelegated, the funds will be locked for the corresponding period.
|
||||||
|
* - `balance`: The amount of the account's balance to be used in delegating. This must not
|
||||||
|
* be more than the account's current balance.
|
||||||
|
*
|
||||||
|
* Emits `Delegated`.
|
||||||
|
*
|
||||||
|
* Weight: `O(R)` where R is the number of polls the voter delegating to has
|
||||||
|
* voted on. Weight is initially charged as if maximum votes, but is refunded later.
|
||||||
|
**/
|
||||||
|
delegate: AugmentedSubmittable<(clazz: u16 | AnyNumber | Uint8Array, to: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, conviction: PalletConvictionVotingConviction | 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x' | number | Uint8Array, balance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, MultiAddress, PalletConvictionVotingConviction, u128]>;
|
||||||
|
/**
|
||||||
|
* Remove a vote for a poll.
|
||||||
|
*
|
||||||
|
* If the `target` is equal to the signer, then this function is exactly equivalent to
|
||||||
|
* `remove_vote`. If not equal to the signer, then the vote must have expired,
|
||||||
|
* either because the poll was cancelled, because the voter lost the poll or
|
||||||
|
* because the conviction period is over.
|
||||||
|
*
|
||||||
|
* The dispatch origin of this call must be _Signed_.
|
||||||
|
*
|
||||||
|
* - `target`: The account of the vote to be removed; this account must have voted for poll
|
||||||
|
* `index`.
|
||||||
|
* - `index`: The index of poll of the vote to be removed.
|
||||||
|
* - `class`: The class of the poll.
|
||||||
|
*
|
||||||
|
* Weight: `O(R + log R)` where R is the number of polls that `target` has voted on.
|
||||||
|
* Weight is calculated for the maximum number of vote.
|
||||||
|
**/
|
||||||
|
removeOtherVote: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, clazz: u16 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u16, u32]>;
|
||||||
|
/**
|
||||||
|
* Remove a vote for a poll.
|
||||||
|
*
|
||||||
|
* If:
|
||||||
|
* - the poll was cancelled, or
|
||||||
|
* - the poll is ongoing, or
|
||||||
|
* - the poll has ended such that
|
||||||
|
* - the vote of the account was in opposition to the result; or
|
||||||
|
* - there was no conviction to the account's vote; or
|
||||||
|
* - the account made a split vote
|
||||||
|
* ...then the vote is removed cleanly and a following call to `unlock` may result in more
|
||||||
|
* funds being available.
|
||||||
|
*
|
||||||
|
* If, however, the poll has ended and:
|
||||||
|
* - it finished corresponding to the vote of the account, and
|
||||||
|
* - the account made a standard vote with conviction, and
|
||||||
|
* - the lock period of the conviction is not over
|
||||||
|
* ...then the lock will be aggregated into the overall account's lock, which may involve
|
||||||
|
* *overlocking* (where the two locks are combined into a single lock that is the maximum
|
||||||
|
* of both the amount locked and the time is it locked for).
|
||||||
|
*
|
||||||
|
* The dispatch origin of this call must be _Signed_, and the signer must have a vote
|
||||||
|
* registered for poll `index`.
|
||||||
|
*
|
||||||
|
* - `index`: The index of poll of the vote to be removed.
|
||||||
|
* - `class`: Optional parameter, if given it indicates the class of the poll. For polls
|
||||||
|
* which have finished or are cancelled, this must be `Some`.
|
||||||
|
*
|
||||||
|
* Weight: `O(R + log R)` where R is the number of polls that `target` has voted on.
|
||||||
|
* Weight is calculated for the maximum number of vote.
|
||||||
|
**/
|
||||||
|
removeVote: AugmentedSubmittable<(clazz: Option<u16> | null | Uint8Array | u16 | AnyNumber, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u16>, u32]>;
|
||||||
|
/**
|
||||||
|
* Undelegate the voting power of the sending account for a particular class of polls.
|
||||||
|
*
|
||||||
|
* Tokens may be unlocked following once an amount of time consistent with the lock period
|
||||||
|
* of the conviction with which the delegation was issued has passed.
|
||||||
|
*
|
||||||
|
* The dispatch origin of this call must be _Signed_ and the signing account must be
|
||||||
|
* currently delegating.
|
||||||
|
*
|
||||||
|
* - `class`: The class of polls to remove the delegation from.
|
||||||
|
*
|
||||||
|
* Emits `Undelegated`.
|
||||||
|
*
|
||||||
|
* Weight: `O(R)` where R is the number of polls the voter delegating to has
|
||||||
|
* voted on. Weight is initially charged as if maximum votes, but is refunded later.
|
||||||
|
**/
|
||||||
|
undelegate: AugmentedSubmittable<(clazz: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16]>;
|
||||||
|
/**
|
||||||
|
* Remove the lock caused by prior voting/delegating which has expired within a particular
|
||||||
|
* class.
|
||||||
|
*
|
||||||
|
* The dispatch origin of this call must be _Signed_.
|
||||||
|
*
|
||||||
|
* - `class`: The class of polls to unlock.
|
||||||
|
* - `target`: The account to remove the lock on.
|
||||||
|
*
|
||||||
|
* Weight: `O(R)` with R number of vote of target.
|
||||||
|
**/
|
||||||
|
unlock: AugmentedSubmittable<(clazz: u16 | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, MultiAddress]>;
|
||||||
|
/**
|
||||||
|
* Vote in a poll. If `vote.is_aye()`, the vote is to enact the proposal;
|
||||||
|
* otherwise it is a vote to keep the status quo.
|
||||||
|
*
|
||||||
|
* The dispatch origin of this call must be _Signed_.
|
||||||
|
*
|
||||||
|
* - `poll_index`: The index of the poll to vote for.
|
||||||
|
* - `vote`: The vote configuration.
|
||||||
|
*
|
||||||
|
* Weight: `O(R)` where R is the number of polls the voter has voted on.
|
||||||
|
**/
|
||||||
|
vote: AugmentedSubmittable<(pollIndex: Compact<u32> | AnyNumber | Uint8Array, vote: PalletConvictionVotingVoteAccountVote | { Standard: any } | { Split: any } | { SplitAbstain: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletConvictionVotingVoteAccountVote]>;
|
||||||
|
/**
|
||||||
|
* Generic tx
|
||||||
|
**/
|
||||||
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
|
};
|
||||||
council: {
|
council: {
|
||||||
/**
|
/**
|
||||||
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
||||||
@@ -1371,7 +1497,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* against the extracted offender. If both are valid, the offence
|
* against the extracted offender. If both are valid, the offence
|
||||||
* will be reported.
|
* will be reported.
|
||||||
**/
|
**/
|
||||||
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
||||||
/**
|
/**
|
||||||
* Report voter equivocation/misbehavior. This method will verify the
|
* Report voter equivocation/misbehavior. This method will verify the
|
||||||
* equivocation proof and validate the given key ownership proof
|
* equivocation proof and validate the given key ownership proof
|
||||||
@@ -1383,7 +1509,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* if the block author is defined it will be defined as the equivocation
|
* if the block author is defined it will be defined as the equivocation
|
||||||
* reporter.
|
* reporter.
|
||||||
**/
|
**/
|
||||||
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -1941,8 +2067,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* accumulated rewards, see [`BondExtra`].
|
* accumulated rewards, see [`BondExtra`].
|
||||||
*
|
*
|
||||||
* Bonding extra funds implies an automatic payout of all pending rewards as well.
|
* Bonding extra funds implies an automatic payout of all pending rewards as well.
|
||||||
|
* See `bond_extra_other` to bond pending rewards of `other` members.
|
||||||
**/
|
**/
|
||||||
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | { FreeBalance: any } | { Rewards: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
|
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | { FreeBalance: any } | { Rewards: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
|
||||||
|
/**
|
||||||
|
* `origin` bonds funds from `extra` for some pool member `member` into their respective
|
||||||
|
* pools.
|
||||||
|
*
|
||||||
|
* `origin` can bond extra funds from free balance or pending rewards when `origin ==
|
||||||
|
* other`.
|
||||||
|
*
|
||||||
|
* In the case of `origin != other`, `origin` can only bond extra pending rewards of
|
||||||
|
* `other` members assuming set_claim_permission for the given member is
|
||||||
|
* `PermissionlessAll` or `PermissionlessCompound`.
|
||||||
|
**/
|
||||||
|
bondExtraOther: AugmentedSubmittable<(member: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, extra: PalletNominationPoolsBondExtra | { FreeBalance: any } | { Rewards: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletNominationPoolsBondExtra]>;
|
||||||
/**
|
/**
|
||||||
* Chill on behalf of the pool.
|
* Chill on behalf of the pool.
|
||||||
*
|
*
|
||||||
@@ -1953,15 +2092,32 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* account.
|
* account.
|
||||||
**/
|
**/
|
||||||
chill: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
chill: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
|
/**
|
||||||
|
* Claim pending commission.
|
||||||
|
*
|
||||||
|
* The dispatch origin of this call must be signed by the `root` role of the pool. Pending
|
||||||
|
* commission is paid out and added to total claimed commission`. Total pending commission
|
||||||
|
* is reset to zero. the current.
|
||||||
|
**/
|
||||||
|
claimCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
/**
|
/**
|
||||||
* A bonded member can use this to claim their payout based on the rewards that the pool
|
* A bonded member can use this to claim their payout based on the rewards that the pool
|
||||||
* has accumulated since their last claimed payout (OR since joining if this is there first
|
* has accumulated since their last claimed payout (OR since joining if this is their first
|
||||||
* time claiming rewards). The payout will be transferred to the member's account.
|
* time claiming rewards). The payout will be transferred to the member's account.
|
||||||
*
|
*
|
||||||
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
||||||
* members in the pools stake. Rewards do not "expire".
|
* members in the pools stake. Rewards do not "expire".
|
||||||
|
*
|
||||||
|
* See `claim_payout_other` to caim rewards on bahalf of some `other` pool member.
|
||||||
**/
|
**/
|
||||||
claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
|
/**
|
||||||
|
* `origin` can claim payouts on some pool member `other`'s behalf.
|
||||||
|
*
|
||||||
|
* Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order
|
||||||
|
* for this call to be successful.
|
||||||
|
**/
|
||||||
|
claimPayoutOther: AugmentedSubmittable<(other: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* Create a new delegation pool.
|
* Create a new delegation pool.
|
||||||
*
|
*
|
||||||
@@ -1974,14 +2130,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* creating multiple pools in the same extrinsic.
|
* creating multiple pools in the same extrinsic.
|
||||||
* * `root` - The account to set as [`PoolRoles::root`].
|
* * `root` - The account to set as [`PoolRoles::root`].
|
||||||
* * `nominator` - The account to set as the [`PoolRoles::nominator`].
|
* * `nominator` - The account to set as the [`PoolRoles::nominator`].
|
||||||
* * `state_toggler` - The account to set as the [`PoolRoles::state_toggler`].
|
* * `bouncer` - The account to set as the [`PoolRoles::bouncer`].
|
||||||
*
|
*
|
||||||
* # Note
|
* # Note
|
||||||
*
|
*
|
||||||
* In addition to `amount`, the caller will transfer the existential deposit; so the caller
|
* In addition to `amount`, the caller will transfer the existential deposit; so the caller
|
||||||
* needs at have at least `amount + existential_deposit` transferrable.
|
* needs at have at least `amount + existential_deposit` transferrable.
|
||||||
**/
|
**/
|
||||||
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress]>;
|
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, bouncer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Create a new delegation pool with a previously used pool id
|
* Create a new delegation pool with a previously used pool id
|
||||||
*
|
*
|
||||||
@@ -1990,7 +2146,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* same as `create` with the inclusion of
|
* same as `create` with the inclusion of
|
||||||
* * `pool_id` - `A valid PoolId.
|
* * `pool_id` - `A valid PoolId.
|
||||||
**/
|
**/
|
||||||
createWithPoolId: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress, u32]>;
|
createWithPoolId: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, bouncer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress, u32]>;
|
||||||
/**
|
/**
|
||||||
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
||||||
* pools account and immediately increases the pools bond.
|
* pools account and immediately increases the pools bond.
|
||||||
@@ -2023,6 +2179,44 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* they attempt to unbond.
|
* they attempt to unbond.
|
||||||
**/
|
**/
|
||||||
poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
||||||
|
/**
|
||||||
|
* Allows a pool member to set a claim permission to allow or disallow permissionless
|
||||||
|
* bonding and withdrawing.
|
||||||
|
*
|
||||||
|
* By default, this is `Permissioned`, which implies only the pool member themselves can
|
||||||
|
* claim their pending rewards. If a pool member wishes so, they can set this to
|
||||||
|
* `PermissionlessAll` to allow any account to claim their rewards and bond extra to the
|
||||||
|
* pool.
|
||||||
|
*
|
||||||
|
* # Arguments
|
||||||
|
*
|
||||||
|
* * `origin` - Member of a pool.
|
||||||
|
* * `actor` - Account to claim reward. // improve this
|
||||||
|
**/
|
||||||
|
setClaimPermission: AugmentedSubmittable<(permission: PalletNominationPoolsClaimPermission | 'Permissioned' | 'PermissionlessCompound' | 'PermissionlessWithdraw' | 'PermissionlessAll' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsClaimPermission]>;
|
||||||
|
/**
|
||||||
|
* Set the commission of a pool.
|
||||||
|
* Both a commission percentage and a commission payee must be provided in the `current`
|
||||||
|
* tuple. Where a `current` of `None` is provided, any current commission will be removed.
|
||||||
|
*
|
||||||
|
* - If a `None` is supplied to `new_commission`, existing commission will be removed.
|
||||||
|
**/
|
||||||
|
setCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newCommission: Option<ITuple<[Perbill, AccountId32]>> | null | Uint8Array | ITuple<[Perbill, AccountId32]> | [Perbill | AnyNumber | Uint8Array, AccountId32 | string | Uint8Array]) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[Perbill, AccountId32]>>]>;
|
||||||
|
/**
|
||||||
|
* Set the commission change rate for a pool.
|
||||||
|
*
|
||||||
|
* Initial change rate is not bounded, whereas subsequent updates can only be more
|
||||||
|
* restrictive than the current.
|
||||||
|
**/
|
||||||
|
setCommissionChangeRate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, changeRate: PalletNominationPoolsCommissionChangeRate | { maxIncrease?: any; minDelay?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsCommissionChangeRate]>;
|
||||||
|
/**
|
||||||
|
* Set the maximum commission of a pool.
|
||||||
|
*
|
||||||
|
* - Initial max can be set to any `Perbill`, and only smaller values thereafter.
|
||||||
|
* - Current commission will be lowered in the event it is higher than a new max
|
||||||
|
* commission.
|
||||||
|
**/
|
||||||
|
setCommissionMax: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, maxCommission: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Perbill]>;
|
||||||
/**
|
/**
|
||||||
* Update configurations for the nomination pools. The origin for this call must be
|
* Update configurations for the nomination pools. The origin for this call must be
|
||||||
* Root.
|
* Root.
|
||||||
@@ -2034,13 +2228,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* * `max_pools` - Set [`MaxPools`].
|
* * `max_pools` - Set [`MaxPools`].
|
||||||
* * `max_members` - Set [`MaxPoolMembers`].
|
* * `max_members` - Set [`MaxPoolMembers`].
|
||||||
* * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`].
|
* * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`].
|
||||||
|
* * `global_max_commission` - Set [`GlobalMaxCommission`].
|
||||||
**/
|
**/
|
||||||
setConfigs: AugmentedSubmittable<(minJoinBond: PalletNominationPoolsConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, minCreateBond: PalletNominationPoolsConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxPools: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxMembers: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxMembersPerPool: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32]>;
|
setConfigs: AugmentedSubmittable<(minJoinBond: PalletNominationPoolsConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, minCreateBond: PalletNominationPoolsConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxPools: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxMembers: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxMembersPerPool: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, globalMaxCommission: PalletNominationPoolsConfigOpPerbill | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpPerbill]>;
|
||||||
/**
|
/**
|
||||||
* Set a new metadata for the pool.
|
* Set a new metadata for the pool.
|
||||||
*
|
*
|
||||||
* The dispatch origin of this call must be signed by the state toggler, or the root role
|
* The dispatch origin of this call must be signed by the bouncer, or the root role of the
|
||||||
* of the pool.
|
* pool.
|
||||||
**/
|
**/
|
||||||
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
||||||
/**
|
/**
|
||||||
@@ -2051,7 +2246,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* The dispatch origin of this call must be either:
|
* The dispatch origin of this call must be either:
|
||||||
*
|
*
|
||||||
* 1. signed by the state toggler, or the root role of the pool,
|
* 1. signed by the bouncer, or the root role of the pool,
|
||||||
* 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
|
* 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
|
||||||
* then the state of the pool can be permissionlessly changed to `Destroying`.
|
* then the state of the pool can be permissionlessly changed to `Destroying`.
|
||||||
**/
|
**/
|
||||||
@@ -2066,8 +2261,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* # Conditions for a permissionless dispatch.
|
* # Conditions for a permissionless dispatch.
|
||||||
*
|
*
|
||||||
* * The pool is blocked and the caller is either the root or state-toggler. This is
|
* * The pool is blocked and the caller is either the root or bouncer. This is refereed to
|
||||||
* refereed to as a kick.
|
* as a kick.
|
||||||
* * The pool is destroying and the member is not the depositor.
|
* * The pool is destroying and the member is not the depositor.
|
||||||
* * The pool is destroying, the member is the depositor and no other members are in the
|
* * The pool is destroying, the member is the depositor and no other members are in the
|
||||||
* pool.
|
* pool.
|
||||||
@@ -2099,7 +2294,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* It emits an event, notifying UIs of the role change. This event is quite relevant to
|
* It emits an event, notifying UIs of the role change. This event is quite relevant to
|
||||||
* most pool members and they should be informed of changes to pool roles.
|
* most pool members and they should be informed of changes to pool roles.
|
||||||
**/
|
**/
|
||||||
updateRoles: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newRoot: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, newNominator: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, newStateToggler: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32]>;
|
updateRoles: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newRoot: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, newNominator: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, newBouncer: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32]>;
|
||||||
/**
|
/**
|
||||||
* Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an
|
* Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an
|
||||||
* error is returned.
|
* error is returned.
|
||||||
@@ -2111,7 +2306,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* * The pool is in destroy mode and the target is not the depositor.
|
* * The pool is in destroy mode and the target is not the depositor.
|
||||||
* * The target is the depositor and they are the only member in the sub pools.
|
* * The target is the depositor and they are the only member in the sub pools.
|
||||||
* * The pool is blocked and the caller is either the root or state-toggler.
|
* * The pool is blocked and the caller is either the root or bouncer.
|
||||||
*
|
*
|
||||||
* # Conditions for permissioned dispatch
|
* # Conditions for permissioned dispatch
|
||||||
*
|
*
|
||||||
@@ -2137,7 +2332,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Enter the paras inherent. This will process bitfields and backed candidates.
|
* Enter the paras inherent. This will process bitfields and backed candidates.
|
||||||
**/
|
**/
|
||||||
enter: AugmentedSubmittable<(data: PolkadotPrimitivesV2InherentData | { bitfields?: any; backedCandidates?: any; disputes?: any; parentHeader?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV2InherentData]>;
|
enter: AugmentedSubmittable<(data: PolkadotPrimitivesV4InherentData | { bitfields?: any; backedCandidates?: any; disputes?: any; parentHeader?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV4InherentData]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -2186,7 +2381,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and
|
* Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and
|
||||||
* enacts the results if that was the last vote before achieving the supermajority.
|
* enacts the results if that was the last vote before achieving the supermajority.
|
||||||
**/
|
**/
|
||||||
includePvfCheckStatement: AugmentedSubmittable<(stmt: PolkadotPrimitivesV2PvfCheckStatement | { accept?: any; subject?: any; sessionIndex?: any; validatorIndex?: any } | string | Uint8Array, signature: PolkadotPrimitivesV2ValidatorAppSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature]>;
|
includePvfCheckStatement: AugmentedSubmittable<(stmt: PolkadotPrimitivesV4PvfCheckStatement | { accept?: any; subject?: any; sessionIndex?: any; validatorIndex?: any } | string | Uint8Array, signature: PolkadotPrimitivesV4ValidatorAppSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV4PvfCheckStatement, PolkadotPrimitivesV4ValidatorAppSignature]>;
|
||||||
/**
|
/**
|
||||||
* Remove the validation code from the storage iff the reference count is 0.
|
* Remove the validation code from the storage iff the reference count is 0.
|
||||||
*
|
*
|
||||||
@@ -2368,7 +2563,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `delay`: The announcement period required of the initial proxy. Will generally be
|
* - `delay`: The announcement period required of the initial proxy. Will generally be
|
||||||
* zero.
|
* zero.
|
||||||
**/
|
**/
|
||||||
addProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
|
addProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
|
||||||
/**
|
/**
|
||||||
* Publish the hash of a proxy-call that will be made in the future.
|
* Publish the hash of a proxy-call that will be made in the future.
|
||||||
*
|
*
|
||||||
@@ -2407,7 +2602,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Fails if there are insufficient funds to pay for deposit.
|
* Fails if there are insufficient funds to pay for deposit.
|
||||||
**/
|
**/
|
||||||
createPure: AugmentedSubmittable<(proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeProxyType, u32, u16]>;
|
createPure: AugmentedSubmittable<(proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeProxyType, u32, u16]>;
|
||||||
/**
|
/**
|
||||||
* Removes a previously spawned pure proxy.
|
* Removes a previously spawned pure proxy.
|
||||||
*
|
*
|
||||||
@@ -2426,7 +2621,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Fails with `NoPermission` in case the caller is not a previously created pure
|
* Fails with `NoPermission` in case the caller is not a previously created pure
|
||||||
* account whose `pure` call has corresponding parameters.
|
* account whose `pure` call has corresponding parameters.
|
||||||
**/
|
**/
|
||||||
killPure: AugmentedSubmittable<(spawner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
killPure: AugmentedSubmittable<(spawner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Dispatch the given `call` from an account that the sender is authorised for through
|
* Dispatch the given `call` from an account that the sender is authorised for through
|
||||||
* `add_proxy`.
|
* `add_proxy`.
|
||||||
@@ -2438,7 +2633,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
|
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
|
||||||
* - `call`: The call to be made by the `real` account.
|
* - `call`: The call to be made by the `real` account.
|
||||||
**/
|
**/
|
||||||
proxy: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
|
proxy: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
|
||||||
/**
|
/**
|
||||||
* Dispatch the given `call` from an account that the sender is authorized for through
|
* Dispatch the given `call` from an account that the sender is authorized for through
|
||||||
* `add_proxy`.
|
* `add_proxy`.
|
||||||
@@ -2452,7 +2647,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
|
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
|
||||||
* - `call`: The call to be made by the `real` account.
|
* - `call`: The call to be made by the `real` account.
|
||||||
**/
|
**/
|
||||||
proxyAnnounced: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
|
proxyAnnounced: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
|
||||||
/**
|
/**
|
||||||
* Remove the given announcement of a delegate.
|
* Remove the given announcement of a delegate.
|
||||||
*
|
*
|
||||||
@@ -2497,7 +2692,103 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `proxy`: The account that the `caller` would like to remove as a proxy.
|
* - `proxy`: The account that the `caller` would like to remove as a proxy.
|
||||||
* - `proxy_type`: The permissions currently enabled for the removed proxy account.
|
* - `proxy_type`: The permissions currently enabled for the removed proxy account.
|
||||||
**/
|
**/
|
||||||
removeProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
|
removeProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
|
||||||
|
/**
|
||||||
|
* Generic tx
|
||||||
|
**/
|
||||||
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
|
};
|
||||||
|
referenda: {
|
||||||
|
/**
|
||||||
|
* Cancel an ongoing referendum.
|
||||||
|
*
|
||||||
|
* - `origin`: must be the `CancelOrigin`.
|
||||||
|
* - `index`: The index of the referendum to be cancelled.
|
||||||
|
*
|
||||||
|
* Emits `Cancelled`.
|
||||||
|
**/
|
||||||
|
cancel: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
|
/**
|
||||||
|
* Cancel an ongoing referendum and slash the deposits.
|
||||||
|
*
|
||||||
|
* - `origin`: must be the `KillOrigin`.
|
||||||
|
* - `index`: The index of the referendum to be cancelled.
|
||||||
|
*
|
||||||
|
* Emits `Killed` and `DepositSlashed`.
|
||||||
|
**/
|
||||||
|
kill: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
|
/**
|
||||||
|
* Advance a referendum onto its next logical state. Only used internally.
|
||||||
|
*
|
||||||
|
* - `origin`: must be `Root`.
|
||||||
|
* - `index`: the referendum to be advanced.
|
||||||
|
**/
|
||||||
|
nudgeReferendum: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
|
/**
|
||||||
|
* Advance a track onto its next logical state. Only used internally.
|
||||||
|
*
|
||||||
|
* - `origin`: must be `Root`.
|
||||||
|
* - `track`: the track to be advanced.
|
||||||
|
*
|
||||||
|
* Action item for when there is now one fewer referendum in the deciding phase and the
|
||||||
|
* `DecidingCount` is not yet updated. This means that we should either:
|
||||||
|
* - begin deciding another referendum (and leave `DecidingCount` alone); or
|
||||||
|
* - decrement `DecidingCount`.
|
||||||
|
**/
|
||||||
|
oneFewerDeciding: AugmentedSubmittable<(track: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16]>;
|
||||||
|
/**
|
||||||
|
* Post the Decision Deposit for a referendum.
|
||||||
|
*
|
||||||
|
* - `origin`: must be `Signed` and the account must have funds available for the
|
||||||
|
* referendum's track's Decision Deposit.
|
||||||
|
* - `index`: The index of the submitted referendum whose Decision Deposit is yet to be
|
||||||
|
* posted.
|
||||||
|
*
|
||||||
|
* Emits `DecisionDepositPlaced`.
|
||||||
|
**/
|
||||||
|
placeDecisionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
|
/**
|
||||||
|
* Refund the Decision Deposit for a closed referendum back to the depositor.
|
||||||
|
*
|
||||||
|
* - `origin`: must be `Signed` or `Root`.
|
||||||
|
* - `index`: The index of a closed referendum whose Decision Deposit has not yet been
|
||||||
|
* refunded.
|
||||||
|
*
|
||||||
|
* Emits `DecisionDepositRefunded`.
|
||||||
|
**/
|
||||||
|
refundDecisionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
|
/**
|
||||||
|
* Refund the Submission Deposit for a closed referendum back to the depositor.
|
||||||
|
*
|
||||||
|
* - `origin`: must be `Signed` or `Root`.
|
||||||
|
* - `index`: The index of a closed referendum whose Submission Deposit has not yet been
|
||||||
|
* refunded.
|
||||||
|
*
|
||||||
|
* Emits `SubmissionDepositRefunded`.
|
||||||
|
**/
|
||||||
|
refundSubmissionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
|
/**
|
||||||
|
* Set or clear metadata of a referendum.
|
||||||
|
*
|
||||||
|
* Parameters:
|
||||||
|
* - `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a
|
||||||
|
* metadata of a finished referendum.
|
||||||
|
* - `index`: The index of a referendum to set or clear metadata for.
|
||||||
|
* - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata.
|
||||||
|
**/
|
||||||
|
setMetadata: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array, maybeHash: Option<H256> | null | Uint8Array | H256 | string) => SubmittableExtrinsic<ApiType>, [u32, Option<H256>]>;
|
||||||
|
/**
|
||||||
|
* Propose a referendum on a privileged action.
|
||||||
|
*
|
||||||
|
* - `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds
|
||||||
|
* available.
|
||||||
|
* - `proposal_origin`: The origin from which the proposal should be executed.
|
||||||
|
* - `proposal`: The proposal.
|
||||||
|
* - `enactment_moment`: The moment that the proposal should be enacted.
|
||||||
|
*
|
||||||
|
* Emits `Submitted`.
|
||||||
|
**/
|
||||||
|
submit: AugmentedSubmittable<(proposalOrigin: PolkadotRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { Origins: any } | { ParachainsOrigin: any } | { XcmPallet: any } | string | Uint8Array, proposal: FrameSupportPreimagesBounded | { Legacy: any } | { Inline: any } | { Lookup: any } | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | { At: any } | { After: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeOriginCaller, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -3573,7 +3864,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* ## Complexity
|
* ## Complexity
|
||||||
* - O(1).
|
* - O(1).
|
||||||
**/
|
**/
|
||||||
dispatchAs: AugmentedSubmittable<(asOrigin: PolkadotRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { ParachainsOrigin: any } | { XcmPallet: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeOriginCaller, Call]>;
|
dispatchAs: AugmentedSubmittable<(asOrigin: PolkadotRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { Origins: any } | { ParachainsOrigin: any } | { XcmPallet: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeOriginCaller, Call]>;
|
||||||
/**
|
/**
|
||||||
* Send a batch of dispatch calls.
|
* Send a batch of dispatch calls.
|
||||||
* Unlike `batch`, it allows errors and won't interrupt.
|
* Unlike `batch`, it allows errors and won't interrupt.
|
||||||
@@ -3723,6 +4014,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
|
whitelist: {
|
||||||
|
dispatchWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array, callEncodedLen: u32 | AnyNumber | Uint8Array, callWeightWitness: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u32, SpWeightsWeightV2Weight]>;
|
||||||
|
dispatchWhitelistedCallWithPreimage: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
|
||||||
|
removeWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
||||||
|
whitelistCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
||||||
|
/**
|
||||||
|
* Generic tx
|
||||||
|
**/
|
||||||
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
|
};
|
||||||
xcmPallet: {
|
xcmPallet: {
|
||||||
/**
|
/**
|
||||||
* Execute an XCM message from a local, signed, origin.
|
* Execute an XCM message from a local, signed, origin.
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ 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 { Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { Codec, ITuple } from '@polkadot/types-codec/types';
|
import type { Codec, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { Perbill, Percent, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
import type { Perbill, Percent, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, KitchensinkRuntimeHoldReason, PalletContractsSchedule, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
||||||
|
|
||||||
@@ -105,9 +105,24 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
};
|
};
|
||||||
balances: {
|
balances: {
|
||||||
/**
|
/**
|
||||||
* The minimum amount required to keep an account open.
|
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
|
||||||
|
*
|
||||||
|
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
|
||||||
|
* this pallet. However, you do so at your own risk: this will open up a major DoS vector.
|
||||||
|
* In case you have multiple sources of provider references, you may also get unexpected
|
||||||
|
* behaviour if you set this to zero.
|
||||||
|
*
|
||||||
|
* Bottom line: Do yourself a favour and make it at least one!
|
||||||
**/
|
**/
|
||||||
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* 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.
|
* The maximum number of locks that should exist on an account.
|
||||||
* Not strictly enforced, but used for weight estimation.
|
* Not strictly enforced, but used for weight estimation.
|
||||||
@@ -184,33 +199,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
contracts: {
|
contracts: {
|
||||||
/**
|
|
||||||
* The maximum number of contracts that can be pending for deletion.
|
|
||||||
*
|
|
||||||
* When a contract is deleted by calling `seal_terminate` it becomes inaccessible
|
|
||||||
* immediately, but the deletion of the storage items it has accumulated is performed
|
|
||||||
* later. The contract is put into the deletion queue. This defines how many
|
|
||||||
* contracts can be queued up at the same time. If that limit is reached `seal_terminate`
|
|
||||||
* will fail. The action must be retried in a later block in that case.
|
|
||||||
*
|
|
||||||
* The reasons for limiting the queue depth are:
|
|
||||||
*
|
|
||||||
* 1. The queue is in storage in order to be persistent between blocks. We want to limit
|
|
||||||
* the amount of storage that can be consumed.
|
|
||||||
* 2. The queue is stored in a vector and needs to be decoded as a whole when reading
|
|
||||||
* it at the end of each block. Longer queues take more weight to decode and hence
|
|
||||||
* limit the amount of items that can be deleted per block.
|
|
||||||
**/
|
|
||||||
deletionQueueDepth: u32 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
|
||||||
* The maximum amount of weight that can be consumed per block for lazy trie removal.
|
|
||||||
*
|
|
||||||
* The amount of weight that is dedicated per block to work on the deletion queue. Larger
|
|
||||||
* values allow more trie keys to be deleted in each block but reduce the amount of
|
|
||||||
* weight that is left for transactions. See [`Self::DeletionQueueDepth`] for more
|
|
||||||
* information about the deletion queue.
|
|
||||||
**/
|
|
||||||
deletionWeightLimit: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* The amount of balance a caller has to pay for each byte of storage.
|
* The amount of balance a caller has to pay for each byte of storage.
|
||||||
*
|
*
|
||||||
@@ -286,6 +274,16 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
|
coreFellowship: {
|
||||||
|
/**
|
||||||
|
* The maximum size in bytes submitted evidence is allowed to be.
|
||||||
|
**/
|
||||||
|
evidenceSize: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic const
|
||||||
|
**/
|
||||||
|
[key: string]: Codec;
|
||||||
|
};
|
||||||
democracy: {
|
democracy: {
|
||||||
/**
|
/**
|
||||||
* Period in blocks where an external proposal may not be re-submitted after being vetoed.
|
* Period in blocks where an external proposal may not be re-submitted after being vetoed.
|
||||||
@@ -383,6 +381,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
||||||
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
||||||
minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||||
|
minerMaxWinners: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The priority of the unsigned transaction submitted in the unsigned-phase
|
* The priority of the unsigned transaction submitted in the unsigned-phase
|
||||||
**/
|
**/
|
||||||
@@ -744,6 +743,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* Must be no greater than `MaxQueueLen`.
|
* Must be no greater than `MaxQueueLen`.
|
||||||
**/
|
**/
|
||||||
fifoQueueLen: u32 & AugmentedConst<ApiType>;
|
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.
|
* The number of blocks between consecutive attempts to dequeue bids and create receipts.
|
||||||
*
|
*
|
||||||
@@ -786,10 +789,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* this value multiplied by `Period`.
|
* this value multiplied by `Period`.
|
||||||
**/
|
**/
|
||||||
queueCount: u32 & AugmentedConst<ApiType>;
|
queueCount: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
|
||||||
* The name for the reserve ID.
|
|
||||||
**/
|
|
||||||
reserveId: U8aFixed & AugmentedConst<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* The maximum proportion which may be thawed and the period over which it is reset.
|
* The maximum proportion which may be thawed and the period over which it is reset.
|
||||||
**/
|
**/
|
||||||
@@ -965,6 +964,33 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
|
salary: {
|
||||||
|
/**
|
||||||
|
* The total budget per cycle.
|
||||||
|
*
|
||||||
|
* This may change over the course of a cycle without any problem.
|
||||||
|
**/
|
||||||
|
budget: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The number of blocks within a cycle which accounts have to claim the payout.
|
||||||
|
*
|
||||||
|
* The number of blocks between sequential payout cycles is the sum of this and
|
||||||
|
* `RegistrationPeriod`.
|
||||||
|
**/
|
||||||
|
payoutPeriod: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The number of blocks within a cycle which accounts have to register their intent to
|
||||||
|
* claim.
|
||||||
|
*
|
||||||
|
* The number of blocks between sequential payout cycles is the sum of this and
|
||||||
|
* `PayoutPeriod`.
|
||||||
|
**/
|
||||||
|
registrationPeriod: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic const
|
||||||
|
**/
|
||||||
|
[key: string]: Codec;
|
||||||
|
};
|
||||||
scheduler: {
|
scheduler: {
|
||||||
/**
|
/**
|
||||||
* The maximum weight that may be scheduled per block for any dispatchables.
|
* The maximum weight that may be scheduled per block for any dispatchables.
|
||||||
|
|||||||
@@ -181,6 +181,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Account balance must be greater than or equal to the transfer amount.
|
* Account balance must be greater than or equal to the transfer amount.
|
||||||
**/
|
**/
|
||||||
BalanceLow: AugmentedError<ApiType>;
|
BalanceLow: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Callback action resulted in error
|
||||||
|
**/
|
||||||
|
CallbackFailed: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The origin account is frozen.
|
* The origin account is frozen.
|
||||||
**/
|
**/
|
||||||
@@ -214,12 +218,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The signing account has no permission to do the operation.
|
* The signing account has no permission to do the operation.
|
||||||
**/
|
**/
|
||||||
NoPermission: AugmentedError<ApiType>;
|
NoPermission: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* Unable to increment the consumer reference counters on the account. Either no provider
|
|
||||||
* reference exists to allow a non-zero balance of a non-self-sufficient asset, or the
|
|
||||||
* maximum number of consumers has been reached.
|
|
||||||
**/
|
|
||||||
NoProvider: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* The asset should be frozen before the given operation.
|
* The asset should be frozen before the given operation.
|
||||||
**/
|
**/
|
||||||
@@ -228,6 +226,12 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* No approval exists that would allow the transfer.
|
* No approval exists that would allow the transfer.
|
||||||
**/
|
**/
|
||||||
Unapproved: AugmentedError<ApiType>;
|
Unapproved: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Unable to increment the consumer reference counters on the account. Either no provider
|
||||||
|
* reference exists to allow a non-zero balance of a non-self-sufficient asset, or one
|
||||||
|
* fewer then the maximum number of consumers has been reached.
|
||||||
|
**/
|
||||||
|
UnavailableConsumer: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The given asset ID is unknown.
|
* The given asset ID is unknown.
|
||||||
**/
|
**/
|
||||||
@@ -269,35 +273,43 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
};
|
};
|
||||||
balances: {
|
balances: {
|
||||||
/**
|
/**
|
||||||
* Beneficiary account must pre-exist
|
* Beneficiary account must pre-exist.
|
||||||
**/
|
**/
|
||||||
DeadAccount: AugmentedError<ApiType>;
|
DeadAccount: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Value too low to create account due to existential deposit
|
* Value too low to create account due to existential deposit.
|
||||||
**/
|
**/
|
||||||
ExistentialDeposit: AugmentedError<ApiType>;
|
ExistentialDeposit: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* A vesting schedule already exists for this account
|
* A vesting schedule already exists for this account.
|
||||||
**/
|
**/
|
||||||
ExistingVestingSchedule: AugmentedError<ApiType>;
|
ExistingVestingSchedule: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Transfer/payment would kill account.
|
||||||
|
**/
|
||||||
|
Expendability: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Balance too low to send value.
|
* Balance too low to send value.
|
||||||
**/
|
**/
|
||||||
InsufficientBalance: AugmentedError<ApiType>;
|
InsufficientBalance: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Transfer/payment would kill account
|
* Account liquidity restrictions prevent withdrawal.
|
||||||
**/
|
|
||||||
KeepAlive: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Account liquidity restrictions prevent withdrawal
|
|
||||||
**/
|
**/
|
||||||
LiquidityRestrictions: AugmentedError<ApiType>;
|
LiquidityRestrictions: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Number of named reserves exceed MaxReserves
|
* Number of freezes exceed `MaxFreezes`.
|
||||||
|
**/
|
||||||
|
TooManyFreezes: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Number of holds exceed `MaxHolds`.
|
||||||
|
**/
|
||||||
|
TooManyHolds: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Number of named reserves exceed `MaxReserves`.
|
||||||
**/
|
**/
|
||||||
TooManyReserves: AugmentedError<ApiType>;
|
TooManyReserves: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Vesting balance too high to send value
|
* Vesting balance too high to send value.
|
||||||
**/
|
**/
|
||||||
VestingBalance: AugmentedError<ApiType>;
|
VestingBalance: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -387,7 +399,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The contract's code was found to be invalid during validation or instrumentation.
|
* The contract's code was found to be invalid during validation or instrumentation.
|
||||||
*
|
*
|
||||||
* The most likely cause of this is that an API was used which is not supported by the
|
* The most likely cause of this is that an API was used which is not supported by the
|
||||||
* node. This hapens if an older node is used with a new version of ink!. Try updating
|
* node. This happens if an older node is used with a new version of ink!. Try updating
|
||||||
* your node to the newest available version.
|
* your node to the newest available version.
|
||||||
*
|
*
|
||||||
* A more detailed error can be found on the node console if debug messages are enabled
|
* A more detailed error can be found on the node console if debug messages are enabled
|
||||||
@@ -418,14 +430,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Input passed to a contract API function failed to decode as expected type.
|
* Input passed to a contract API function failed to decode as expected type.
|
||||||
**/
|
**/
|
||||||
DecodingFailed: AugmentedError<ApiType>;
|
DecodingFailed: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* Removal of a contract failed because the deletion queue is full.
|
|
||||||
*
|
|
||||||
* This can happen when calling `seal_terminate`.
|
|
||||||
* The queue is filled by deleting contracts and emptied by a fixed amount each block.
|
|
||||||
* Trying again during another block is the only way to resolve this issue.
|
|
||||||
**/
|
|
||||||
DeletionQueueFull: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* A contract with the same AccountId already exists.
|
* A contract with the same AccountId already exists.
|
||||||
**/
|
**/
|
||||||
@@ -475,6 +479,9 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
RandomSubjectTooLong: AugmentedError<ApiType>;
|
RandomSubjectTooLong: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* A call tried to invoke a contract that is flagged as non-reentrant.
|
* A call tried to invoke a contract that is flagged as non-reentrant.
|
||||||
|
* The only other cause is that a call from a contract into the runtime tried to call back
|
||||||
|
* into `pallet-contracts`. This would make the whole pallet reentrant with regard to
|
||||||
|
* contract code execution which is not supported.
|
||||||
**/
|
**/
|
||||||
ReentranceDenied: AugmentedError<ApiType>;
|
ReentranceDenied: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -569,6 +576,50 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
|
coreFellowship: {
|
||||||
|
/**
|
||||||
|
* The candidate has already been inducted. This should never happen since it would
|
||||||
|
* require a candidate (rank 0) to already be tracked in the pallet.
|
||||||
|
**/
|
||||||
|
AlreadyInducted: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The given rank is invalid - this generally means it's not between 1 and `RANK_COUNT`.
|
||||||
|
**/
|
||||||
|
InvalidRank: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The origin does not have enough permission to do this operation.
|
||||||
|
**/
|
||||||
|
NoPermission: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* No work needs to be done at present for this member.
|
||||||
|
**/
|
||||||
|
NothingDoing: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The candidate has not been inducted, so cannot be offboarded from this pallet.
|
||||||
|
**/
|
||||||
|
NotTracked: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Member's rank is not zero.
|
||||||
|
**/
|
||||||
|
Ranked: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Operation cannot be done yet since not enough time has passed.
|
||||||
|
**/
|
||||||
|
TooSoon: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Member's rank is not as expected - generally means that the rank provided to the call
|
||||||
|
* does not agree with the state of the system.
|
||||||
|
**/
|
||||||
|
UnexpectedRank: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Member's rank is too low.
|
||||||
|
**/
|
||||||
|
Unranked: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic error
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedError<ApiType>;
|
||||||
|
};
|
||||||
council: {
|
council: {
|
||||||
/**
|
/**
|
||||||
* Members are already initialized!
|
* Members are already initialized!
|
||||||
@@ -886,6 +937,18 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
|
glutton: {
|
||||||
|
/**
|
||||||
|
* The pallet was already initialized.
|
||||||
|
*
|
||||||
|
* Set `witness_count` to `Some` to bypass this error.
|
||||||
|
**/
|
||||||
|
AlreadyInitialized: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic error
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedError<ApiType>;
|
||||||
|
};
|
||||||
grandpa: {
|
grandpa: {
|
||||||
/**
|
/**
|
||||||
* Attempt to signal GRANDPA change with one already pending.
|
* Attempt to signal GRANDPA change with one already pending.
|
||||||
@@ -1100,6 +1163,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The message is queued for future execution.
|
* The message is queued for future execution.
|
||||||
**/
|
**/
|
||||||
Queued: AugmentedError<ApiType>;
|
Queued: 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
|
* Generic error
|
||||||
**/
|
**/
|
||||||
@@ -1196,6 +1266,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Collection ID is already taken.
|
* Collection ID is already taken.
|
||||||
**/
|
**/
|
||||||
CollectionIdInUse: AugmentedError<ApiType>;
|
CollectionIdInUse: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Can't delete non-empty collections.
|
||||||
|
**/
|
||||||
|
CollectionNotEmpty: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The deadline has already expired.
|
* The deadline has already expired.
|
||||||
**/
|
**/
|
||||||
@@ -1320,6 +1394,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The duration provided should be less than or equal to `MaxDeadlineDuration`.
|
* The duration provided should be less than or equal to `MaxDeadlineDuration`.
|
||||||
**/
|
**/
|
||||||
WrongDuration: AugmentedError<ApiType>;
|
WrongDuration: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The provided namespace isn't supported in this call.
|
||||||
|
**/
|
||||||
|
WrongNamespace: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The extrinsic was sent by the wrong origin.
|
* The extrinsic was sent by the wrong origin.
|
||||||
**/
|
**/
|
||||||
@@ -1387,6 +1465,9 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The portion supplied is beyond the value of the receipt.
|
* The portion supplied is beyond the value of the receipt.
|
||||||
**/
|
**/
|
||||||
PortionTooBig: AugmentedError<ApiType>;
|
PortionTooBig: AugmentedError<ApiType>;
|
||||||
|
Release1: AugmentedError<ApiType>;
|
||||||
|
Release2: AugmentedError<ApiType>;
|
||||||
|
Tah: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The thaw throttle has been reached for this period.
|
* The thaw throttle has been reached for this period.
|
||||||
**/
|
**/
|
||||||
@@ -1414,6 +1495,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* pool at a time.
|
* pool at a time.
|
||||||
**/
|
**/
|
||||||
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Bonding extra is restricted to the exact pending reward amount.
|
||||||
|
**/
|
||||||
|
BondExtraRestricted: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The pools state cannot be changed.
|
* The pools state cannot be changed.
|
||||||
**/
|
**/
|
||||||
@@ -1422,6 +1507,18 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* None of the funds can be withdrawn yet because the bonding duration has not passed.
|
* None of the funds can be withdrawn yet because the bonding duration has not passed.
|
||||||
**/
|
**/
|
||||||
CannotWithdrawAny: AugmentedError<ApiType>;
|
CannotWithdrawAny: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The submitted changes to commission change rate are not allowed.
|
||||||
|
**/
|
||||||
|
CommissionChangeRateNotAllowed: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Not enough blocks have surpassed since the last commission update.
|
||||||
|
**/
|
||||||
|
CommissionChangeThrottled: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The supplied commission exceeds the max allowed commission.
|
||||||
|
**/
|
||||||
|
CommissionExceedsMaximum: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Some error occurred that should never happen. This should be reported to the
|
* Some error occurred that should never happen. This should be reported to the
|
||||||
* maintainers.
|
* maintainers.
|
||||||
@@ -1440,6 +1537,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Pool id provided is not correct/usable.
|
* Pool id provided is not correct/usable.
|
||||||
**/
|
**/
|
||||||
InvalidPoolId: AugmentedError<ApiType>;
|
InvalidPoolId: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The pool's max commission cannot be set higher than the existing value.
|
||||||
|
**/
|
||||||
|
MaxCommissionRestricted: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Too many members in the pool or system.
|
* Too many members in the pool or system.
|
||||||
**/
|
**/
|
||||||
@@ -1464,6 +1565,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* permissions for the pool. Members can never unbond to a value below `MinJoinBond`.
|
* permissions for the pool. Members can never unbond to a value below `MinJoinBond`.
|
||||||
**/
|
**/
|
||||||
MinimumBondNotMet: AugmentedError<ApiType>;
|
MinimumBondNotMet: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* No commission current has been set.
|
||||||
|
**/
|
||||||
|
NoCommissionCurrentSet: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* There is no pending commission to claim.
|
||||||
|
**/
|
||||||
|
NoPendingCommission: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for
|
* A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for
|
||||||
* other members to be permissionlessly unbonded.
|
* other members to be permissionlessly unbonded.
|
||||||
@@ -1824,6 +1933,65 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
|
salary: {
|
||||||
|
/**
|
||||||
|
* The account is already inducted.
|
||||||
|
**/
|
||||||
|
AlreadyInducted: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The salary system has already been started.
|
||||||
|
**/
|
||||||
|
AlreadyStarted: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* There is no budget left for the payout.
|
||||||
|
**/
|
||||||
|
Bankrupt: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The member's claim is zero.
|
||||||
|
**/
|
||||||
|
ClaimZero: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The payment has neither failed nor succeeded yet.
|
||||||
|
**/
|
||||||
|
Inconclusive: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The member does not have a current valid claim.
|
||||||
|
**/
|
||||||
|
NoClaim: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The cycle is after that in which the payment was made.
|
||||||
|
**/
|
||||||
|
NotCurrent: AugmentedError<ApiType>;
|
||||||
|
NotInducted: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The account is not a ranked member.
|
||||||
|
**/
|
||||||
|
NotMember: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The payout cycles have not yet started.
|
||||||
|
**/
|
||||||
|
NotStarted: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Cycle is not yet over.
|
||||||
|
**/
|
||||||
|
NotYet: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* There was some issue with the mechanism of payment.
|
||||||
|
**/
|
||||||
|
PayError: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Current cycle's payment period is not yet begun.
|
||||||
|
**/
|
||||||
|
TooEarly: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Current cycle's registration period is over.
|
||||||
|
**/
|
||||||
|
TooLate: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic error
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedError<ApiType>;
|
||||||
|
};
|
||||||
scheduler: {
|
scheduler: {
|
||||||
/**
|
/**
|
||||||
* Failed to schedule a call
|
* Failed to schedule a call
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
|||||||
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { 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 { ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMessageQueueMockHelpersMessageOrigin, PalletMultisigTimepoint, PalletNftsPriceWithDirection, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
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';
|
||||||
|
|
||||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||||
|
|
||||||
@@ -130,6 +130,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* Some asset `asset_id` was frozen.
|
* Some asset `asset_id` was frozen.
|
||||||
**/
|
**/
|
||||||
AssetFrozen: AugmentedEvent<ApiType, [assetId: u32], { assetId: u32 }>;
|
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.
|
* An asset has had its attributes changed by the `Force` origin.
|
||||||
**/
|
**/
|
||||||
@@ -215,7 +219,11 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* A balance was set by root.
|
* A balance was set by root.
|
||||||
**/
|
**/
|
||||||
BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128, reserved: u128], { who: AccountId32, free: u128, reserved: u128 }>;
|
BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128], { who: AccountId32, free: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some amount was burned from an account.
|
||||||
|
**/
|
||||||
|
Burned: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Some amount was deposited (e.g. for transaction fees).
|
* Some amount was deposited (e.g. for transaction fees).
|
||||||
**/
|
**/
|
||||||
@@ -229,6 +237,22 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* An account was created with some free balance.
|
* An account was created with some free balance.
|
||||||
**/
|
**/
|
||||||
Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: u128 }>;
|
Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: u128 }>;
|
||||||
|
/**
|
||||||
|
* Total issuance was increased by `amount`, creating a credit to be balanced.
|
||||||
|
**/
|
||||||
|
Issued: AugmentedEvent<ApiType, [amount: u128], { amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some balance was locked.
|
||||||
|
**/
|
||||||
|
Locked: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some amount was minted into an account.
|
||||||
|
**/
|
||||||
|
Minted: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Total issuance was decreased by `amount`, creating a debt to be balanced.
|
||||||
|
**/
|
||||||
|
Rescinded: AugmentedEvent<ApiType, [amount: u128], { amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Some balance was reserved (moved from free to reserved).
|
* Some balance was reserved (moved from free to reserved).
|
||||||
**/
|
**/
|
||||||
@@ -238,18 +262,34 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* Final argument indicates the destination balance type.
|
* Final argument indicates the destination balance type.
|
||||||
**/
|
**/
|
||||||
ReserveRepatriated: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus], { from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus }>;
|
ReserveRepatriated: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus], { from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus }>;
|
||||||
|
/**
|
||||||
|
* Some amount was restored into an account.
|
||||||
|
**/
|
||||||
|
Restored: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Some amount was removed from the account (e.g. for misbehavior).
|
* Some amount was removed from the account (e.g. for misbehavior).
|
||||||
**/
|
**/
|
||||||
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some amount was suspended from an account (it can be restored later).
|
||||||
|
**/
|
||||||
|
Suspended: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Transfer succeeded.
|
* Transfer succeeded.
|
||||||
**/
|
**/
|
||||||
Transfer: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;
|
Transfer: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some balance was unlocked.
|
||||||
|
**/
|
||||||
|
Unlocked: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Some balance was unreserved (moved from reserved to free).
|
* Some balance was unreserved (moved from reserved to free).
|
||||||
**/
|
**/
|
||||||
Unreserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
Unreserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* An account was upgraded.
|
||||||
|
**/
|
||||||
|
Upgraded: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
|
||||||
/**
|
/**
|
||||||
* Some amount was withdrawn from the account (e.g. for transaction fees).
|
* Some amount was withdrawn from the account (e.g. for transaction fees).
|
||||||
**/
|
**/
|
||||||
@@ -384,6 +424,54 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
};
|
};
|
||||||
|
coreFellowship: {
|
||||||
|
/**
|
||||||
|
* Member activity flag has been set.
|
||||||
|
**/
|
||||||
|
ActiveChanged: AugmentedEvent<ApiType, [who: AccountId32, isActive: bool], { who: AccountId32, isActive: bool }>;
|
||||||
|
/**
|
||||||
|
* Member has been demoted to the given (non-zero) rank.
|
||||||
|
**/
|
||||||
|
Demoted: AugmentedEvent<ApiType, [who: AccountId32, toRank: u16], { who: AccountId32, toRank: u16 }>;
|
||||||
|
/**
|
||||||
|
* Some submitted evidence was judged and removed. There may or may not have been a change
|
||||||
|
* to the rank, but in any case, `last_proof` is reset.
|
||||||
|
**/
|
||||||
|
EvidenceJudged: AugmentedEvent<ApiType, [who: AccountId32, wish: PalletCoreFellowshipWish, evidence: Bytes, oldRank: u16, newRank: Option<u16>], { who: AccountId32, wish: PalletCoreFellowshipWish, evidence: Bytes, oldRank: u16, newRank: Option<u16> }>;
|
||||||
|
/**
|
||||||
|
* Pre-ranked account has been inducted at their current rank.
|
||||||
|
**/
|
||||||
|
Imported: AugmentedEvent<ApiType, [who: AccountId32, rank: u16], { who: AccountId32, rank: u16 }>;
|
||||||
|
/**
|
||||||
|
* Member has begun being tracked in this pallet.
|
||||||
|
**/
|
||||||
|
Inducted: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* Member has been removed from being tracked in this pallet (i.e. because rank is now
|
||||||
|
* zero).
|
||||||
|
**/
|
||||||
|
Offboarded: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* Parameters for the pallet have changed.
|
||||||
|
**/
|
||||||
|
ParamsChanged: AugmentedEvent<ApiType, [params: PalletCoreFellowshipParamsType], { params: PalletCoreFellowshipParamsType }>;
|
||||||
|
/**
|
||||||
|
* Member has been promoted to the given rank.
|
||||||
|
**/
|
||||||
|
Promoted: AugmentedEvent<ApiType, [who: AccountId32, toRank: u16], { who: AccountId32, toRank: u16 }>;
|
||||||
|
/**
|
||||||
|
* Member has been proven at their current rank, postponing auto-demotion.
|
||||||
|
**/
|
||||||
|
Proven: AugmentedEvent<ApiType, [who: AccountId32, atRank: u16], { who: AccountId32, atRank: u16 }>;
|
||||||
|
/**
|
||||||
|
* Member has stated evidence of their efforts their request for rank.
|
||||||
|
**/
|
||||||
|
Requested: AugmentedEvent<ApiType, [who: AccountId32, wish: PalletCoreFellowshipWish], { who: AccountId32, wish: PalletCoreFellowshipWish }>;
|
||||||
|
/**
|
||||||
|
* Generic event
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
|
};
|
||||||
council: {
|
council: {
|
||||||
/**
|
/**
|
||||||
* A motion was approved by the required threshold.
|
* A motion was approved by the required threshold.
|
||||||
@@ -604,11 +692,29 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
};
|
};
|
||||||
|
glutton: {
|
||||||
|
/**
|
||||||
|
* The computation limit has been updated by root.
|
||||||
|
**/
|
||||||
|
ComputationLimitSet: AugmentedEvent<ApiType, [compute: Perbill], { compute: Perbill }>;
|
||||||
|
/**
|
||||||
|
* The pallet has been (re)initialized by root.
|
||||||
|
**/
|
||||||
|
PalletInitialized: AugmentedEvent<ApiType, [reinit: bool], { reinit: bool }>;
|
||||||
|
/**
|
||||||
|
* The storage limit has been updated by root.
|
||||||
|
**/
|
||||||
|
StorageLimitSet: AugmentedEvent<ApiType, [storage: Perbill], { storage: Perbill }>;
|
||||||
|
/**
|
||||||
|
* Generic event
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
|
};
|
||||||
grandpa: {
|
grandpa: {
|
||||||
/**
|
/**
|
||||||
* New authority set has been applied.
|
* New authority set has been applied.
|
||||||
**/
|
**/
|
||||||
NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>>], { authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>> }>;
|
NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>], { authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>> }>;
|
||||||
/**
|
/**
|
||||||
* Current authority set has been paused.
|
* Current authority set has been paused.
|
||||||
**/
|
**/
|
||||||
@@ -736,19 +842,19 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* Message placed in overweight queue.
|
* Message placed in overweight queue.
|
||||||
**/
|
**/
|
||||||
OverweightEnqueued: AugmentedEvent<ApiType, [hash_: H256, origin: PalletMessageQueueMockHelpersMessageOrigin, pageIndex: u32, messageIndex: u32], { hash_: H256, origin: PalletMessageQueueMockHelpersMessageOrigin, pageIndex: u32, messageIndex: u32 }>;
|
OverweightEnqueued: AugmentedEvent<ApiType, [hash_: H256, origin: u32, pageIndex: u32, messageIndex: u32], { hash_: H256, origin: u32, pageIndex: u32, messageIndex: u32 }>;
|
||||||
/**
|
/**
|
||||||
* This page was reaped.
|
* This page was reaped.
|
||||||
**/
|
**/
|
||||||
PageReaped: AugmentedEvent<ApiType, [origin: PalletMessageQueueMockHelpersMessageOrigin, index: u32], { origin: PalletMessageQueueMockHelpersMessageOrigin, index: u32 }>;
|
PageReaped: AugmentedEvent<ApiType, [origin: u32, index: u32], { origin: u32, index: u32 }>;
|
||||||
/**
|
/**
|
||||||
* Message is processed.
|
* Message is processed.
|
||||||
**/
|
**/
|
||||||
Processed: AugmentedEvent<ApiType, [hash_: H256, origin: PalletMessageQueueMockHelpersMessageOrigin, weightUsed: SpWeightsWeightV2Weight, success: bool], { hash_: H256, origin: PalletMessageQueueMockHelpersMessageOrigin, weightUsed: SpWeightsWeightV2Weight, success: bool }>;
|
Processed: AugmentedEvent<ApiType, [hash_: H256, origin: u32, weightUsed: SpWeightsWeightV2Weight, success: bool], { hash_: H256, origin: u32, weightUsed: SpWeightsWeightV2Weight, success: bool }>;
|
||||||
/**
|
/**
|
||||||
* Message discarded due to an error in the `MessageProcessor` (usually a format error).
|
* Message discarded due to an error in the `MessageProcessor` (usually a format error).
|
||||||
**/
|
**/
|
||||||
ProcessingFailed: AugmentedEvent<ApiType, [hash_: H256, origin: PalletMessageQueueMockHelpersMessageOrigin, error: FrameSupportMessagesProcessMessageError], { hash_: H256, origin: PalletMessageQueueMockHelpersMessageOrigin, error: FrameSupportMessagesProcessMessageError }>;
|
ProcessingFailed: AugmentedEvent<ApiType, [hash_: H256, origin: u32, error: FrameSupportMessagesProcessMessageError], { hash_: H256, origin: u32, error: FrameSupportMessagesProcessMessageError }>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
@@ -789,11 +895,11 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* Attribute metadata has been cleared for a `collection` or `item`.
|
* Attribute metadata has been cleared for a `collection` or `item`.
|
||||||
**/
|
**/
|
||||||
AttributeCleared: AugmentedEvent<ApiType, [collection: u32, maybeItem: Option<u32>, key: Bytes, namespace: FrameSupportTokensMiscAttributeNamespace], { collection: u32, maybeItem: Option<u32>, key: Bytes, namespace: FrameSupportTokensMiscAttributeNamespace }>;
|
AttributeCleared: AugmentedEvent<ApiType, [collection: u32, maybeItem: Option<u32>, key: Bytes, namespace: PalletNftsAttributeNamespace], { collection: u32, maybeItem: Option<u32>, key: Bytes, namespace: PalletNftsAttributeNamespace }>;
|
||||||
/**
|
/**
|
||||||
* New attribute metadata has been set for a `collection` or `item`.
|
* New attribute metadata has been set for a `collection` or `item`.
|
||||||
**/
|
**/
|
||||||
AttributeSet: AugmentedEvent<ApiType, [collection: u32, maybeItem: Option<u32>, key: Bytes, value: Bytes, namespace: FrameSupportTokensMiscAttributeNamespace], { collection: u32, maybeItem: Option<u32>, key: Bytes, value: Bytes, namespace: FrameSupportTokensMiscAttributeNamespace }>;
|
AttributeSet: AugmentedEvent<ApiType, [collection: u32, maybeItem: Option<u32>, key: Bytes, value: Bytes, namespace: PalletNftsAttributeNamespace], { collection: u32, maybeItem: Option<u32>, key: Bytes, value: Bytes, namespace: PalletNftsAttributeNamespace }>;
|
||||||
/**
|
/**
|
||||||
* An `item` was destroyed.
|
* An `item` was destroyed.
|
||||||
**/
|
**/
|
||||||
@@ -890,6 +996,15 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* Ownership acceptance has changed for an account.
|
* Ownership acceptance has changed for an account.
|
||||||
**/
|
**/
|
||||||
OwnershipAcceptanceChanged: AugmentedEvent<ApiType, [who: AccountId32, maybeCollection: Option<u32>], { who: AccountId32, maybeCollection: Option<u32> }>;
|
OwnershipAcceptanceChanged: AugmentedEvent<ApiType, [who: AccountId32, maybeCollection: Option<u32>], { who: AccountId32, maybeCollection: Option<u32> }>;
|
||||||
|
/**
|
||||||
|
* A new attribute in the `Pallet` namespace was set for the `collection` or an `item`
|
||||||
|
* within that `collection`.
|
||||||
|
**/
|
||||||
|
PalletAttributeSet: AugmentedEvent<ApiType, [collection: u32, item: Option<u32>, attribute: PalletNftsPalletAttributes, value: Bytes], { collection: u32, item: Option<u32>, attribute: PalletNftsPalletAttributes, value: Bytes }>;
|
||||||
|
/**
|
||||||
|
* New attributes have been set for an `item` of the `collection`.
|
||||||
|
**/
|
||||||
|
PreSignedAttributesSet: AugmentedEvent<ApiType, [collection: u32, item: u32, namespace: PalletNftsAttributeNamespace], { collection: u32, item: u32, namespace: PalletNftsAttributeNamespace }>;
|
||||||
/**
|
/**
|
||||||
* The deposit for a set of `item`s within a `collection` has been updated.
|
* The deposit for a set of `item`s within a `collection` has been updated.
|
||||||
**/
|
**/
|
||||||
@@ -909,7 +1024,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* The management team changed.
|
* The management team changed.
|
||||||
**/
|
**/
|
||||||
TeamChanged: AugmentedEvent<ApiType, [collection: u32, issuer: AccountId32, admin: AccountId32, freezer: AccountId32], { collection: u32, issuer: AccountId32, admin: AccountId32, freezer: AccountId32 }>;
|
TeamChanged: AugmentedEvent<ApiType, [collection: u32, issuer: Option<AccountId32>, admin: Option<AccountId32>, freezer: Option<AccountId32>], { collection: u32, issuer: Option<AccountId32>, admin: Option<AccountId32>, freezer: Option<AccountId32> }>;
|
||||||
/**
|
/**
|
||||||
* A tip was sent.
|
* A tip was sent.
|
||||||
**/
|
**/
|
||||||
@@ -985,6 +1100,22 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A payout has been made to a member.
|
* A payout has been made to a member.
|
||||||
**/
|
**/
|
||||||
PaidOut: AugmentedEvent<ApiType, [member: AccountId32, poolId: u32, payout: u128], { member: AccountId32, poolId: u32, payout: u128 }>;
|
PaidOut: AugmentedEvent<ApiType, [member: AccountId32, poolId: u32, payout: u128], { member: AccountId32, poolId: u32, payout: u128 }>;
|
||||||
|
/**
|
||||||
|
* A pool's commission `change_rate` has been changed.
|
||||||
|
**/
|
||||||
|
PoolCommissionChangeRateUpdated: AugmentedEvent<ApiType, [poolId: u32, changeRate: PalletNominationPoolsCommissionChangeRate], { poolId: u32, changeRate: PalletNominationPoolsCommissionChangeRate }>;
|
||||||
|
/**
|
||||||
|
* Pool commission has been claimed.
|
||||||
|
**/
|
||||||
|
PoolCommissionClaimed: AugmentedEvent<ApiType, [poolId: u32, commission: u128], { poolId: u32, commission: u128 }>;
|
||||||
|
/**
|
||||||
|
* A pool's commission setting has been changed.
|
||||||
|
**/
|
||||||
|
PoolCommissionUpdated: AugmentedEvent<ApiType, [poolId: u32, current: Option<ITuple<[Perbill, AccountId32]>>], { poolId: u32, current: Option<ITuple<[Perbill, AccountId32]>> }>;
|
||||||
|
/**
|
||||||
|
* A pool's maximum commission setting has been changed.
|
||||||
|
**/
|
||||||
|
PoolMaxCommissionUpdated: AugmentedEvent<ApiType, [poolId: u32, maxCommission: Perbill], { poolId: u32, maxCommission: Perbill }>;
|
||||||
/**
|
/**
|
||||||
* The active balance of pool `pool_id` has been slashed to `balance`.
|
* The active balance of pool `pool_id` has been slashed to `balance`.
|
||||||
**/
|
**/
|
||||||
@@ -993,7 +1124,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* The roles of a pool have been updated to the given new roles. Note that the depositor
|
* The roles of a pool have been updated to the given new roles. Note that the depositor
|
||||||
* can never change.
|
* can never change.
|
||||||
**/
|
**/
|
||||||
RolesUpdated: AugmentedEvent<ApiType, [root: Option<AccountId32>, stateToggler: Option<AccountId32>, nominator: Option<AccountId32>], { root: Option<AccountId32>, stateToggler: Option<AccountId32>, nominator: Option<AccountId32> }>;
|
RolesUpdated: AugmentedEvent<ApiType, [root: Option<AccountId32>, bouncer: Option<AccountId32>, nominator: Option<AccountId32>], { root: Option<AccountId32>, bouncer: Option<AccountId32>, nominator: Option<AccountId32> }>;
|
||||||
/**
|
/**
|
||||||
* The state of a pool has changed
|
* The state of a pool has changed
|
||||||
**/
|
**/
|
||||||
@@ -1285,6 +1416,28 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
};
|
};
|
||||||
|
salary: {
|
||||||
|
/**
|
||||||
|
* The next cycle begins.
|
||||||
|
**/
|
||||||
|
CycleStarted: AugmentedEvent<ApiType, [index: u32], { index: u32 }>;
|
||||||
|
/**
|
||||||
|
* A member is inducted into the payroll.
|
||||||
|
**/
|
||||||
|
Inducted: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* A payment happened.
|
||||||
|
**/
|
||||||
|
Paid: AugmentedEvent<ApiType, [who: AccountId32, beneficiary: AccountId32, amount: u128, id: Null], { who: AccountId32, beneficiary: AccountId32, amount: u128, id: Null }>;
|
||||||
|
/**
|
||||||
|
* A member registered for a payout.
|
||||||
|
**/
|
||||||
|
Registered: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Generic event
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
|
};
|
||||||
scheduler: {
|
scheduler: {
|
||||||
/**
|
/**
|
||||||
* The call for the provided hash was not found so the task has been aborted.
|
* The call for the provided hash was not found so the task has been aborted.
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import '../base';
|
import '../base.js';
|
||||||
import './consts';
|
import './consts.js';
|
||||||
import './errors';
|
import './errors.js';
|
||||||
import './events';
|
import './events.js';
|
||||||
import './query';
|
import './query.js';
|
||||||
import './registry';
|
import './registry.js';
|
||||||
import './runtime';
|
import './runtime.js';
|
||||||
import './tx';
|
import './tx.js';
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ import '@polkadot/api-base/types/storage';
|
|||||||
|
|
||||||
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
||||||
import type { Data } from '@polkadot/types';
|
import type { Data } from '@polkadot/types';
|
||||||
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletedContract, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueueMockHelpersMessageOrigin, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftsAttributeDeposit, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, 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, 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, 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 { Observable } from '@polkadot/types/types';
|
import type { Observable } from '@polkadot/types/types';
|
||||||
|
|
||||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||||
@@ -274,6 +274,17 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* NOTE: This is only used in the case that this pallet is used to store balances.
|
* NOTE: This is only used in the case that this pallet is used to store balances.
|
||||||
**/
|
**/
|
||||||
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* Freeze locks on account balances.
|
||||||
|
**/
|
||||||
|
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [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]>;
|
||||||
/**
|
/**
|
||||||
* The total units of outstanding deactivated balance in the system.
|
* The total units of outstanding deactivated balance in the system.
|
||||||
**/
|
**/
|
||||||
@@ -360,9 +371,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Evicted contracts that await child trie deletion.
|
* Evicted contracts that await child trie deletion.
|
||||||
*
|
*
|
||||||
* Child trie deletion is a heavy operation depending on the amount of storage items
|
* Child trie deletion is a heavy operation depending on the amount of storage items
|
||||||
* stored in said trie. Therefore this operation is performed lazily in `on_initialize`.
|
* stored in said trie. Therefore this operation is performed lazily in `on_idle`.
|
||||||
**/
|
**/
|
||||||
deletionQueue: AugmentedQuery<ApiType, () => Observable<Vec<PalletContractsStorageDeletedContract>>, []> & QueryableStorageEntry<ApiType, []>;
|
deletionQueue: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* A pair of monotonic counters used to track the latest contract marked for deletion
|
||||||
|
* and the latest deleted contract in queue.
|
||||||
|
**/
|
||||||
|
deletionQueueCounter: AugmentedQuery<ApiType, () => Observable<PalletContractsStorageDeletionQueueManager>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* This is a **monotonic** counter incremented on contract instantiation.
|
* This is a **monotonic** counter incremented on contract instantiation.
|
||||||
*
|
*
|
||||||
@@ -418,6 +434,24 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
|
coreFellowship: {
|
||||||
|
/**
|
||||||
|
* The status of a claimant.
|
||||||
|
**/
|
||||||
|
member: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletCoreFellowshipMemberStatus>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* Some evidence together with the desired outcome for which it was presented.
|
||||||
|
**/
|
||||||
|
memberEvidence: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[PalletCoreFellowshipWish, Bytes]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* The overall status of the system.
|
||||||
|
**/
|
||||||
|
params: AugmentedQuery<ApiType, () => Observable<PalletCoreFellowshipParamsType>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Generic query
|
||||||
|
**/
|
||||||
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
|
};
|
||||||
council: {
|
council: {
|
||||||
/**
|
/**
|
||||||
* The current members of the collective. This is stored sorted (just by value).
|
* The current members of the collective. This is stored sorted (just by value).
|
||||||
@@ -668,6 +702,37 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
|
glutton: {
|
||||||
|
/**
|
||||||
|
* Storage value used to specify what percentage of the left over `ref_time`
|
||||||
|
* to consume during `on_idle`.
|
||||||
|
**/
|
||||||
|
compute: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Storage value used the specify what percentage of left over `proof_size`
|
||||||
|
* to consume during `on_idle`.
|
||||||
|
**/
|
||||||
|
storage: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Storage map used for wasting proof size.
|
||||||
|
*
|
||||||
|
* It contains no meaningful data - hence the name "Trash". The maximal number of entries is
|
||||||
|
* set to 65k, which is just below the next jump at 16^4. This is important to reduce the proof
|
||||||
|
* size benchmarking overestimate. The assumption here is that we won't have more than 65k *
|
||||||
|
* 1KiB = 65MiB of proof size wasting in practice. However, this limit is not enforced, so the
|
||||||
|
* pallet would also work out of the box with more entries, but its benchmarked proof weight
|
||||||
|
* would possibly be underestimated in that case.
|
||||||
|
**/
|
||||||
|
trashData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<U8aFixed>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* The current number of entries in `TrashData`.
|
||||||
|
**/
|
||||||
|
trashDataCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Generic query
|
||||||
|
**/
|
||||||
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
|
};
|
||||||
grandpa: {
|
grandpa: {
|
||||||
/**
|
/**
|
||||||
* The number of changes (both in terms of keys and underlying economic responsibilities)
|
* The number of changes (both in terms of keys and underlying economic responsibilities)
|
||||||
@@ -819,15 +884,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* The index of the first and last (non-empty) pages.
|
* The index of the first and last (non-empty) pages.
|
||||||
**/
|
**/
|
||||||
bookStateFor: AugmentedQuery<ApiType, (arg: PalletMessageQueueMockHelpersMessageOrigin | { Here: any } | { There: any } | { Everywhere: any } | string | Uint8Array) => Observable<PalletMessageQueueBookState>, [PalletMessageQueueMockHelpersMessageOrigin]> & QueryableStorageEntry<ApiType, [PalletMessageQueueMockHelpersMessageOrigin]>;
|
bookStateFor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletMessageQueueBookState>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* The map of page indices to pages.
|
* The map of page indices to pages.
|
||||||
**/
|
**/
|
||||||
pages: AugmentedQuery<ApiType, (arg1: PalletMessageQueueMockHelpersMessageOrigin | { Here: any } | { There: any } | { Everywhere: any } | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletMessageQueuePage>>, [PalletMessageQueueMockHelpersMessageOrigin, u32]> & QueryableStorageEntry<ApiType, [PalletMessageQueueMockHelpersMessageOrigin, u32]>;
|
pages: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletMessageQueuePage>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||||
/**
|
/**
|
||||||
* The origin at which we should begin servicing.
|
* The origin at which we should begin servicing.
|
||||||
**/
|
**/
|
||||||
serviceHead: AugmentedQuery<ApiType, () => Observable<Option<PalletMessageQueueMockHelpersMessageOrigin>>, []> & QueryableStorageEntry<ApiType, []>;
|
serviceHead: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -873,7 +938,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* Attributes of a collection.
|
* Attributes of a collection.
|
||||||
**/
|
**/
|
||||||
attribute: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: Option<u32> | null | Uint8Array | u32 | AnyNumber, arg3: FrameSupportTokensMiscAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, arg4: Bytes | string | Uint8Array) => Observable<Option<ITuple<[Bytes, PalletNftsAttributeDeposit]>>>, [u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes]> & QueryableStorageEntry<ApiType, [u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes]>;
|
attribute: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: Option<u32> | null | Uint8Array | u32 | AnyNumber, arg3: PalletNftsAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, arg4: Bytes | string | Uint8Array) => Observable<Option<ITuple<[Bytes, PalletNftsAttributeDeposit]>>>, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]> & QueryableStorageEntry<ApiType, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]>;
|
||||||
/**
|
/**
|
||||||
* Details of a collection.
|
* Details of a collection.
|
||||||
**/
|
**/
|
||||||
@@ -965,6 +1030,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Storage for bonded pools.
|
* Storage for bonded pools.
|
||||||
**/
|
**/
|
||||||
bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* Map from a pool member account to their opted claim permission.
|
||||||
|
**/
|
||||||
|
claimPermissions: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletNominationPoolsClaimPermission>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* Counter for the related counted storage map
|
* Counter for the related counted storage map
|
||||||
**/
|
**/
|
||||||
@@ -989,6 +1058,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Counter for the related counted storage map
|
* Counter for the related counted storage map
|
||||||
**/
|
**/
|
||||||
counterForSubPoolsStorage: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
counterForSubPoolsStorage: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* The maximum commission that can be charged by a pool. Used on commission payouts to bound
|
||||||
|
* pool commissions that are > `GlobalMaxCommission`, necessary if a future
|
||||||
|
* `GlobalMaxCommission` is lower than some current pool commissions.
|
||||||
|
**/
|
||||||
|
globalMaxCommission: AugmentedQuery<ApiType, () => Observable<Option<Perbill>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Ever increasing number of all pools created so far.
|
* Ever increasing number of all pools created so far.
|
||||||
**/
|
**/
|
||||||
@@ -1040,13 +1115,13 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
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
|
* Reward pools. This is where there rewards for each pool accumulate. When a members payout is
|
||||||
* is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
|
* claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
|
||||||
**/
|
**/
|
||||||
rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,
|
* Groups of unbonding pools. Each group of unbonding pools belongs to a
|
||||||
* hence the name sub-pools. Keyed by the bonded pools account.
|
* 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]>;
|
subPoolsStorage: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsSubPools>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1098,6 +1173,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
map1M: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
map1M: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
unboundedMap: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
unboundedMap: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
unboundedMap2: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
unboundedMap2: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
unboundedMapTwox: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* A value without a MEL bound.
|
* A value without a MEL bound.
|
||||||
**/
|
**/
|
||||||
@@ -1267,6 +1343,20 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
|
salary: {
|
||||||
|
/**
|
||||||
|
* The status of a claimant.
|
||||||
|
**/
|
||||||
|
claimant: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletSalaryClaimantStatus>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* The overall status of the system.
|
||||||
|
**/
|
||||||
|
status: AugmentedQuery<ApiType, () => Observable<Option<PalletSalaryStatusType>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Generic query
|
||||||
|
**/
|
||||||
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
|
};
|
||||||
scheduler: {
|
scheduler: {
|
||||||
/**
|
/**
|
||||||
* Items to be executed, indexed by the block number that they should be executed on.
|
* Items to be executed, indexed by the block number that they should be executed on.
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import '@polkadot/api-base/types/calls';
|
|||||||
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
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, u32 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
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 { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||||
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
||||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||||
@@ -16,9 +17,11 @@ import type { CodeSource, CodeUploadResult, ContractExecResult, ContractInstanti
|
|||||||
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
||||||
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
|
||||||
|
import type { NftCollectionId, NftItemId } from '@polkadot/types/interfaces/nfts';
|
||||||
|
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||||
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
||||||
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
||||||
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
||||||
@@ -40,6 +43,17 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
|
/** 0x8453b50b22293977/1 */
|
||||||
|
assetsApi: {
|
||||||
|
/**
|
||||||
|
* Return the current set of authorities.
|
||||||
|
**/
|
||||||
|
accountBalances: AugmentedCall<ApiType, (account: AccountId | string | Uint8Array) => Observable<Vec<ITuple<[u32, TAssetBalance]>>>>;
|
||||||
|
/**
|
||||||
|
* Generic call
|
||||||
|
**/
|
||||||
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
|
};
|
||||||
/** 0x687ad44ad37f03c2/1 */
|
/** 0x687ad44ad37f03c2/1 */
|
||||||
authorityDiscoveryApi: {
|
authorityDiscoveryApi: {
|
||||||
/**
|
/**
|
||||||
@@ -170,47 +184,74 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0x37e397fc7c91f5e4/1 */
|
/** 0x37e397fc7c91f5e4/2 */
|
||||||
metadata: {
|
metadata: {
|
||||||
/**
|
/**
|
||||||
* Returns the metadata of a runtime
|
* Returns the metadata of a runtime
|
||||||
**/
|
**/
|
||||||
metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
|
metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
|
||||||
|
/**
|
||||||
|
* Returns the metadata at a given version.
|
||||||
|
**/
|
||||||
|
metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
|
||||||
|
/**
|
||||||
|
* Returns the supported metadata versions.
|
||||||
|
**/
|
||||||
|
metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
|
||||||
/**
|
/**
|
||||||
* Generic call
|
* Generic call
|
||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0x91d5df18b0d2cf58/1 */
|
/** 0x91d5df18b0d2cf58/2 */
|
||||||
mmrApi: {
|
mmrApi: {
|
||||||
/**
|
/**
|
||||||
* Generate MMR proof for a series of leaves under given indices.
|
* Generate MMR proof for the given block numbers.
|
||||||
**/
|
**/
|
||||||
generateBatchProof: AugmentedCall<ApiType, (leafIndices: Vec<MmrLeafIndex> | (MmrLeafIndex | AnyNumber | Uint8Array)[]) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
||||||
/**
|
|
||||||
* Generate MMR proof for a leaf under given index.
|
|
||||||
**/
|
|
||||||
generateProof: AugmentedCall<ApiType, (leafIndex: MmrLeafIndex | AnyNumber | Uint8Array) => Observable<Result<ITuple<[MmrEncodableOpaqueLeaf, MmrProof]>, MmrError>>>;
|
|
||||||
/**
|
/**
|
||||||
* Return the on-chain MMR root hash.
|
* Return the on-chain MMR root hash.
|
||||||
**/
|
**/
|
||||||
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
root: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
||||||
/**
|
|
||||||
* Verify MMR proof against on-chain MMR for a batch of leaves.
|
|
||||||
**/
|
|
||||||
verifyBatchProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
|
||||||
/**
|
|
||||||
* Verify MMR proof against given root hash or a batch of leaves.
|
|
||||||
**/
|
|
||||||
verifyBatchProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
|
||||||
/**
|
/**
|
||||||
* Verify MMR proof against on-chain MMR.
|
* Verify MMR proof against on-chain MMR.
|
||||||
**/
|
**/
|
||||||
verifyProof: AugmentedCall<ApiType, (leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | { leafIndex?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
verifyProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||||
/**
|
/**
|
||||||
* Verify MMR proof against given root hash.
|
* Verify MMR proof against given root hash.
|
||||||
**/
|
**/
|
||||||
verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | { leafIndex?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||||
|
/**
|
||||||
|
* Generic call
|
||||||
|
**/
|
||||||
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
|
};
|
||||||
|
/** 0x899a250cbe84f250/1 */
|
||||||
|
nftsApi: {
|
||||||
|
/**
|
||||||
|
* An attribute
|
||||||
|
**/
|
||||||
|
attribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||||
|
/**
|
||||||
|
* A collection attribute
|
||||||
|
**/
|
||||||
|
collectionAttribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||||
|
/**
|
||||||
|
* A collection owner
|
||||||
|
**/
|
||||||
|
collectionOwner: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array) => Observable<Option<AccountId>>>;
|
||||||
|
/**
|
||||||
|
* A custom attribute
|
||||||
|
**/
|
||||||
|
customAttribute: AugmentedCall<ApiType, (account: AccountId | string | Uint8Array, collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||||
|
/**
|
||||||
|
* Collection owner
|
||||||
|
**/
|
||||||
|
owner: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array) => Observable<Option<AccountId>>>;
|
||||||
|
/**
|
||||||
|
* System attribute
|
||||||
|
**/
|
||||||
|
systemAttribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||||
/**
|
/**
|
||||||
* Generic call
|
* Generic call
|
||||||
**/
|
**/
|
||||||
@@ -218,10 +259,18 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
};
|
};
|
||||||
/** 0x17a6bc0d0062aeb3/1 */
|
/** 0x17a6bc0d0062aeb3/1 */
|
||||||
nominationPoolsApi: {
|
nominationPoolsApi: {
|
||||||
|
/**
|
||||||
|
* Returns the equivalent points of `new_funds` for a given pool.
|
||||||
|
**/
|
||||||
|
balanceToPoints: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, newFunds: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||||
/**
|
/**
|
||||||
* Returns the pending rewards for the given member.
|
* Returns the pending rewards for the given member.
|
||||||
**/
|
**/
|
||||||
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
||||||
|
/**
|
||||||
|
* Returns the equivalent balance of `points` for a given pool.
|
||||||
|
**/
|
||||||
|
pointsToBalance: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, points: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||||
/**
|
/**
|
||||||
* Generic call
|
* Generic call
|
||||||
**/
|
**/
|
||||||
@@ -253,6 +302,17 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
|
/** 0x18ef58a3b67ba770/1 */
|
||||||
|
stakingApi: {
|
||||||
|
/**
|
||||||
|
* Returns the nominations quota for a nominator with a given balance.
|
||||||
|
**/
|
||||||
|
nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
|
||||||
|
/**
|
||||||
|
* Generic call
|
||||||
|
**/
|
||||||
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
|
};
|
||||||
/** 0xd2bc9897eed08f15/3 */
|
/** 0xd2bc9897eed08f15/3 */
|
||||||
taggedTransactionQueue: {
|
taggedTransactionQueue: {
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import type { Data } from '@polkadot/types';
|
|||||||
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensMiscAttributeNamespace, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMessageQueueMockHelpersMessageOrigin, PalletMultisigTimepoint, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||||
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
||||||
@@ -581,6 +581,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
**/
|
**/
|
||||||
setMetadata: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, name: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, decimals: u8 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Bytes, Bytes, u8]>;
|
setMetadata: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, name: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, decimals: u8 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Bytes, Bytes, u8]>;
|
||||||
|
/**
|
||||||
|
* Sets the minimum balance of an asset.
|
||||||
|
*
|
||||||
|
* Only works if there aren't any accounts that are holding the asset or if
|
||||||
|
* the new value of `min_balance` is less than the old one.
|
||||||
|
*
|
||||||
|
* Origin must be Signed and the sender has to be the Owner of the
|
||||||
|
* asset `id`.
|
||||||
|
*
|
||||||
|
* - `id`: The identifier of the asset.
|
||||||
|
* - `min_balance`: The new value of `min_balance`.
|
||||||
|
*
|
||||||
|
* Emits `AssetMinBalanceChanged` event when successful.
|
||||||
|
**/
|
||||||
|
setMinBalance: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, u128]>;
|
||||||
/**
|
/**
|
||||||
* Change the Issuer, Admin and Freezer of an asset.
|
* Change the Issuer, Admin and Freezer of an asset.
|
||||||
*
|
*
|
||||||
@@ -761,11 +776,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
};
|
};
|
||||||
balances: {
|
balances: {
|
||||||
/**
|
/**
|
||||||
* Exactly as `transfer`, except the origin must be root and the source account may be
|
* Set the regular balance of a given account.
|
||||||
* specified.
|
*
|
||||||
* ## Complexity
|
* The dispatch origin for this call is `root`.
|
||||||
* - Same as transfer, but additional read and write because the source account is not
|
**/
|
||||||
* assumed to be in the overlay.
|
forceSetBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
||||||
|
/**
|
||||||
|
* Exactly as `transfer_allow_death`, except the origin must be root and the source account
|
||||||
|
* may be specified.
|
||||||
**/
|
**/
|
||||||
forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Compact<u128>]>;
|
forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Compact<u128>]>;
|
||||||
/**
|
/**
|
||||||
@@ -775,39 +793,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
forceUnreserve: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
|
forceUnreserve: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
|
||||||
/**
|
/**
|
||||||
* Set the balances of a given account.
|
* Set the regular balance of a given account; it also takes a reserved balance but this
|
||||||
*
|
* must be the same as the account's current reserved balance.
|
||||||
* This will alter `FreeBalance` and `ReservedBalance` in storage. it will
|
|
||||||
* also alter the total issuance of the system (`TotalIssuance`) appropriately.
|
|
||||||
* If the new free or reserved balance is below the existential deposit,
|
|
||||||
* it will reset the account nonce (`frame_system::AccountNonce`).
|
|
||||||
*
|
*
|
||||||
* The dispatch origin for this call is `root`.
|
* The dispatch origin for this call is `root`.
|
||||||
|
*
|
||||||
|
* WARNING: This call is DEPRECATED! Use `force_set_balance` instead.
|
||||||
**/
|
**/
|
||||||
setBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, newReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;
|
setBalanceDeprecated: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, oldReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;
|
||||||
/**
|
/**
|
||||||
* Transfer some liquid free balance to another account.
|
* Alias for `transfer_allow_death`, provided only for name-wise compatibility.
|
||||||
*
|
*
|
||||||
* `transfer` will set the `FreeBalance` of the sender and receiver.
|
* WARNING: DEPRECATED! Will be released in approximately 3 months.
|
||||||
* If the sender's account is below the existential deposit as a result
|
|
||||||
* of the transfer, the account will be reaped.
|
|
||||||
*
|
|
||||||
* The dispatch origin for this call must be `Signed` by the transactor.
|
|
||||||
*
|
|
||||||
* ## Complexity
|
|
||||||
* - Dependent on arguments but not critical, given proper implementations for input config
|
|
||||||
* types. See related functions below.
|
|
||||||
* - It contains a limited number of reads and writes internally and no complex
|
|
||||||
* computation.
|
|
||||||
*
|
|
||||||
* Related functions:
|
|
||||||
*
|
|
||||||
* - `ensure_can_withdraw` is always called internally but has a bounded complexity.
|
|
||||||
* - Transferring balances to accounts that did not exist before will cause
|
|
||||||
* `T::OnNewAccount::on_new_account` to be called.
|
|
||||||
* - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
|
|
||||||
* - `transfer_keep_alive` works the same way as `transfer`, but has an additional check
|
|
||||||
* that the transfer will not kill the origin account.
|
|
||||||
**/
|
**/
|
||||||
transfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
transfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
||||||
/**
|
/**
|
||||||
@@ -825,19 +822,39 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
||||||
* of the funds the account has, causing the sender account to be killed (false), or
|
* of the funds the account has, causing the sender account to be killed (false), or
|
||||||
* transfer everything except at least the existential deposit, which will guarantee to
|
* transfer everything except at least the existential deposit, which will guarantee to
|
||||||
* keep the sender account alive (true). ## Complexity
|
* keep the sender account alive (true).
|
||||||
* - O(1). Just like transfer, but reading the user's transferable balance first.
|
|
||||||
**/
|
**/
|
||||||
transferAll: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
|
transferAll: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
|
||||||
/**
|
/**
|
||||||
* Same as the [`transfer`] call, but with a check that the transfer will not kill the
|
* Transfer some liquid free balance to another account.
|
||||||
* origin account.
|
|
||||||
*
|
*
|
||||||
* 99% of the time you want [`transfer`] instead.
|
* `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
|
||||||
|
* If the sender's account is below the existential deposit as a result
|
||||||
|
* of the transfer, the account will be reaped.
|
||||||
*
|
*
|
||||||
* [`transfer`]: struct.Pallet.html#method.transfer
|
* The dispatch origin for this call must be `Signed` by the transactor.
|
||||||
|
**/
|
||||||
|
transferAllowDeath: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
||||||
|
/**
|
||||||
|
* Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
|
||||||
|
* kill the origin account.
|
||||||
|
*
|
||||||
|
* 99% of the time you want [`transfer_allow_death`] instead.
|
||||||
|
*
|
||||||
|
* [`transfer_allow_death`]: struct.Pallet.html#method.transfer
|
||||||
**/
|
**/
|
||||||
transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
||||||
|
/**
|
||||||
|
* Upgrade a specified account.
|
||||||
|
*
|
||||||
|
* - `origin`: Must be `Signed`.
|
||||||
|
* - `who`: The account to be upgraded.
|
||||||
|
*
|
||||||
|
* This will waive the transaction fee if at least all but 10% of the accounts needed to
|
||||||
|
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
||||||
|
* possibililty of churn).
|
||||||
|
**/
|
||||||
|
upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -1230,9 +1247,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* the in storage version to the current
|
* the in storage version to the current
|
||||||
* [`InstructionWeights::version`](InstructionWeights).
|
* [`InstructionWeights::version`](InstructionWeights).
|
||||||
*
|
*
|
||||||
* - `determinism`: If this is set to any other value but [`Determinism::Deterministic`]
|
* - `determinism`: If this is set to any other value but [`Determinism::Enforced`] then
|
||||||
* then the only way to use this code is to delegate call into it from an offchain
|
* the only way to use this code is to delegate call into it from an offchain execution.
|
||||||
* execution. Set to [`Determinism::Deterministic`] if in doubt.
|
* Set to [`Determinism::Enforced`] if in doubt.
|
||||||
*
|
*
|
||||||
* # Note
|
* # Note
|
||||||
*
|
*
|
||||||
@@ -1241,7 +1258,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* only be instantiated by permissioned entities. The same is true when uploading
|
* only be instantiated by permissioned entities. The same is true when uploading
|
||||||
* through [`Self::instantiate_with_code`].
|
* through [`Self::instantiate_with_code`].
|
||||||
**/
|
**/
|
||||||
uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, determinism: PalletContractsWasmDeterminism | 'Deterministic' | 'AllowIndeterminism' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Option<Compact<u128>>, PalletContractsWasmDeterminism]>;
|
uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, determinism: PalletContractsWasmDeterminism | 'Enforced' | 'Relaxed' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Option<Compact<u128>>, PalletContractsWasmDeterminism]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -1371,6 +1388,96 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
|
coreFellowship: {
|
||||||
|
/**
|
||||||
|
* Approve a member to continue at their rank.
|
||||||
|
*
|
||||||
|
* This resets `last_proof` to the current block, thereby delaying any automatic demotion.
|
||||||
|
*
|
||||||
|
* If `who` is not already tracked by this pallet, then it will become tracked.
|
||||||
|
* `last_promotion` will be set to zero.
|
||||||
|
*
|
||||||
|
* - `origin`: An origin which satisfies `ApproveOrigin` or root.
|
||||||
|
* - `who`: A member (i.e. of non-zero rank).
|
||||||
|
* - `at_rank`: The rank of member.
|
||||||
|
**/
|
||||||
|
approve: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, atRank: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u16]>;
|
||||||
|
/**
|
||||||
|
* Bump the state of a member.
|
||||||
|
*
|
||||||
|
* This will demote a member whose `last_proof` is now beyond their rank's
|
||||||
|
* `demotion_period`.
|
||||||
|
*
|
||||||
|
* - `origin`: A `Signed` origin of an account.
|
||||||
|
* - `who`: A member account whose state is to be updated.
|
||||||
|
**/
|
||||||
|
bump: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* Introduce an already-ranked individual of the collective into this pallet. The rank may
|
||||||
|
* still be zero.
|
||||||
|
*
|
||||||
|
* This resets `last_proof` to the current block and `last_promotion` will be set to zero,
|
||||||
|
* thereby delaying any automatic demotion but allowing immediate promotion.
|
||||||
|
*
|
||||||
|
* - `origin`: A signed origin of a ranked, but not tracked, account.
|
||||||
|
**/
|
||||||
|
import: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
|
/**
|
||||||
|
* Introduce a new and unranked candidate (rank zero).
|
||||||
|
*
|
||||||
|
* - `origin`: An origin which satisfies `InductOrigin` or root.
|
||||||
|
* - `who`: The account ID of the candidate to be inducted and become a member.
|
||||||
|
**/
|
||||||
|
induct: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* Stop tracking a prior member who is now not a ranked member of the collective.
|
||||||
|
*
|
||||||
|
* - `origin`: A `Signed` origin of an account.
|
||||||
|
* - `who`: The ID of an account which was tracked in this pallet but which is now not a
|
||||||
|
* ranked member of the collective.
|
||||||
|
**/
|
||||||
|
offboard: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* Increment the rank of a ranked and tracked account.
|
||||||
|
*
|
||||||
|
* - `origin`: An origin which satisfies `PromoteOrigin` with a `Success` result of
|
||||||
|
* `to_rank` or more or root.
|
||||||
|
* - `who`: The account ID of the member to be promoted to `to_rank`.
|
||||||
|
* - `to_rank`: One more than the current rank of `who`.
|
||||||
|
**/
|
||||||
|
promote: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, toRank: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u16]>;
|
||||||
|
/**
|
||||||
|
* Set whether a member is active or not.
|
||||||
|
*
|
||||||
|
* - `origin`: A `Signed` origin of a member's account.
|
||||||
|
* - `is_active`: `true` iff the member is active.
|
||||||
|
**/
|
||||||
|
setActive: AugmentedSubmittable<(isActive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
|
||||||
|
/**
|
||||||
|
* Set the parameters.
|
||||||
|
*
|
||||||
|
* - `origin`: A origin complying with `ParamsOrigin` or root.
|
||||||
|
* - `params`: The new parameters for the pallet.
|
||||||
|
**/
|
||||||
|
setParams: AugmentedSubmittable<(params: PalletCoreFellowshipParamsType | { activeSalary?: any; passiveSalary?: any; demotionPeriod?: any; minPromotionPeriod?: any; offboardTimeout?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletCoreFellowshipParamsType]>;
|
||||||
|
/**
|
||||||
|
* Provide evidence that a rank is deserved.
|
||||||
|
*
|
||||||
|
* This is free as long as no evidence for the forthcoming judgement is already submitted.
|
||||||
|
* Evidence is cleared after an outcome (either demotion, promotion of approval).
|
||||||
|
*
|
||||||
|
* - `origin`: A `Signed` origin of an inducted and ranked account.
|
||||||
|
* - `wish`: The stated desire of the member.
|
||||||
|
* - `evidence`: A dump of evidence to be considered. This should generally be either a
|
||||||
|
* Markdown-encoded document or a series of 32-byte hashes which can be found on a
|
||||||
|
* decentralised content-based-indexing system such as IPFS.
|
||||||
|
**/
|
||||||
|
submitEvidence: AugmentedSubmittable<(wish: PalletCoreFellowshipWish | 'Retention' | 'Promotion' | number | Uint8Array, evidence: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletCoreFellowshipWish, Bytes]>;
|
||||||
|
/**
|
||||||
|
* Generic tx
|
||||||
|
**/
|
||||||
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
|
};
|
||||||
council: {
|
council: {
|
||||||
/**
|
/**
|
||||||
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
||||||
@@ -2000,6 +2107,32 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
|
glutton: {
|
||||||
|
/**
|
||||||
|
* Initializes the pallet by writing into `TrashData`.
|
||||||
|
*
|
||||||
|
* Only callable by Root. A good default for `trash_count` is `5_000`.
|
||||||
|
**/
|
||||||
|
initializePallet: AugmentedSubmittable<(newCount: u32 | AnyNumber | Uint8Array, witnessCount: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>]>;
|
||||||
|
/**
|
||||||
|
* Set the `Compute` storage value that determines how much of the
|
||||||
|
* block's weight `ref_time` to use during `on_idle`.
|
||||||
|
*
|
||||||
|
* Only callable by Root.
|
||||||
|
**/
|
||||||
|
setCompute: AugmentedSubmittable<(compute: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
|
||||||
|
/**
|
||||||
|
* Set the `Storage` storage value that determines the PoV size usage
|
||||||
|
* for each block.
|
||||||
|
*
|
||||||
|
* Only callable by Root.
|
||||||
|
**/
|
||||||
|
setStorage: AugmentedSubmittable<(storage: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
|
||||||
|
/**
|
||||||
|
* Generic tx
|
||||||
|
**/
|
||||||
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
|
};
|
||||||
grandpa: {
|
grandpa: {
|
||||||
/**
|
/**
|
||||||
* Note that the current authority set of the GRANDPA finality gadget has stalled.
|
* Note that the current authority set of the GRANDPA finality gadget has stalled.
|
||||||
@@ -2022,7 +2155,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* against the extracted offender. If both are valid, the offence
|
* against the extracted offender. If both are valid, the offence
|
||||||
* will be reported.
|
* will be reported.
|
||||||
**/
|
**/
|
||||||
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
||||||
/**
|
/**
|
||||||
* Report voter equivocation/misbehavior. This method will verify the
|
* Report voter equivocation/misbehavior. This method will verify the
|
||||||
* equivocation proof and validate the given key ownership proof
|
* equivocation proof and validate the given key ownership proof
|
||||||
@@ -2034,7 +2167,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* if the block author is defined it will be defined as the equivocation
|
* if the block author is defined it will be defined as the equivocation
|
||||||
* reporter.
|
* reporter.
|
||||||
**/
|
**/
|
||||||
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -2425,6 +2558,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Execute an overweight message.
|
* Execute an overweight message.
|
||||||
*
|
*
|
||||||
|
* Temporary processing errors will be propagated whereas permanent errors are treated
|
||||||
|
* as success condition.
|
||||||
|
*
|
||||||
* - `origin`: Must be `Signed`.
|
* - `origin`: Must be `Signed`.
|
||||||
* - `message_origin`: The origin from which the message to be executed arrived.
|
* - `message_origin`: The origin from which the message to be executed arrived.
|
||||||
* - `page`: The page in the queue in which the message to be executed is sitting.
|
* - `page`: The page in the queue in which the message to be executed is sitting.
|
||||||
@@ -2434,11 +2570,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Benchmark complexity considerations: O(index + weight_limit).
|
* Benchmark complexity considerations: O(index + weight_limit).
|
||||||
**/
|
**/
|
||||||
executeOverweight: AugmentedSubmittable<(messageOrigin: PalletMessageQueueMockHelpersMessageOrigin | { Here: any } | { There: any } | { Everywhere: any } | string | Uint8Array, page: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletMessageQueueMockHelpersMessageOrigin, u32, u32, SpWeightsWeightV2Weight]>;
|
executeOverweight: AugmentedSubmittable<(messageOrigin: u32 | AnyNumber | Uint8Array, page: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32, SpWeightsWeightV2Weight]>;
|
||||||
/**
|
/**
|
||||||
* Remove a page which has no more messages remaining to be processed or is stale.
|
* Remove a page which has no more messages remaining to be processed or is stale.
|
||||||
**/
|
**/
|
||||||
reapPage: AugmentedSubmittable<(messageOrigin: PalletMessageQueueMockHelpersMessageOrigin | { Here: any } | { There: any } | { Everywhere: any } | string | Uint8Array, pageIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletMessageQueueMockHelpersMessageOrigin, u32]>;
|
reapPage: AugmentedSubmittable<(messageOrigin: u32 | AnyNumber | Uint8Array, pageIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -2597,21 +2733,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Destroy a single item.
|
* Destroy a single item.
|
||||||
*
|
*
|
||||||
* Origin must be Signed and the signing account must be either:
|
* The origin must conform to `ForceOrigin` or must be Signed and the signing account must
|
||||||
* - the Admin of the `collection`;
|
* be the owner of the `item`.
|
||||||
* - the Owner of the `item`;
|
|
||||||
*
|
*
|
||||||
* - `collection`: The collection of the item to be burned.
|
* - `collection`: The collection of the item to be burned.
|
||||||
* - `item`: The item to be burned.
|
* - `item`: The item to be burned.
|
||||||
* - `check_owner`: If `Some` then the operation will fail with `WrongOwner` unless the
|
|
||||||
* item is owned by this value.
|
|
||||||
*
|
*
|
||||||
* Emits `Burned` with the actual amount burned.
|
* Emits `Burned`.
|
||||||
*
|
*
|
||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
* Modes: `check_owner.is_some()`.
|
|
||||||
**/
|
**/
|
||||||
burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, checkOwner: Option<MultiAddress> | null | Uint8Array | MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
|
burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
||||||
/**
|
/**
|
||||||
* Allows to buy an item if it's up for sale.
|
* Allows to buy an item if it's up for sale.
|
||||||
*
|
*
|
||||||
@@ -2629,7 +2761,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Origin must be either:
|
* Origin must be either:
|
||||||
* - the `Force` origin;
|
* - the `Force` origin;
|
||||||
* - `Signed` with the signer being the Admin of the `collection`;
|
|
||||||
* - `Signed` with the signer being the Owner of the `item`;
|
* - `Signed` with the signer being the Owner of the `item`;
|
||||||
*
|
*
|
||||||
* Arguments:
|
* Arguments:
|
||||||
@@ -2687,7 +2818,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Origin must be either:
|
* Origin must be either:
|
||||||
* - the `Force` origin;
|
* - the `Force` origin;
|
||||||
* - `Signed` with the signer being the Admin of the `collection`;
|
|
||||||
* - `Signed` with the signer being the Owner of the `item`;
|
* - `Signed` with the signer being the Owner of the `item`;
|
||||||
*
|
*
|
||||||
* Arguments:
|
* Arguments:
|
||||||
@@ -2716,11 +2846,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
**/
|
**/
|
||||||
clearAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: FrameSupportTokensMiscAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes]>;
|
clearAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]>;
|
||||||
/**
|
/**
|
||||||
* Clear the metadata for a collection.
|
* Clear the metadata for a collection.
|
||||||
*
|
*
|
||||||
* Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of
|
* Origin must be either `ForceOrigin` or `Signed` and the sender should be the Admin of
|
||||||
* the `collection`.
|
* the `collection`.
|
||||||
*
|
*
|
||||||
* Any deposit is freed for the collection's owner.
|
* Any deposit is freed for the collection's owner.
|
||||||
@@ -2735,7 +2865,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Clear the metadata for an item.
|
* Clear the metadata for an item.
|
||||||
*
|
*
|
||||||
* Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
|
* Origin must be either `ForceOrigin` or Signed and the sender should be the Admin of the
|
||||||
* `collection`.
|
* `collection`.
|
||||||
*
|
*
|
||||||
* Any deposit is freed for the collection's owner.
|
* Any deposit is freed for the collection's owner.
|
||||||
@@ -2791,18 +2921,20 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the
|
* The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the
|
||||||
* owner of the `collection`.
|
* owner of the `collection`.
|
||||||
*
|
*
|
||||||
|
* NOTE: The collection must have 0 items to be destroyed.
|
||||||
|
*
|
||||||
* - `collection`: The identifier of the collection to be destroyed.
|
* - `collection`: The identifier of the collection to be destroyed.
|
||||||
* - `witness`: Information on the items minted in the collection. This must be
|
* - `witness`: Information on the items minted in the collection. This must be
|
||||||
* correct.
|
* correct.
|
||||||
*
|
*
|
||||||
* Emits `Destroyed` event when successful.
|
* Emits `Destroyed` event when successful.
|
||||||
*
|
*
|
||||||
* Weight: `O(n + m)` where:
|
* Weight: `O(m + c + a)` where:
|
||||||
* - `n = witness.items`
|
|
||||||
* - `m = witness.item_metadatas`
|
* - `m = witness.item_metadatas`
|
||||||
|
* - `c = witness.item_configs`
|
||||||
* - `a = witness.attributes`
|
* - `a = witness.attributes`
|
||||||
**/
|
**/
|
||||||
destroy: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, witness: PalletNftsDestroyWitness | { items?: any; itemMetadatas?: any; attributes?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNftsDestroyWitness]>;
|
destroy: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, witness: PalletNftsDestroyWitness | { itemMetadatas?: any; itemConfigs?: any; attributes?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNftsDestroyWitness]>;
|
||||||
/**
|
/**
|
||||||
* Change the config of a collection.
|
* Change the config of a collection.
|
||||||
*
|
*
|
||||||
@@ -2882,16 +3014,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
**/
|
**/
|
||||||
forceSetAttribute: AugmentedSubmittable<(setAs: Option<AccountId32> | null | Uint8Array | AccountId32 | string, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: FrameSupportTokensMiscAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>, u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes, Bytes]>;
|
forceSetAttribute: AugmentedSubmittable<(setAs: Option<AccountId32> | null | Uint8Array | AccountId32 | string, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>, u32, Option<u32>, PalletNftsAttributeNamespace, Bytes, Bytes]>;
|
||||||
/**
|
/**
|
||||||
* Disallows specified settings for the whole collection.
|
* Disallows specified settings for the whole collection.
|
||||||
*
|
*
|
||||||
* Origin must be Signed and the sender should be the Freezer of the `collection`.
|
* Origin must be Signed and the sender should be the Owner of the `collection`.
|
||||||
*
|
*
|
||||||
* - `collection`: The collection to be locked.
|
* - `collection`: The collection to be locked.
|
||||||
* - `lock_settings`: The settings to be locked.
|
* - `lock_settings`: The settings to be locked.
|
||||||
*
|
*
|
||||||
* Note: it's possible to only lock(set) the setting, but not to unset it.
|
* Note: it's possible to only lock(set) the setting, but not to unset it.
|
||||||
|
*
|
||||||
* Emits `CollectionLocked`.
|
* Emits `CollectionLocked`.
|
||||||
*
|
*
|
||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
@@ -2900,8 +3033,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Disallows changing the metadata or attributes of the item.
|
* Disallows changing the metadata or attributes of the item.
|
||||||
*
|
*
|
||||||
* Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
|
* Origin must be either `ForceOrigin` or Signed and the sender should be the Admin
|
||||||
* `collection`.
|
* of the `collection`.
|
||||||
*
|
*
|
||||||
* - `collection`: The collection if the `item`.
|
* - `collection`: The collection if the `item`.
|
||||||
* - `item`: An item to be locked.
|
* - `item`: An item to be locked.
|
||||||
@@ -2909,8 +3042,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `lock_attributes`: Specifies whether the attributes in the `CollectionOwner` namespace
|
* - `lock_attributes`: Specifies whether the attributes in the `CollectionOwner` namespace
|
||||||
* should be locked.
|
* should be locked.
|
||||||
*
|
*
|
||||||
* Note: `lock_attributes` affects the attributes in the `CollectionOwner` namespace
|
* Note: `lock_attributes` affects the attributes in the `CollectionOwner` namespace only.
|
||||||
* only. When the metadata or attributes are locked, it won't be possible the unlock them.
|
* When the metadata or attributes are locked, it won't be possible the unlock them.
|
||||||
*
|
*
|
||||||
* Emits `ItemPropertiesLocked`.
|
* Emits `ItemPropertiesLocked`.
|
||||||
*
|
*
|
||||||
@@ -2933,7 +3066,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Mint an item of a particular collection.
|
* Mint an item of a particular collection.
|
||||||
*
|
*
|
||||||
* The origin must be Signed and the sender must be the Issuer of the `collection`.
|
* The origin must be Signed and the sender must comply with the `mint_settings` rules.
|
||||||
*
|
*
|
||||||
* - `collection`: The collection of the item to be minted.
|
* - `collection`: The collection of the item to be minted.
|
||||||
* - `item`: An identifier of the new item.
|
* - `item`: An identifier of the new item.
|
||||||
@@ -2947,7 +3080,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
**/
|
**/
|
||||||
mint: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, mintTo: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, witnessData: Option<PalletNftsMintWitness> | null | Uint8Array | PalletNftsMintWitness | { ownerOfItem?: any } | string) => SubmittableExtrinsic<ApiType>, [u32, u32, MultiAddress, Option<PalletNftsMintWitness>]>;
|
mint: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, mintTo: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, witnessData: Option<PalletNftsMintWitness> | null | Uint8Array | PalletNftsMintWitness | { ownedItem?: any } | string) => SubmittableExtrinsic<ApiType>, [u32, u32, MultiAddress, Option<PalletNftsMintWitness>]>;
|
||||||
/**
|
/**
|
||||||
* Mint an item by providing the pre-signed approval.
|
* Mint an item by providing the pre-signed approval.
|
||||||
*
|
*
|
||||||
@@ -2957,7 +3090,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* its metadata, attributes, who can mint it (`None` for anyone) and until what block
|
* its metadata, attributes, who can mint it (`None` for anyone) and until what block
|
||||||
* number.
|
* number.
|
||||||
* - `signature`: The signature of the `data` object.
|
* - `signature`: The signature of the `data` object.
|
||||||
* - `signer`: The `data` object's signer. Should be an owner of the collection.
|
* - `signer`: The `data` object's signer. Should be an Issuer of the collection.
|
||||||
*
|
*
|
||||||
* Emits `Issued` on success.
|
* Emits `Issued` on success.
|
||||||
* Emits `AttributeSet` if the attributes were provided.
|
* Emits `AttributeSet` if the attributes were provided.
|
||||||
@@ -3011,7 +3144,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Set an attribute for a collection or item.
|
* Set an attribute for a collection or item.
|
||||||
*
|
*
|
||||||
* Origin must be Signed and must conform to the namespace ruleset:
|
* Origin must be Signed and must conform to the namespace ruleset:
|
||||||
* - `CollectionOwner` namespace could be modified by the `collection` owner only;
|
* - `CollectionOwner` namespace could be modified by the `collection` Admin only;
|
||||||
* - `ItemOwner` namespace could be modified by the `maybe_item` owner only. `maybe_item`
|
* - `ItemOwner` namespace could be modified by the `maybe_item` owner only. `maybe_item`
|
||||||
* should be set in that case;
|
* should be set in that case;
|
||||||
* - `Account(AccountId)` namespace could be modified only when the `origin` was given a
|
* - `Account(AccountId)` namespace could be modified only when the `origin` was given a
|
||||||
@@ -3031,7 +3164,23 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
**/
|
**/
|
||||||
setAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: FrameSupportTokensMiscAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes, Bytes]>;
|
setAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes, Bytes]>;
|
||||||
|
/**
|
||||||
|
* Set attributes for an item by providing the pre-signed approval.
|
||||||
|
*
|
||||||
|
* Origin must be Signed and must be an owner of the `data.item`.
|
||||||
|
*
|
||||||
|
* - `data`: The pre-signed approval that consists of the information about the item,
|
||||||
|
* attributes to update and until what block number.
|
||||||
|
* - `signature`: The signature of the `data` object.
|
||||||
|
* - `signer`: The `data` object's signer. Should be an Admin of the collection for the
|
||||||
|
* `CollectionOwner` namespace.
|
||||||
|
*
|
||||||
|
* Emits `AttributeSet` for each provided attribute.
|
||||||
|
* Emits `ItemAttributesApprovalAdded` if the approval wasn't set before.
|
||||||
|
* Emits `PreSignedAttributesSet` on success.
|
||||||
|
**/
|
||||||
|
setAttributesPreSigned: AugmentedSubmittable<(data: PalletNftsPreSignedAttributes | { collection?: any; item?: any; attributes?: any; namespace?: any; deadline?: any } | string | Uint8Array, signature: SpRuntimeMultiSignature | { Ed25519: any } | { Sr25519: any } | { Ecdsa: any } | string | Uint8Array, signer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNftsPreSignedAttributes, SpRuntimeMultiSignature, AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* Set the maximum number of items a collection could have.
|
* Set the maximum number of items a collection could have.
|
||||||
*
|
*
|
||||||
@@ -3047,7 +3196,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Set the metadata for a collection.
|
* Set the metadata for a collection.
|
||||||
*
|
*
|
||||||
* Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of
|
* Origin must be either `ForceOrigin` or `Signed` and the sender should be the Admin of
|
||||||
* the `collection`.
|
* the `collection`.
|
||||||
*
|
*
|
||||||
* If the origin is `Signed`, then funds of signer are reserved according to the formula:
|
* If the origin is `Signed`, then funds of signer are reserved according to the formula:
|
||||||
@@ -3065,7 +3214,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Set the metadata for an item.
|
* Set the metadata for an item.
|
||||||
*
|
*
|
||||||
* Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
|
* Origin must be either `ForceOrigin` or Signed and the sender should be the Admin of the
|
||||||
* `collection`.
|
* `collection`.
|
||||||
*
|
*
|
||||||
* If the origin is Signed, then funds of signer are reserved according to the formula:
|
* If the origin is Signed, then funds of signer are reserved according to the formula:
|
||||||
@@ -3084,7 +3233,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Set (or reset) the price for an item.
|
* Set (or reset) the price for an item.
|
||||||
*
|
*
|
||||||
* Origin must be Signed and must be the owner of the asset `item`.
|
* Origin must be Signed and must be the owner of the `item`.
|
||||||
*
|
*
|
||||||
* - `collection`: The collection of the item.
|
* - `collection`: The collection of the item.
|
||||||
* - `item`: The item to set the price for.
|
* - `item`: The item to set the price for.
|
||||||
@@ -3101,6 +3250,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
|
* Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
|
||||||
* `collection`.
|
* `collection`.
|
||||||
*
|
*
|
||||||
|
* Note: by setting the role to `None` only the `ForceOrigin` will be able to change it
|
||||||
|
* after to `Some(account)`.
|
||||||
|
*
|
||||||
* - `collection`: The collection whose team should be changed.
|
* - `collection`: The collection whose team should be changed.
|
||||||
* - `issuer`: The new Issuer of this collection.
|
* - `issuer`: The new Issuer of this collection.
|
||||||
* - `admin`: The new Admin of this collection.
|
* - `admin`: The new Admin of this collection.
|
||||||
@@ -3110,12 +3262,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
**/
|
**/
|
||||||
setTeam: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, issuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freezer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress, MultiAddress, MultiAddress]>;
|
setTeam: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, issuer: Option<MultiAddress> | null | Uint8Array | MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string, admin: Option<MultiAddress> | null | Uint8Array | MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string, freezer: Option<MultiAddress> | null | Uint8Array | MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string) => SubmittableExtrinsic<ApiType>, [u32, Option<MultiAddress>, Option<MultiAddress>, Option<MultiAddress>]>;
|
||||||
/**
|
/**
|
||||||
* Move an item from the sender account to another.
|
* Move an item from the sender account to another.
|
||||||
*
|
*
|
||||||
* Origin must be Signed and the signing account must be either:
|
* Origin must be Signed and the signing account must be either:
|
||||||
* - the Admin of the `collection`;
|
|
||||||
* - the Owner of the `item`;
|
* - the Owner of the `item`;
|
||||||
* - the approved delegate for the `item` (in this case, the approval is reset).
|
* - the approved delegate for the `item` (in this case, the approval is reset).
|
||||||
*
|
*
|
||||||
@@ -3159,8 +3310,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Update mint settings.
|
* Update mint settings.
|
||||||
*
|
*
|
||||||
* Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of
|
* Origin must be either `ForceOrigin` or `Signed` and the sender should be the Issuer
|
||||||
* the `collection`.
|
* of the `collection`.
|
||||||
*
|
*
|
||||||
* - `collection`: The identifier of the collection to change.
|
* - `collection`: The identifier of the collection to change.
|
||||||
* - `mint_settings`: The new mint settings.
|
* - `mint_settings`: The new mint settings.
|
||||||
@@ -3245,8 +3396,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* accumulated rewards, see [`BondExtra`].
|
* accumulated rewards, see [`BondExtra`].
|
||||||
*
|
*
|
||||||
* Bonding extra funds implies an automatic payout of all pending rewards as well.
|
* Bonding extra funds implies an automatic payout of all pending rewards as well.
|
||||||
|
* See `bond_extra_other` to bond pending rewards of `other` members.
|
||||||
**/
|
**/
|
||||||
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | { FreeBalance: any } | { Rewards: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
|
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | { FreeBalance: any } | { Rewards: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
|
||||||
|
/**
|
||||||
|
* `origin` bonds funds from `extra` for some pool member `member` into their respective
|
||||||
|
* pools.
|
||||||
|
*
|
||||||
|
* `origin` can bond extra funds from free balance or pending rewards when `origin ==
|
||||||
|
* other`.
|
||||||
|
*
|
||||||
|
* In the case of `origin != other`, `origin` can only bond extra pending rewards of
|
||||||
|
* `other` members assuming set_claim_permission for the given member is
|
||||||
|
* `PermissionlessAll` or `PermissionlessCompound`.
|
||||||
|
**/
|
||||||
|
bondExtraOther: AugmentedSubmittable<(member: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, extra: PalletNominationPoolsBondExtra | { FreeBalance: any } | { Rewards: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletNominationPoolsBondExtra]>;
|
||||||
/**
|
/**
|
||||||
* Chill on behalf of the pool.
|
* Chill on behalf of the pool.
|
||||||
*
|
*
|
||||||
@@ -3257,15 +3421,32 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* account.
|
* account.
|
||||||
**/
|
**/
|
||||||
chill: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
chill: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
|
/**
|
||||||
|
* Claim pending commission.
|
||||||
|
*
|
||||||
|
* The dispatch origin of this call must be signed by the `root` role of the pool. Pending
|
||||||
|
* commission is paid out and added to total claimed commission`. Total pending commission
|
||||||
|
* is reset to zero. the current.
|
||||||
|
**/
|
||||||
|
claimCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
/**
|
/**
|
||||||
* A bonded member can use this to claim their payout based on the rewards that the pool
|
* A bonded member can use this to claim their payout based on the rewards that the pool
|
||||||
* has accumulated since their last claimed payout (OR since joining if this is there first
|
* has accumulated since their last claimed payout (OR since joining if this is their first
|
||||||
* time claiming rewards). The payout will be transferred to the member's account.
|
* time claiming rewards). The payout will be transferred to the member's account.
|
||||||
*
|
*
|
||||||
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
||||||
* members in the pools stake. Rewards do not "expire".
|
* members in the pools stake. Rewards do not "expire".
|
||||||
|
*
|
||||||
|
* See `claim_payout_other` to caim rewards on bahalf of some `other` pool member.
|
||||||
**/
|
**/
|
||||||
claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
|
/**
|
||||||
|
* `origin` can claim payouts on some pool member `other`'s behalf.
|
||||||
|
*
|
||||||
|
* Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order
|
||||||
|
* for this call to be successful.
|
||||||
|
**/
|
||||||
|
claimPayoutOther: AugmentedSubmittable<(other: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* Create a new delegation pool.
|
* Create a new delegation pool.
|
||||||
*
|
*
|
||||||
@@ -3278,14 +3459,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* creating multiple pools in the same extrinsic.
|
* creating multiple pools in the same extrinsic.
|
||||||
* * `root` - The account to set as [`PoolRoles::root`].
|
* * `root` - The account to set as [`PoolRoles::root`].
|
||||||
* * `nominator` - The account to set as the [`PoolRoles::nominator`].
|
* * `nominator` - The account to set as the [`PoolRoles::nominator`].
|
||||||
* * `state_toggler` - The account to set as the [`PoolRoles::state_toggler`].
|
* * `bouncer` - The account to set as the [`PoolRoles::bouncer`].
|
||||||
*
|
*
|
||||||
* # Note
|
* # Note
|
||||||
*
|
*
|
||||||
* In addition to `amount`, the caller will transfer the existential deposit; so the caller
|
* In addition to `amount`, the caller will transfer the existential deposit; so the caller
|
||||||
* needs at have at least `amount + existential_deposit` transferrable.
|
* needs at have at least `amount + existential_deposit` transferrable.
|
||||||
**/
|
**/
|
||||||
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress]>;
|
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, bouncer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Create a new delegation pool with a previously used pool id
|
* Create a new delegation pool with a previously used pool id
|
||||||
*
|
*
|
||||||
@@ -3294,7 +3475,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* same as `create` with the inclusion of
|
* same as `create` with the inclusion of
|
||||||
* * `pool_id` - `A valid PoolId.
|
* * `pool_id` - `A valid PoolId.
|
||||||
**/
|
**/
|
||||||
createWithPoolId: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress, u32]>;
|
createWithPoolId: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, bouncer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress, u32]>;
|
||||||
/**
|
/**
|
||||||
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
||||||
* pools account and immediately increases the pools bond.
|
* pools account and immediately increases the pools bond.
|
||||||
@@ -3327,6 +3508,44 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* they attempt to unbond.
|
* they attempt to unbond.
|
||||||
**/
|
**/
|
||||||
poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
||||||
|
/**
|
||||||
|
* Allows a pool member to set a claim permission to allow or disallow permissionless
|
||||||
|
* bonding and withdrawing.
|
||||||
|
*
|
||||||
|
* By default, this is `Permissioned`, which implies only the pool member themselves can
|
||||||
|
* claim their pending rewards. If a pool member wishes so, they can set this to
|
||||||
|
* `PermissionlessAll` to allow any account to claim their rewards and bond extra to the
|
||||||
|
* pool.
|
||||||
|
*
|
||||||
|
* # Arguments
|
||||||
|
*
|
||||||
|
* * `origin` - Member of a pool.
|
||||||
|
* * `actor` - Account to claim reward. // improve this
|
||||||
|
**/
|
||||||
|
setClaimPermission: AugmentedSubmittable<(permission: PalletNominationPoolsClaimPermission | 'Permissioned' | 'PermissionlessCompound' | 'PermissionlessWithdraw' | 'PermissionlessAll' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsClaimPermission]>;
|
||||||
|
/**
|
||||||
|
* Set the commission of a pool.
|
||||||
|
* Both a commission percentage and a commission payee must be provided in the `current`
|
||||||
|
* tuple. Where a `current` of `None` is provided, any current commission will be removed.
|
||||||
|
*
|
||||||
|
* - If a `None` is supplied to `new_commission`, existing commission will be removed.
|
||||||
|
**/
|
||||||
|
setCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newCommission: Option<ITuple<[Perbill, AccountId32]>> | null | Uint8Array | ITuple<[Perbill, AccountId32]> | [Perbill | AnyNumber | Uint8Array, AccountId32 | string | Uint8Array]) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[Perbill, AccountId32]>>]>;
|
||||||
|
/**
|
||||||
|
* Set the commission change rate for a pool.
|
||||||
|
*
|
||||||
|
* Initial change rate is not bounded, whereas subsequent updates can only be more
|
||||||
|
* restrictive than the current.
|
||||||
|
**/
|
||||||
|
setCommissionChangeRate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, changeRate: PalletNominationPoolsCommissionChangeRate | { maxIncrease?: any; minDelay?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsCommissionChangeRate]>;
|
||||||
|
/**
|
||||||
|
* Set the maximum commission of a pool.
|
||||||
|
*
|
||||||
|
* - Initial max can be set to any `Perbill`, and only smaller values thereafter.
|
||||||
|
* - Current commission will be lowered in the event it is higher than a new max
|
||||||
|
* commission.
|
||||||
|
**/
|
||||||
|
setCommissionMax: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, maxCommission: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Perbill]>;
|
||||||
/**
|
/**
|
||||||
* Update configurations for the nomination pools. The origin for this call must be
|
* Update configurations for the nomination pools. The origin for this call must be
|
||||||
* Root.
|
* Root.
|
||||||
@@ -3338,13 +3557,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* * `max_pools` - Set [`MaxPools`].
|
* * `max_pools` - Set [`MaxPools`].
|
||||||
* * `max_members` - Set [`MaxPoolMembers`].
|
* * `max_members` - Set [`MaxPoolMembers`].
|
||||||
* * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`].
|
* * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`].
|
||||||
|
* * `global_max_commission` - Set [`GlobalMaxCommission`].
|
||||||
**/
|
**/
|
||||||
setConfigs: AugmentedSubmittable<(minJoinBond: PalletNominationPoolsConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, minCreateBond: PalletNominationPoolsConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxPools: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxMembers: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxMembersPerPool: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32]>;
|
setConfigs: AugmentedSubmittable<(minJoinBond: PalletNominationPoolsConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, minCreateBond: PalletNominationPoolsConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxPools: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxMembers: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxMembersPerPool: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, globalMaxCommission: PalletNominationPoolsConfigOpPerbill | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpPerbill]>;
|
||||||
/**
|
/**
|
||||||
* Set a new metadata for the pool.
|
* Set a new metadata for the pool.
|
||||||
*
|
*
|
||||||
* The dispatch origin of this call must be signed by the state toggler, or the root role
|
* The dispatch origin of this call must be signed by the bouncer, or the root role of the
|
||||||
* of the pool.
|
* pool.
|
||||||
**/
|
**/
|
||||||
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
||||||
/**
|
/**
|
||||||
@@ -3355,7 +3575,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* The dispatch origin of this call must be either:
|
* The dispatch origin of this call must be either:
|
||||||
*
|
*
|
||||||
* 1. signed by the state toggler, or the root role of the pool,
|
* 1. signed by the bouncer, or the root role of the pool,
|
||||||
* 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
|
* 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
|
||||||
* then the state of the pool can be permissionlessly changed to `Destroying`.
|
* then the state of the pool can be permissionlessly changed to `Destroying`.
|
||||||
**/
|
**/
|
||||||
@@ -3370,8 +3590,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* # Conditions for a permissionless dispatch.
|
* # Conditions for a permissionless dispatch.
|
||||||
*
|
*
|
||||||
* * The pool is blocked and the caller is either the root or state-toggler. This is
|
* * The pool is blocked and the caller is either the root or bouncer. This is refereed to
|
||||||
* refereed to as a kick.
|
* as a kick.
|
||||||
* * The pool is destroying and the member is not the depositor.
|
* * The pool is destroying and the member is not the depositor.
|
||||||
* * The pool is destroying, the member is the depositor and no other members are in the
|
* * The pool is destroying, the member is the depositor and no other members are in the
|
||||||
* pool.
|
* pool.
|
||||||
@@ -3403,7 +3623,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* It emits an event, notifying UIs of the role change. This event is quite relevant to
|
* It emits an event, notifying UIs of the role change. This event is quite relevant to
|
||||||
* most pool members and they should be informed of changes to pool roles.
|
* most pool members and they should be informed of changes to pool roles.
|
||||||
**/
|
**/
|
||||||
updateRoles: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newRoot: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, newNominator: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, newStateToggler: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32]>;
|
updateRoles: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newRoot: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, newNominator: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, newBouncer: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32]>;
|
||||||
/**
|
/**
|
||||||
* Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an
|
* Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an
|
||||||
* error is returned.
|
* error is returned.
|
||||||
@@ -3415,7 +3635,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* * The pool is in destroy mode and the target is not the depositor.
|
* * The pool is in destroy mode and the target is not the depositor.
|
||||||
* * The target is the depositor and they are the only member in the sub pools.
|
* * The target is the depositor and they are the only member in the sub pools.
|
||||||
* * The pool is blocked and the caller is either the root or state-toggler.
|
* * The pool is blocked and the caller is either the root or bouncer.
|
||||||
*
|
*
|
||||||
* # Conditions for permissioned dispatch
|
* # Conditions for permissioned dispatch
|
||||||
*
|
*
|
||||||
@@ -4031,6 +4251,66 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
|
salary: {
|
||||||
|
/**
|
||||||
|
* Move to next payout cycle, assuming that the present block is now within that cycle.
|
||||||
|
*
|
||||||
|
* - `origin`: A `Signed` origin of an account.
|
||||||
|
**/
|
||||||
|
bump: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
|
/**
|
||||||
|
* Update a payment's status; if it failed, alter the state so the payment can be retried.
|
||||||
|
*
|
||||||
|
* This must be called within the same cycle as the failed payment. It will fail with
|
||||||
|
* `Event::NotCurrent` otherwise.
|
||||||
|
*
|
||||||
|
* - `origin`: A `Signed` origin of an account which is a member of `Members` who has
|
||||||
|
* received a payment this cycle.
|
||||||
|
**/
|
||||||
|
checkPayment: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
|
/**
|
||||||
|
* Induct oneself into the payout system.
|
||||||
|
**/
|
||||||
|
induct: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
|
/**
|
||||||
|
* Start the first payout cycle.
|
||||||
|
*
|
||||||
|
* - `origin`: A `Signed` origin of an account.
|
||||||
|
**/
|
||||||
|
init: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
|
/**
|
||||||
|
* Request a payout.
|
||||||
|
*
|
||||||
|
* Will only work if we are after the first `RegistrationPeriod` blocks since the cycle
|
||||||
|
* started but by no more than `PayoutPeriod` blocks.
|
||||||
|
*
|
||||||
|
* - `origin`: A `Signed` origin of an account which is a member of `Members`.
|
||||||
|
**/
|
||||||
|
payout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
|
/**
|
||||||
|
* Request a payout to a secondary account.
|
||||||
|
*
|
||||||
|
* Will only work if we are after the first `RegistrationPeriod` blocks since the cycle
|
||||||
|
* started but by no more than `PayoutPeriod` blocks.
|
||||||
|
*
|
||||||
|
* - `origin`: A `Signed` origin of an account which is a member of `Members`.
|
||||||
|
* - `beneficiary`: The account to receive payment.
|
||||||
|
**/
|
||||||
|
payoutOther: AugmentedSubmittable<(beneficiary: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* Register for a payout.
|
||||||
|
*
|
||||||
|
* Will only work if we are in the first `RegistrationPeriod` blocks since the cycle
|
||||||
|
* started.
|
||||||
|
*
|
||||||
|
* - `origin`: A `Signed` origin of an account which is a member of `Members`.
|
||||||
|
**/
|
||||||
|
register: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
|
/**
|
||||||
|
* Generic tx
|
||||||
|
**/
|
||||||
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
|
};
|
||||||
scheduler: {
|
scheduler: {
|
||||||
/**
|
/**
|
||||||
* Cancel an anonymously scheduled task.
|
* Cancel an anonymously scheduled task.
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||||
"contributors": [],
|
|
||||||
"description": "Interfaces for interacting with contracts and contract ABIs",
|
"description": "Interfaces for interacting with contracts and contract ABIs",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.0.0"
|
"node": ">=14"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-base#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-base#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"maintainers": [],
|
|
||||||
"name": "@polkadot/api-base",
|
"name": "@polkadot/api-base",
|
||||||
"repository": {
|
"repository": {
|
||||||
"directory": "packages/api-base",
|
"directory": "packages/api-base",
|
||||||
@@ -20,13 +18,13 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.2",
|
"version": "10.2.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.13",
|
"@polkadot/rpc-core": "10.2.2",
|
||||||
"@polkadot/rpc-core": "9.14.2",
|
"@polkadot/types": "10.2.2",
|
||||||
"@polkadot/types": "9.14.2",
|
"@polkadot/util": "^11.1.3",
|
||||||
"@polkadot/util": "^10.4.2",
|
"rxjs": "^7.8.0",
|
||||||
"rxjs": "^7.8.0"
|
"tslib": "^2.5.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { packageInfo } from './packageInfo';
|
export { packageInfo } from './packageInfo.js';
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
import { detectPackage } from '@polkadot/util';
|
import { detectPackage } from '@polkadot/util';
|
||||||
|
|
||||||
import others from './detectOther';
|
import others from './detectOther.js';
|
||||||
import { packageInfo } from './packageInfo';
|
import { packageInfo } from './packageInfo.js';
|
||||||
|
|
||||||
detectPackage(packageInfo, null, others);
|
detectPackage(packageInfo, null, others);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import './detectPackage';
|
import './detectPackage.js';
|
||||||
|
|
||||||
export * from './bundle';
|
export * from './bundle.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './index';
|
export * from './index.js';
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.14.2' };
|
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '10.2.2' };
|
||||||
|
|||||||
@@ -62,8 +62,7 @@ export interface PaginationOptions<A = unknown> {
|
|||||||
startKey?: string;
|
startKey?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
export type DecorateMethod<_ApiType extends ApiTypes, T = any> =
|
||||||
export type DecorateMethod<ApiType extends ApiTypes, T = any> =
|
|
||||||
<M extends (...args: any[]) => Observable<any>>(method: M, options?: DecorateMethodOptions) => T;
|
<M extends (...args: any[]) => Observable<any>>(method: M, options?: DecorateMethodOptions) => T;
|
||||||
|
|
||||||
type AsCodec<R extends Codec | any> = R extends Codec
|
type AsCodec<R extends Codec | any> = R extends Codec
|
||||||
@@ -71,3 +70,9 @@ type AsCodec<R extends Codec | any> = R extends Codec
|
|||||||
: Codec;
|
: Codec;
|
||||||
|
|
||||||
export type ReturnCodec<F extends AnyFunction> = AsCodec<ObsInnerType<ReturnType<F>>>;
|
export type ReturnCodec<F extends AnyFunction> = AsCodec<ObsInnerType<ReturnType<F>>>;
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||||
|
export interface EmptyBase<_> {
|
||||||
|
// this is use to allow use to have unused vars in augmented interfaces,
|
||||||
|
// so intentionally left empty
|
||||||
|
}
|
||||||
|
|||||||
@@ -3,14 +3,13 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { AnyFunction, Codec, DefinitionCallNamed } from '@polkadot/types/types';
|
import type { AnyFunction, Codec, DefinitionCallNamed } from '@polkadot/types/types';
|
||||||
import type { ApiTypes, ReturnCodec } from './base';
|
import type { ApiTypes, EmptyBase, ReturnCodec } from './base.js';
|
||||||
|
|
||||||
export type DecoratedCallBase<ApiType extends ApiTypes, F extends AnyFunction = (...args: any[]) => Observable<Codec>> =
|
export type DecoratedCallBase<ApiType extends ApiTypes, F extends AnyFunction = (...args: any[]) => Observable<Codec>> =
|
||||||
ApiType extends 'rxjs'
|
ApiType extends 'rxjs'
|
||||||
? <T extends Codec | any = ReturnCodec<F>> (...args: Parameters<F>) => Observable<T>
|
? <T extends Codec | any = ReturnCodec<F>> (...args: Parameters<F>) => Observable<T>
|
||||||
: <T extends Codec | any = ReturnCodec<F>> (...args: Parameters<F>) => Promise<T>;
|
: <T extends Codec | any = ReturnCodec<F>> (...args: Parameters<F>) => Promise<T>;
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
export type AugmentedCall<ApiType extends ApiTypes, F extends AnyFunction = (...args: any[]) => Observable<Codec>> = DecoratedCallBase<ApiType, F> & {
|
export type AugmentedCall<ApiType extends ApiTypes, F extends AnyFunction = (...args: any[]) => Observable<Codec>> = DecoratedCallBase<ApiType, F> & {
|
||||||
/** The metadata/description/definition for this method */
|
/** The metadata/description/definition for this method */
|
||||||
meta: DefinitionCallNamed
|
meta: DefinitionCallNamed
|
||||||
@@ -18,8 +17,8 @@ export type AugmentedCall<ApiType extends ApiTypes, F extends AnyFunction = (...
|
|||||||
|
|
||||||
// augmented interfaces
|
// augmented interfaces
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/no-empty-interface
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||||
export interface AugmentedCalls<ApiType extends ApiTypes> {
|
export interface AugmentedCalls<ApiType extends ApiTypes> extends EmptyBase<ApiType> {
|
||||||
// augmented
|
// augmented
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,17 +3,16 @@
|
|||||||
|
|
||||||
import type { PalletConstantMetadataLatest } from '@polkadot/types/interfaces';
|
import type { PalletConstantMetadataLatest } from '@polkadot/types/interfaces';
|
||||||
import type { Codec } from '@polkadot/types/types';
|
import type { Codec } from '@polkadot/types/types';
|
||||||
import type { ApiTypes } from './base';
|
import type { ApiTypes, EmptyBase } from './base.js';
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
export interface AugmentedConst<_ extends ApiTypes> {
|
||||||
export interface AugmentedConst<ApiType extends ApiTypes> {
|
|
||||||
meta: PalletConstantMetadataLatest;
|
meta: PalletConstantMetadataLatest;
|
||||||
}
|
}
|
||||||
|
|
||||||
// augmented interfaces
|
// augmented interfaces
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/no-empty-interface
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||||
export interface AugmentedConsts<ApiType extends ApiTypes> {
|
export interface AugmentedConsts<ApiType extends ApiTypes> extends EmptyBase<ApiType> {
|
||||||
// augmented
|
// augmented
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,15 +2,14 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { IsError } from '@polkadot/types/metadata/decorate/types';
|
import type { IsError } from '@polkadot/types/metadata/decorate/types';
|
||||||
import type { ApiTypes } from './base';
|
import type { ApiTypes, EmptyBase } from './base.js';
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
export type AugmentedError<_ extends ApiTypes> = IsError;
|
||||||
export type AugmentedError<ApiType extends ApiTypes> = IsError;
|
|
||||||
|
|
||||||
// augmented interfaces
|
// augmented interfaces
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/no-empty-interface
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||||
export interface AugmentedErrors<ApiType extends ApiTypes> {
|
export interface AugmentedErrors<ApiType extends ApiTypes> extends EmptyBase<ApiType> {
|
||||||
// augmented
|
// augmented
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,15 +3,14 @@
|
|||||||
|
|
||||||
import type { IsEvent } from '@polkadot/types/metadata/decorate/types';
|
import type { IsEvent } from '@polkadot/types/metadata/decorate/types';
|
||||||
import type { AnyTuple } from '@polkadot/types/types';
|
import type { AnyTuple } from '@polkadot/types/types';
|
||||||
import type { ApiTypes } from './base';
|
import type { ApiTypes, EmptyBase } from './base.js';
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
export type AugmentedEvent<_ extends ApiTypes, T extends AnyTuple = AnyTuple, N = unknown> = IsEvent<T, N>;
|
||||||
export type AugmentedEvent<ApiType extends ApiTypes, T extends AnyTuple = AnyTuple, N = unknown> = IsEvent<T, N>;
|
|
||||||
|
|
||||||
// augmented interfaces
|
// augmented interfaces
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/no-empty-interface
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||||
export interface AugmentedEvents<ApiType extends ApiTypes> {
|
export interface AugmentedEvents<ApiType extends ApiTypes> extends EmptyBase<ApiType> {
|
||||||
// augmented
|
// augmented
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ export * from '@polkadot/api-base/types/storage';
|
|||||||
export * from '@polkadot/api-base/types/submittable';
|
export * from '@polkadot/api-base/types/submittable';
|
||||||
|
|
||||||
// normal exports
|
// normal exports
|
||||||
export * from './api';
|
export * from './api.js';
|
||||||
export * from './base';
|
export * from './base.js';
|
||||||
export * from './derive';
|
export * from './derive.js';
|
||||||
export * from './rpc';
|
export * from './rpc.js';
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { AnyFunction, AnyJson, Callback, DefinitionRpc } from '@polkadot/types/types';
|
import type { AnyFunction, AnyJson, Callback, DefinitionRpc } from '@polkadot/types/types';
|
||||||
|
|
||||||
import { ApiTypes, PromiseResult, Push, RxResult, UnsubscribePromise } from './base';
|
import { ApiTypes, PromiseResult, Push, RxResult, UnsubscribePromise } from './base.js';
|
||||||
|
|
||||||
export type { AugmentedRpc } from '@polkadot/rpc-core/types';
|
export type { AugmentedRpc } from '@polkadot/rpc-core/types';
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import type { StorageKey, u64 } from '@polkadot/types';
|
|||||||
import type { Hash } from '@polkadot/types/interfaces';
|
import type { Hash } from '@polkadot/types/interfaces';
|
||||||
import type { StorageEntry } from '@polkadot/types/primitive/types';
|
import type { StorageEntry } from '@polkadot/types/primitive/types';
|
||||||
import type { AnyFunction, AnyTuple, Callback, Codec, IStorageKey } from '@polkadot/types/types';
|
import type { AnyFunction, AnyTuple, Callback, Codec, IStorageKey } from '@polkadot/types/types';
|
||||||
import type { ApiTypes, DropLast, MethodResult, PaginationOptions, PromiseOrObs, ReturnCodec, UnsubscribePromise } from './base';
|
import type { ApiTypes, DropLast, EmptyBase, MethodResult, PaginationOptions, PromiseOrObs, ReturnCodec, UnsubscribePromise } from './base.js';
|
||||||
|
|
||||||
interface StorageEntryObservableMulti<R extends Codec = Codec> {
|
interface StorageEntryObservableMulti<R extends Codec = Codec> {
|
||||||
<T extends Codec = R>(args: (unknown[] | unknown)[]): Observable<T[]>;
|
<T extends Codec = R>(args: (unknown[] | unknown)[]): Observable<T[]>;
|
||||||
@@ -114,8 +114,8 @@ export type AugmentedQueryDoubleMap<ApiType extends ApiTypes, F extends AnyFunct
|
|||||||
|
|
||||||
// augmented interfaces
|
// augmented interfaces
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/no-empty-interface
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||||
export interface AugmentedQueries<ApiType extends ApiTypes> {
|
export interface AugmentedQueries<ApiType extends ApiTypes> extends EmptyBase<ApiType> {
|
||||||
// augmented
|
// augmented
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { AccountId, Address, ApplyExtrinsicResult, BlockNumber, Call, DispatchError, DispatchInfo, EventRecord, Extrinsic, ExtrinsicStatus, Hash, RuntimeDispatchInfo } from '@polkadot/types/interfaces';
|
import type { AccountId, Address, ApplyExtrinsicResult, BlockNumber, Call, DispatchError, DispatchInfo, EventRecord, Extrinsic, ExtrinsicStatus, Hash, RuntimeDispatchInfo } from '@polkadot/types/interfaces';
|
||||||
import type { AnyFunction, AnyNumber, AnyTuple, Callback, CallBase, Codec, IExtrinsicEra, IKeyringPair, ISubmittableResult, Signer } from '@polkadot/types/types';
|
import type { AnyFunction, AnyNumber, AnyTuple, Callback, CallBase, Codec, IExtrinsicEra, IKeyringPair, ISubmittableResult, Signer } from '@polkadot/types/types';
|
||||||
import type { ApiTypes, PromiseOrObs } from './base';
|
import type { ApiTypes, EmptyBase, PromiseOrObs } from './base.js';
|
||||||
|
|
||||||
export type AugmentedSubmittable<T extends AnyFunction, A extends AnyTuple = AnyTuple> = T & CallBase<A>;
|
export type AugmentedSubmittable<T extends AnyFunction, A extends AnyTuple = AnyTuple> = T & CallBase<A>;
|
||||||
|
|
||||||
@@ -81,8 +81,8 @@ export interface SubmittableExtrinsicFunction<ApiType extends ApiTypes, A extend
|
|||||||
|
|
||||||
// augmented interfaces
|
// augmented interfaces
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/no-empty-interface
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||||
export interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
export interface AugmentedSubmittables<ApiType extends ApiTypes> extends EmptyBase<ApiType> {
|
||||||
// augmented
|
// augmented
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||||
"contributors": [],
|
|
||||||
"description": "Interfaces for interacting with contracts and contract ABIs",
|
"description": "Interfaces for interacting with contracts and contract ABIs",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.0.0"
|
"node": ">=14"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"maintainers": [],
|
|
||||||
"name": "@polkadot/api-contract",
|
"name": "@polkadot/api-contract",
|
||||||
"repository": {
|
"repository": {
|
||||||
"directory": "packages/api-contract",
|
"directory": "packages/api-contract",
|
||||||
@@ -20,20 +18,20 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.2",
|
"version": "10.2.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.13",
|
"@polkadot/api": "10.2.2",
|
||||||
"@polkadot/api": "9.14.2",
|
"@polkadot/types": "10.2.2",
|
||||||
"@polkadot/types": "9.14.2",
|
"@polkadot/types-codec": "10.2.2",
|
||||||
"@polkadot/types-codec": "9.14.2",
|
"@polkadot/types-create": "10.2.2",
|
||||||
"@polkadot/types-create": "9.14.2",
|
"@polkadot/util": "^11.1.3",
|
||||||
"@polkadot/util": "^10.4.2",
|
"@polkadot/util-crypto": "^11.1.3",
|
||||||
"@polkadot/util-crypto": "^10.4.2",
|
"rxjs": "^7.8.0",
|
||||||
"rxjs": "^7.8.0"
|
"tslib": "^2.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api-augment": "9.14.2",
|
"@polkadot/api-augment": "10.2.2",
|
||||||
"@polkadot/keyring": "^10.4.2"
|
"@polkadot/keyring": "^11.1.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,19 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import type { Registry } from '@polkadot/types/types';
|
import type { Registry } from '@polkadot/types/types';
|
||||||
|
|
||||||
import fs from 'fs';
|
import fs from 'node:fs';
|
||||||
import path from 'path';
|
import path from 'node:path';
|
||||||
import process from 'process';
|
import process from 'node:process';
|
||||||
|
|
||||||
import { TypeDefInfo } from '@polkadot/types/types';
|
import { TypeDefInfo } from '@polkadot/types/types';
|
||||||
import { blake2AsHex } from '@polkadot/util-crypto';
|
import { blake2AsHex } from '@polkadot/util-crypto';
|
||||||
|
|
||||||
import abis from '../test/contracts';
|
import abis from '../test/contracts/index.js';
|
||||||
import { Abi } from '.';
|
import { Abi } from './index.js';
|
||||||
|
|
||||||
interface SpecDef {
|
interface SpecDef {
|
||||||
messages: {
|
messages: {
|
||||||
@@ -86,24 +88,26 @@ describe('Abi', (): void => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('TypeDef', (): void => {
|
describe('TypeDef', (): void => {
|
||||||
it.each(Object.keys(abis))('initializes from a contract ABI: %s', (abiName): void => {
|
for (const [abiName, abiJson] of Object.entries(abis)) {
|
||||||
const abi = new Abi(abis[abiName]);
|
it(`initializes from a contract ABI: ${abiName}`, (): void => {
|
||||||
const json = stringifyJson(abi.registry);
|
const abi = new Abi(abiJson);
|
||||||
const cmpFile = path.join(cmpPath, `${abiName}.test.json`);
|
const registryJson = stringifyJson(abi.registry);
|
||||||
const cmpText = fs.readFileSync(cmpFile, 'utf-8');
|
const cmpFile = path.join(cmpPath, `${abiName}.test.json`);
|
||||||
|
const cmpText = fs.readFileSync(cmpFile, 'utf-8');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
expect(JSON.parse(json)).toEqual(JSON.parse(cmpText));
|
expect(JSON.parse(registryJson)).toEqual(JSON.parse(cmpText));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (process.env.GITHUB_REPOSITORY) {
|
if (process.env.GITHUB_REPOSITORY) {
|
||||||
console.error(json);
|
console.error(registryJson);
|
||||||
|
|
||||||
throw error;
|
throw error;
|
||||||
|
}
|
||||||
|
|
||||||
|
fs.writeFileSync(cmpFile, registryJson, { flag: 'w' });
|
||||||
}
|
}
|
||||||
|
});
|
||||||
fs.writeFileSync(cmpFile, json, { flag: 'w' });
|
}
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('has the correct hash for the source', (): void => {
|
it('has the correct hash for the source', (): void => {
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
import type { Bytes } from '@polkadot/types';
|
import type { Bytes } from '@polkadot/types';
|
||||||
import type { ChainProperties, ContractConstructorSpecLatest, ContractEventSpecLatest, ContractMessageParamSpecLatest, ContractMessageSpecLatest, ContractMetadata, ContractMetadataLatest, ContractProjectInfo } from '@polkadot/types/interfaces';
|
import type { ChainProperties, ContractConstructorSpecLatest, ContractEventSpecLatest, ContractMessageParamSpecLatest, ContractMessageSpecLatest, ContractMetadata, ContractMetadataLatest, ContractProjectInfo } from '@polkadot/types/interfaces';
|
||||||
import type { Codec, Registry } from '@polkadot/types/types';
|
import type { Codec, Registry } from '@polkadot/types/types';
|
||||||
import type { AbiConstructor, AbiEvent, AbiMessage, AbiParam, DecodedEvent, DecodedMessage } from '../types';
|
import type { AbiConstructor, AbiEvent, AbiMessage, AbiParam, DecodedEvent, DecodedMessage } from '../types.js';
|
||||||
|
|
||||||
import { TypeRegistry } from '@polkadot/types';
|
import { TypeRegistry } from '@polkadot/types';
|
||||||
import { TypeDefInfo } from '@polkadot/types-create';
|
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, isNumber, isObject, isString, logger, stringCamelCase, stringify, u8aConcat, u8aToHex } from '@polkadot/util';
|
||||||
|
|
||||||
import { convertVersions, enumVersions } from './toLatest';
|
import { convertVersions, enumVersions } from './toLatest.js';
|
||||||
|
|
||||||
const l = logger('Abi');
|
const l = logger('Abi');
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { TypeRegistry } from '@polkadot/types';
|
import { TypeRegistry } from '@polkadot/types';
|
||||||
|
|
||||||
import abis from '../test/contracts';
|
import abis from '../test/contracts/index.js';
|
||||||
import { v0ToLatest, v1ToLatest, v2ToLatest, v3ToLatest, v4ToLatest } from './toLatest';
|
import { v0ToLatest, v1ToLatest, v2ToLatest, v3ToLatest, v4ToLatest } from './toLatest.js';
|
||||||
|
|
||||||
describe('v0ToLatest', (): void => {
|
describe('v0ToLatest', (): void => {
|
||||||
const registry = new TypeRegistry();
|
const registry = new TypeRegistry();
|
||||||
|
|||||||
@@ -4,14 +4,14 @@
|
|||||||
import type { ContractMetadataLatest, ContractMetadataV4 } from '@polkadot/types/interfaces';
|
import type { ContractMetadataLatest, ContractMetadataV4 } from '@polkadot/types/interfaces';
|
||||||
import type { Registry } from '@polkadot/types/types';
|
import type { Registry } from '@polkadot/types/types';
|
||||||
|
|
||||||
import { v0ToV1 } from './toV1';
|
import { v0ToV1 } from './toV1.js';
|
||||||
import { v1ToV2 } from './toV2';
|
import { v1ToV2 } from './toV2.js';
|
||||||
import { v2ToV3 } from './toV3';
|
import { v2ToV3 } from './toV3.js';
|
||||||
import { v3ToV4 } from './toV4';
|
import { v3ToV4 } from './toV4.js';
|
||||||
|
|
||||||
// The versions where an enum is used, aka V0 is missing
|
// The versions where an enum is used, aka V0 is missing
|
||||||
// (Order from newest, i.e. we expect more on newest vs oldest)
|
// (Order from newest, i.e. we expect more on newest vs oldest)
|
||||||
export const enumVersions = <const> ['V4', 'V3', 'V2', 'V1'];
|
export const enumVersions = ['V4', 'V3', 'V2', 'V1'] as const;
|
||||||
|
|
||||||
type Versions = typeof enumVersions[number] | 'V0';
|
type Versions = typeof enumVersions[number] | 'V0';
|
||||||
|
|
||||||
@@ -23,14 +23,14 @@ function createConverter <I, O> (next: (registry: Registry, input: O) => Contrac
|
|||||||
next(registry, step(registry, input));
|
next(registry, step(registry, input));
|
||||||
}
|
}
|
||||||
|
|
||||||
export function v4ToLatest (registry: Registry, v4: ContractMetadataV4): ContractMetadataLatest {
|
export function v4ToLatest (_registry: Registry, v4: ContractMetadataV4): ContractMetadataLatest {
|
||||||
return v4;
|
return v4;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const v3ToLatest = createConverter(v4ToLatest, v3ToV4);
|
export const v3ToLatest = /*#__PURE__*/ createConverter(v4ToLatest, v3ToV4);
|
||||||
export const v2ToLatest = createConverter(v3ToLatest, v2ToV3);
|
export const v2ToLatest = /*#__PURE__*/ createConverter(v3ToLatest, v2ToV3);
|
||||||
export const v1ToLatest = createConverter(v2ToLatest, v1ToV2);
|
export const v1ToLatest = /*#__PURE__*/ createConverter(v2ToLatest, v1ToV2);
|
||||||
export const v0ToLatest = createConverter(v1ToLatest, v0ToV1);
|
export const v0ToLatest = /*#__PURE__*/ createConverter(v1ToLatest, v0ToV1);
|
||||||
|
|
||||||
export const convertVersions: [Versions, Converter][] = [
|
export const convertVersions: [Versions, Converter][] = [
|
||||||
['V4', v4ToLatest],
|
['V4', v4ToLatest],
|
||||||
|
|||||||
@@ -23,11 +23,11 @@ interface ArgsEntry <T extends WithArgs> extends NamedEntry {
|
|||||||
args: GetArgsType<T>['args'][0][];
|
args: GetArgsType<T>['args'][0][];
|
||||||
}
|
}
|
||||||
|
|
||||||
const ARG_TYPES = <const> {
|
const ARG_TYPES = {
|
||||||
ContractConstructorSpec: 'ContractMessageParamSpecV2',
|
ContractConstructorSpec: 'ContractMessageParamSpecV2',
|
||||||
ContractEventSpec: 'ContractEventParamSpecV2',
|
ContractEventSpec: 'ContractEventParamSpecV2',
|
||||||
ContractMessageSpec: 'ContractMessageParamSpecV2'
|
ContractMessageSpec: 'ContractMessageParamSpecV2'
|
||||||
};
|
} as const;
|
||||||
|
|
||||||
function v1ToV2Label (entry: NamedEntry): { label: Text } {
|
function v1ToV2Label (entry: NamedEntry): { label: Text } {
|
||||||
return objectSpread({}, entry, {
|
return objectSpread({}, entry, {
|
||||||
|
|||||||
@@ -4,6 +4,6 @@
|
|||||||
import type { ContractMetadataV3, ContractMetadataV4 } from '@polkadot/types/interfaces';
|
import type { ContractMetadataV3, ContractMetadataV4 } from '@polkadot/types/interfaces';
|
||||||
import type { Registry } from '@polkadot/types/types';
|
import type { Registry } from '@polkadot/types/types';
|
||||||
|
|
||||||
export function v3ToV4 (registry: Registry, v3: ContractMetadataV3): ContractMetadataV4 {
|
export function v3ToV4 (_registry: Registry, v3: ContractMetadataV3): ContractMetadataV4 {
|
||||||
return v3;
|
return v3;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import type { Registry } from '@polkadot/types/types';
|
|||||||
import { ApiBase } from '@polkadot/api/base';
|
import { ApiBase } from '@polkadot/api/base';
|
||||||
import { isFunction } from '@polkadot/util';
|
import { isFunction } from '@polkadot/util';
|
||||||
|
|
||||||
import { Abi } from '../Abi';
|
import { Abi } from '../Abi/index.js';
|
||||||
|
|
||||||
export abstract class Base<ApiType extends ApiTypes> {
|
export abstract class Base<ApiType extends ApiTypes> {
|
||||||
readonly abi: Abi;
|
readonly abi: Abi;
|
||||||
|
|||||||
@@ -5,18 +5,18 @@ import type { SubmittableExtrinsic } from '@polkadot/api/submittable/types';
|
|||||||
import type { ApiTypes, DecorateMethod } from '@polkadot/api/types';
|
import type { ApiTypes, DecorateMethod } from '@polkadot/api/types';
|
||||||
import type { AccountId, EventRecord, Hash } from '@polkadot/types/interfaces';
|
import type { AccountId, EventRecord, Hash } from '@polkadot/types/interfaces';
|
||||||
import type { ISubmittableResult } from '@polkadot/types/types';
|
import type { ISubmittableResult } from '@polkadot/types/types';
|
||||||
import type { AbiConstructor, BlueprintOptions } from '../types';
|
import type { AbiConstructor, BlueprintOptions } from '../types.js';
|
||||||
import type { MapConstructorExec } from './types';
|
import type { MapConstructorExec } from './types.js';
|
||||||
|
|
||||||
import { SubmittableResult } from '@polkadot/api';
|
import { SubmittableResult } from '@polkadot/api';
|
||||||
import { ApiBase } from '@polkadot/api/base';
|
import { ApiBase } from '@polkadot/api/base';
|
||||||
import { BN_ZERO, isUndefined } from '@polkadot/util';
|
import { BN_ZERO, isUndefined } from '@polkadot/util';
|
||||||
|
|
||||||
import { Abi } from '../Abi';
|
import { Abi } from '../Abi/index.js';
|
||||||
import { applyOnEvent } from '../util';
|
import { applyOnEvent } from '../util.js';
|
||||||
import { Base } from './Base';
|
import { Base } from './Base.js';
|
||||||
import { Contract } from './Contract';
|
import { Contract } from './Contract.js';
|
||||||
import { convertWeight, createBluePrintTx, encodeSalt } from './util';
|
import { convertWeight, createBluePrintTx, encodeSalt } from './util.js';
|
||||||
|
|
||||||
export interface BlueprintConstructor<ApiType extends ApiTypes> {
|
export interface BlueprintConstructor<ApiType extends ApiTypes> {
|
||||||
new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, codeHash: string | Hash | Uint8Array): Blueprint<ApiType>;
|
new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, codeHash: string | Hash | Uint8Array): Blueprint<ApiType>;
|
||||||
|
|||||||
@@ -1,17 +1,19 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import fs from 'fs';
|
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
||||||
import path from 'path';
|
|
||||||
import process from 'process';
|
import fs from 'node:fs';
|
||||||
|
import path from 'node:path';
|
||||||
|
import process from 'node:process';
|
||||||
|
|
||||||
import { toPromiseMethod } from '@polkadot/api';
|
import { toPromiseMethod } from '@polkadot/api';
|
||||||
|
|
||||||
import v0contractFlipper from '../test/contracts/ink/v0/flipper.contract.json' assert { type: 'json' };
|
import v0contractFlipper from '../test/contracts/ink/v0/flipper.contract.json' assert { type: 'json' };
|
||||||
import v0abiFlipper from '../test/contracts/ink/v0/flipper.json' assert { type: 'json' };
|
import v0abiFlipper from '../test/contracts/ink/v0/flipper.json' assert { type: 'json' };
|
||||||
import v1contractFlipper from '../test/contracts/ink/v1/flipper.contract.json' assert { type: 'json' };
|
import v1contractFlipper from '../test/contracts/ink/v1/flipper.contract.json' assert { type: 'json' };
|
||||||
import { Code } from './Code';
|
import { Code } from './Code.js';
|
||||||
import { mockApi } from './mock';
|
import { mockApi } from './mock.js';
|
||||||
|
|
||||||
// FIXME When Jest is removed with ESM tests, this should be converted to use import.meta.url
|
// 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(path.join(process.cwd(), 'packages/api-contract/src/test/contracts/ink/v0/flipper.wasm'), 'utf-8');
|
||||||
@@ -29,7 +31,7 @@ describe('Code', (): void => {
|
|||||||
).not.toThrow();
|
).not.toThrow();
|
||||||
});
|
});
|
||||||
|
|
||||||
it.only('can construct with an .contract ABI (v1)', (): void => {
|
it('can construct with an .contract ABI (v1)', (): void => {
|
||||||
expect(
|
expect(
|
||||||
() => new Code(mockApi, v1contractFlipper as Record<string, unknown>, null, toPromiseMethod)
|
() => new Code(mockApi, v1contractFlipper as Record<string, unknown>, null, toPromiseMethod)
|
||||||
).not.toThrow();
|
).not.toThrow();
|
||||||
|
|||||||
@@ -6,19 +6,19 @@ import type { ApiTypes, DecorateMethod } from '@polkadot/api/types';
|
|||||||
import type { AccountId, EventRecord } from '@polkadot/types/interfaces';
|
import type { AccountId, EventRecord } from '@polkadot/types/interfaces';
|
||||||
import type { ISubmittableResult } from '@polkadot/types/types';
|
import type { ISubmittableResult } from '@polkadot/types/types';
|
||||||
import type { Codec } from '@polkadot/types-codec/types';
|
import type { Codec } from '@polkadot/types-codec/types';
|
||||||
import type { AbiConstructor, BlueprintOptions } from '../types';
|
import type { AbiConstructor, BlueprintOptions } from '../types.js';
|
||||||
import type { MapConstructorExec } from './types';
|
import type { MapConstructorExec } from './types.js';
|
||||||
|
|
||||||
import { SubmittableResult } from '@polkadot/api';
|
import { SubmittableResult } from '@polkadot/api';
|
||||||
import { ApiBase } from '@polkadot/api/base';
|
import { ApiBase } from '@polkadot/api/base';
|
||||||
import { BN_ZERO, compactAddLength, isUndefined, isWasm, u8aToU8a } from '@polkadot/util';
|
import { BN_ZERO, compactAddLength, isUndefined, isWasm, u8aToU8a } from '@polkadot/util';
|
||||||
|
|
||||||
import { Abi } from '../Abi';
|
import { Abi } from '../Abi/index.js';
|
||||||
import { applyOnEvent } from '../util';
|
import { applyOnEvent } from '../util.js';
|
||||||
import { Base } from './Base';
|
import { Base } from './Base.js';
|
||||||
import { Blueprint } from './Blueprint';
|
import { Blueprint } from './Blueprint.js';
|
||||||
import { Contract } from './Contract';
|
import { Contract } from './Contract.js';
|
||||||
import { convertWeight, createBluePrintTx, encodeSalt } from './util';
|
import { convertWeight, createBluePrintTx, encodeSalt } from './util.js';
|
||||||
|
|
||||||
export interface CodeConstructor<ApiType extends ApiTypes> {
|
export interface CodeConstructor<ApiType extends ApiTypes> {
|
||||||
new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, wasm: Uint8Array | string | Buffer | null | undefined): Code<ApiType>;
|
new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, wasm: Uint8Array | string | Buffer | null | undefined): Code<ApiType>;
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import type { ApiTypes, DecorateMethod } from '@polkadot/api/types';
|
|||||||
import type { Bytes } from '@polkadot/types';
|
import type { Bytes } from '@polkadot/types';
|
||||||
import type { AccountId, ContractExecResult, EventRecord, Weight, WeightV2 } from '@polkadot/types/interfaces';
|
import type { AccountId, ContractExecResult, EventRecord, Weight, WeightV2 } from '@polkadot/types/interfaces';
|
||||||
import type { ISubmittableResult } from '@polkadot/types/types';
|
import type { ISubmittableResult } from '@polkadot/types/types';
|
||||||
import type { AbiMessage, ContractCallOutcome, ContractOptions, DecodedEvent, WeightAll } from '../types';
|
import type { AbiMessage, ContractCallOutcome, ContractOptions, DecodedEvent, WeightAll } from '../types.js';
|
||||||
import type { ContractCallResult, ContractCallSend, ContractQuery, ContractTx, MapMessageQuery, MapMessageTx } from './types';
|
import type { ContractCallResult, ContractCallSend, ContractQuery, ContractTx, MapMessageQuery, MapMessageTx } from './types.js';
|
||||||
|
|
||||||
import { map } from 'rxjs';
|
import { map } from 'rxjs';
|
||||||
|
|
||||||
@@ -15,10 +15,10 @@ import { SubmittableResult } from '@polkadot/api';
|
|||||||
import { ApiBase } from '@polkadot/api/base';
|
import { ApiBase } from '@polkadot/api/base';
|
||||||
import { BN, BN_HUNDRED, BN_ONE, BN_ZERO, isUndefined, logger } from '@polkadot/util';
|
import { BN, BN_HUNDRED, BN_ONE, BN_ZERO, isUndefined, logger } from '@polkadot/util';
|
||||||
|
|
||||||
import { Abi } from '../Abi';
|
import { Abi } from '../Abi/index.js';
|
||||||
import { applyOnEvent } from '../util';
|
import { applyOnEvent } from '../util.js';
|
||||||
import { Base } from './Base';
|
import { Base } from './Base.js';
|
||||||
import { convertWeight, withMeta } from './util';
|
import { convertWeight, withMeta } from './util.js';
|
||||||
|
|
||||||
export interface ContractConstructor<ApiType extends ApiTypes> {
|
export interface ContractConstructor<ApiType extends ApiTypes> {
|
||||||
new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, address: string | AccountId): Contract<ApiType>;
|
new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, address: string | AccountId): Contract<ApiType>;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
// Copyright 2017-2023 @polkadot/api authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { Blueprint, BlueprintSubmittableResult, extendBlueprint } from './Blueprint';
|
export { Blueprint, BlueprintSubmittableResult, extendBlueprint } from './Blueprint.js';
|
||||||
export { Code, CodeSubmittableResult, extendCode } from './Code';
|
export { Code, CodeSubmittableResult, extendCode } from './Code.js';
|
||||||
export { Contract, extendContract } from './Contract';
|
export { Contract, extendContract } from './Contract.js';
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import type { Observable } from 'rxjs';
|
|||||||
import type { SubmittableExtrinsic } from '@polkadot/api/submittable/types';
|
import type { SubmittableExtrinsic } from '@polkadot/api/submittable/types';
|
||||||
import type { ApiTypes, ObsInnerType } from '@polkadot/api/types';
|
import type { ApiTypes, ObsInnerType } from '@polkadot/api/types';
|
||||||
import type { AccountId } from '@polkadot/types/interfaces';
|
import type { AccountId } from '@polkadot/types/interfaces';
|
||||||
import type { AbiMessage, BlueprintOptions, ContractCallOutcome, ContractOptions } from '../types';
|
import type { AbiMessage, BlueprintOptions, ContractCallOutcome, ContractOptions } from '../types.js';
|
||||||
|
|
||||||
export interface MessageMeta {
|
export interface MessageMeta {
|
||||||
readonly meta: AbiMessage;
|
readonly meta: AbiMessage;
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import type { SubmittableExtrinsic } from '@polkadot/api/submittable/types';
|
|||||||
import type { ApiTypes } from '@polkadot/api/types';
|
import type { ApiTypes } from '@polkadot/api/types';
|
||||||
import type { WeightV1, WeightV2 } from '@polkadot/types/interfaces';
|
import type { WeightV1, WeightV2 } from '@polkadot/types/interfaces';
|
||||||
import type { BN } from '@polkadot/util';
|
import type { BN } from '@polkadot/util';
|
||||||
import type { AbiConstructor, AbiMessage, BlueprintOptions, WeightAll } from '../types';
|
import type { AbiConstructor, AbiMessage, BlueprintOptions, WeightAll } from '../types.js';
|
||||||
import type { BlueprintDeploy, ContractGeneric } from './types';
|
import type { BlueprintDeploy, ContractGeneric } from './types.js';
|
||||||
|
|
||||||
import { Bytes } from '@polkadot/types';
|
import { Bytes } from '@polkadot/types';
|
||||||
import { bnToBn, compactAddLength, u8aToU8a } from '@polkadot/util';
|
import { bnToBn, compactAddLength, u8aToU8a } from '@polkadot/util';
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { Abi } from './Abi';
|
export { Abi } from './Abi/index.js';
|
||||||
export { packageInfo } from './packageInfo';
|
export { packageInfo } from './packageInfo.js';
|
||||||
|
|
||||||
export * from './promise';
|
export * from './promise/index.js';
|
||||||
export * from './rx';
|
export * from './rx/index.js';
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
import { detectPackage } from '@polkadot/util';
|
import { detectPackage } from '@polkadot/util';
|
||||||
|
|
||||||
import others from './detectOther';
|
import others from './detectOther.js';
|
||||||
import { packageInfo } from './packageInfo';
|
import { packageInfo } from './packageInfo.js';
|
||||||
|
|
||||||
detectPackage(packageInfo, null, others);
|
detectPackage(packageInfo, null, others);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import './detectPackage';
|
import './detectPackage.js';
|
||||||
|
|
||||||
export * from './bundle';
|
export * from './bundle.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './index';
|
export * from './index.js';
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.14.2' };
|
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '10.2.2' };
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import type { AccountId, Hash } from '@polkadot/types/interfaces';
|
|||||||
|
|
||||||
import { ApiPromise, toPromiseMethod } from '@polkadot/api';
|
import { ApiPromise, toPromiseMethod } from '@polkadot/api';
|
||||||
|
|
||||||
import { Abi } from '../Abi';
|
import { Abi } from '../Abi/index.js';
|
||||||
import { Blueprint, Code, Contract } from '../base';
|
import { Blueprint, Code, Contract } from '../base/index.js';
|
||||||
|
|
||||||
export class BlueprintPromise extends Blueprint<'promise'> {
|
export class BlueprintPromise extends Blueprint<'promise'> {
|
||||||
constructor (api: ApiPromise, abi: string | Record<string, unknown> | Abi, codeHash: string | Hash) {
|
constructor (api: ApiPromise, abi: string | Record<string, unknown> | Abi, codeHash: string | Hash) {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { BlueprintSubmittableResult as BaseBlueprintSubmittableResult, CodeSubmittableResult as BaseCodeSubmittableResult } from '../base';
|
import type { BlueprintSubmittableResult as BaseBlueprintSubmittableResult, CodeSubmittableResult as BaseCodeSubmittableResult } from '../base/index.js';
|
||||||
|
|
||||||
export type BlueprintSubmittableResult = BaseBlueprintSubmittableResult<'promise'>;
|
export type BlueprintSubmittableResult = BaseBlueprintSubmittableResult<'promise'>;
|
||||||
export type CodeSubmittableResult = BaseCodeSubmittableResult<'promise'>;
|
export type CodeSubmittableResult = BaseCodeSubmittableResult<'promise'>;
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import type { AccountId, Hash } from '@polkadot/types/interfaces';
|
|||||||
|
|
||||||
import { ApiRx, toRxMethod } from '@polkadot/api';
|
import { ApiRx, toRxMethod } from '@polkadot/api';
|
||||||
|
|
||||||
import { Abi } from '../Abi';
|
import { Abi } from '../Abi/index.js';
|
||||||
import { Blueprint, Code, Contract } from '../base';
|
import { Blueprint, Code, Contract } from '../base/index.js';
|
||||||
|
|
||||||
export class BlueprintRx extends Blueprint<'rxjs'> {
|
export class BlueprintRx extends Blueprint<'rxjs'> {
|
||||||
constructor (api: ApiRx, abi: string | Record<string, unknown> | Abi, codeHash: string | Hash) {
|
constructor (api: ApiRx, abi: string | Record<string, unknown> | Abi, codeHash: string | Hash) {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { BlueprintSubmittableResult as BaseBlueprintSubmittableResult, CodeSubmittableResult as BaseCodeSubmittableResult } from '../base';
|
import type { BlueprintSubmittableResult as BaseBlueprintSubmittableResult, CodeSubmittableResult as BaseCodeSubmittableResult } from '../base/index.js';
|
||||||
|
|
||||||
export type BlueprintSubmittableResult = BaseBlueprintSubmittableResult<'promise'>;
|
export type BlueprintSubmittableResult = BaseBlueprintSubmittableResult<'promise'>;
|
||||||
export type CodeSubmittableResult = BaseCodeSubmittableResult<'promise'>;
|
export type CodeSubmittableResult = BaseCodeSubmittableResult<'promise'>;
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import ink from './ink';
|
import ink from './ink/index.js';
|
||||||
import solang from './solang';
|
import solang from './solang/index.js';
|
||||||
import user from './user';
|
import user from './user/index.js';
|
||||||
|
|
||||||
const all: Record<string, Record<string, unknown>> = {};
|
const all: Record<string, Record<string, unknown>> = {};
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { createVersionedExport } from '../util';
|
import { createVersionedExport } from '../util.js';
|
||||||
import * as v0 from './v0';
|
import * as v0 from './v0/index.js';
|
||||||
import * as v1 from './v1';
|
import * as v1 from './v1/index.js';
|
||||||
import * as v2 from './v2';
|
import * as v2 from './v2/index.js';
|
||||||
import * as v3 from './v3';
|
import * as v3 from './v3/index.js';
|
||||||
import * as v4 from './v4';
|
import * as v4 from './v4/index.js';
|
||||||
|
|
||||||
export default createVersionedExport({ v0, v1, v2, v3, v4 });
|
export default createVersionedExport({ v0, v1, v2, v3, v4 });
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { createVersionedExport } from '../util';
|
import { createVersionedExport } from '../util.js';
|
||||||
import * as v0 from './v0';
|
import * as v0 from './v0/index.js';
|
||||||
|
|
||||||
export default createVersionedExport({ v0 });
|
export default createVersionedExport({ v0 });
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { createVersionedExport } from '../util';
|
import { createVersionedExport } from '../util.js';
|
||||||
import * as v0 from './v0';
|
import * as v0 from './v0/index.js';
|
||||||
import * as v3 from './v3';
|
import * as v3 from './v3/index.js';
|
||||||
|
|
||||||
export default createVersionedExport({ v0, v3 });
|
export default createVersionedExport({ v0, v3 });
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import type { Text } from '@polkadot/types';
|
|||||||
import type { ContractExecResultResult, ContractSelector, StorageDeposit, Weight, WeightV2 } from '@polkadot/types/interfaces';
|
import type { ContractExecResultResult, ContractSelector, StorageDeposit, Weight, WeightV2 } from '@polkadot/types/interfaces';
|
||||||
import type { Codec, TypeDef } from '@polkadot/types/types';
|
import type { Codec, TypeDef } from '@polkadot/types/types';
|
||||||
import type { BN } from '@polkadot/util';
|
import type { BN } from '@polkadot/util';
|
||||||
import type { Abi } from '.';
|
import type { Abi } from './index.js';
|
||||||
|
|
||||||
export interface ContractBase<ApiType extends ApiTypes> {
|
export interface ContractBase<ApiType extends ApiTypes> {
|
||||||
readonly abi: Abi;
|
readonly abi: Abi;
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||||
"contributors": [],
|
|
||||||
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
|
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.0.0"
|
"node": ">=14"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"maintainers": [],
|
|
||||||
"name": "@polkadot/api-derive",
|
"name": "@polkadot/api-derive",
|
||||||
"repository": {
|
"repository": {
|
||||||
"directory": "packages/api-derive",
|
"directory": "packages/api-derive",
|
||||||
@@ -20,25 +18,25 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.2",
|
"version": "10.2.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.13",
|
"@polkadot/api": "10.2.2",
|
||||||
"@polkadot/api": "9.14.2",
|
"@polkadot/api-augment": "10.2.2",
|
||||||
"@polkadot/api-augment": "9.14.2",
|
"@polkadot/api-base": "10.2.2",
|
||||||
"@polkadot/api-base": "9.14.2",
|
"@polkadot/rpc-core": "10.2.2",
|
||||||
"@polkadot/rpc-core": "9.14.2",
|
"@polkadot/types": "10.2.2",
|
||||||
"@polkadot/types": "9.14.2",
|
"@polkadot/types-codec": "10.2.2",
|
||||||
"@polkadot/types-codec": "9.14.2",
|
"@polkadot/util": "^11.1.3",
|
||||||
"@polkadot/util": "^10.4.2",
|
"@polkadot/util-crypto": "^11.1.3",
|
||||||
"@polkadot/util-crypto": "^10.4.2",
|
"rxjs": "^7.8.0",
|
||||||
"rxjs": "^7.8.0"
|
"tslib": "^2.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api": "9.14.2",
|
"@polkadot/api": "10.2.2",
|
||||||
"@polkadot/api-augment": "9.14.2",
|
"@polkadot/api-augment": "10.2.2",
|
||||||
"@polkadot/rpc-augment": "9.14.2",
|
"@polkadot/rpc-augment": "10.2.2",
|
||||||
"@polkadot/rpc-provider": "9.14.2",
|
"@polkadot/rpc-provider": "10.2.2",
|
||||||
"@polkadot/types-support": "9.14.2"
|
"@polkadot/types-support": "10.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,14 +3,14 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces';
|
import type { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces';
|
||||||
import type { DeriveApi } from '../types';
|
import type { DeriveApi } from '../types.js';
|
||||||
|
|
||||||
import { map, of } from 'rxjs';
|
import { map, of } from 'rxjs';
|
||||||
|
|
||||||
import { assertReturn, isU8a } from '@polkadot/util';
|
import { assertReturn, isU8a } from '@polkadot/util';
|
||||||
import { decodeAddress } from '@polkadot/util-crypto';
|
import { decodeAddress } from '@polkadot/util-crypto';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name accountId
|
* @name accountId
|
||||||
|
|||||||
@@ -6,13 +6,13 @@ import type { AccountId, Address, Balance } from '@polkadot/types/interfaces';
|
|||||||
import type{ PalletElectionsPhragmenSeatHolder } from '@polkadot/types/lookup';
|
import type{ PalletElectionsPhragmenSeatHolder } from '@polkadot/types/lookup';
|
||||||
import type { Codec } from '@polkadot/types/types';
|
import type { Codec } from '@polkadot/types/types';
|
||||||
import type { Option } from '@polkadot/types-codec';
|
import type { Option } from '@polkadot/types-codec';
|
||||||
import type { DeriveAccountFlags, DeriveApi } from '../types';
|
import type { DeriveAccountFlags, DeriveApi } from '../types.js';
|
||||||
|
|
||||||
import { map, of } from 'rxjs';
|
import { map, of } from 'rxjs';
|
||||||
|
|
||||||
import { isFunction } from '@polkadot/util';
|
import { isFunction } from '@polkadot/util';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
|
|
||||||
type FlagsIntermediate = [
|
type FlagsIntermediate = [
|
||||||
PalletElectionsPhragmenSeatHolder[] | [AccountId, Balance][] | undefined,
|
PalletElectionsPhragmenSeatHolder[] | [AccountId, Balance][] | undefined,
|
||||||
|
|||||||
@@ -3,14 +3,14 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces';
|
import type { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces';
|
||||||
import type { AccountIdAndIndex, DeriveApi } from '../types';
|
import type { AccountIdAndIndex, DeriveApi } from '../types.js';
|
||||||
|
|
||||||
import { map, of } from 'rxjs';
|
import { map, of } from 'rxjs';
|
||||||
|
|
||||||
import { isU8a } from '@polkadot/util';
|
import { isU8a } from '@polkadot/util';
|
||||||
import { decodeAddress } from '@polkadot/util-crypto';
|
import { decodeAddress } from '@polkadot/util-crypto';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name idAndIndex
|
* @name idAndIndex
|
||||||
@@ -46,7 +46,7 @@ export function idAndIndex (instanceId: string, api: DeriveApi): (address?: Addr
|
|||||||
return api.derive.accounts.indexToId(accountIndex.toString()).pipe(
|
return api.derive.accounts.indexToId(accountIndex.toString()).pipe(
|
||||||
map((accountId): AccountIdAndIndex => [accountId, accountIndex])
|
map((accountId): AccountIdAndIndex => [accountId, accountIndex])
|
||||||
);
|
);
|
||||||
} catch (error) {
|
} catch {
|
||||||
return of([undefined, undefined]);
|
return of([undefined, undefined]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { AccountId, AccountIndex } from '@polkadot/types/interfaces';
|
import type { AccountId, AccountIndex } from '@polkadot/types/interfaces';
|
||||||
import type { AccountIndexes, DeriveApi } from '../types';
|
import type { AccountIndexes, DeriveApi } from '../types.js';
|
||||||
|
|
||||||
import { map } from 'rxjs';
|
import { map } from 'rxjs';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name idToIndex
|
* @name idToIndex
|
||||||
|
|||||||
@@ -7,13 +7,13 @@ import type { AccountId } from '@polkadot/types/interfaces';
|
|||||||
import type { PalletIdentityIdentityInfo, PalletIdentityRegistration } from '@polkadot/types/lookup';
|
import type { PalletIdentityIdentityInfo, PalletIdentityRegistration } from '@polkadot/types/lookup';
|
||||||
import type { Option } from '@polkadot/types-codec';
|
import type { Option } from '@polkadot/types-codec';
|
||||||
import type { ITuple } from '@polkadot/types-codec/types';
|
import type { ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { DeriveAccountRegistration, DeriveApi, DeriveHasIdentity } from '../types';
|
import type { DeriveAccountRegistration, DeriveApi, DeriveHasIdentity } from '../types.js';
|
||||||
|
|
||||||
import { combineLatest, map, of, switchMap } from 'rxjs';
|
import { combineLatest, map, of, switchMap } from 'rxjs';
|
||||||
|
|
||||||
import { isHex, u8aToString } from '@polkadot/util';
|
import { isHex, u8aToString } from '@polkadot/util';
|
||||||
|
|
||||||
import { firstMemo, memo } from '../util';
|
import { firstMemo, memo } from '../util/index.js';
|
||||||
|
|
||||||
type IdentityInfoAdditional = PalletIdentityIdentityInfo['additional'][0];
|
type IdentityInfoAdditional = PalletIdentityIdentityInfo['additional'][0];
|
||||||
|
|
||||||
@@ -111,7 +111,7 @@ export function identity (instanceId: string, api: DeriveApi): (accountId?: Acco
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export const hasIdentity = firstMemo(
|
export const hasIdentity = /*#__PURE__*/ firstMemo(
|
||||||
(api: DeriveApi, accountId: AccountId | Uint8Array | string) =>
|
(api: DeriveApi, accountId: AccountId | Uint8Array | string) =>
|
||||||
api.derive.accounts.hasIdentityMulti([accountId])
|
api.derive.accounts.hasIdentityMulti([accountId])
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './accountId';
|
export * from './accountId.js';
|
||||||
export * from './flags';
|
export * from './flags.js';
|
||||||
export * from './idAndIndex';
|
export * from './idAndIndex.js';
|
||||||
export * from './idToIndex';
|
export * from './idToIndex.js';
|
||||||
export * from './identity';
|
export * from './identity.js';
|
||||||
export * from './indexToId';
|
export * from './indexToId.js';
|
||||||
export * from './indexes';
|
export * from './indexes.js';
|
||||||
export * from './info';
|
export * from './info.js';
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { AccountId, AccountIndex } from '@polkadot/types/interfaces';
|
import type { AccountId, AccountIndex } from '@polkadot/types/interfaces';
|
||||||
import type { DeriveApi } from '../types';
|
import type { DeriveApi } from '../types.js';
|
||||||
|
|
||||||
import { map, of } from 'rxjs';
|
import { map, of } from 'rxjs';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name indexToId
|
* @name indexToId
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { AccountIndexes, DeriveApi } from '../types';
|
import type { AccountIndexes, DeriveApi } from '../types.js';
|
||||||
|
|
||||||
import { map, of, startWith } from 'rxjs';
|
import { map, of, startWith } from 'rxjs';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
|
|
||||||
let indicesCache: AccountIndexes | null = null;
|
let indicesCache: AccountIndexes | null = null;
|
||||||
|
|
||||||
|
|||||||
@@ -5,13 +5,13 @@ import type { Observable } from 'rxjs';
|
|||||||
import type { Bytes, Option, u32 } from '@polkadot/types';
|
import type { Bytes, Option, u32 } from '@polkadot/types';
|
||||||
import type { AccountId, AccountIndex, Address, Balance } from '@polkadot/types/interfaces';
|
import type { AccountId, AccountIndex, Address, Balance } from '@polkadot/types/interfaces';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
import type { DeriveAccountInfo, DeriveAccountRegistration, DeriveApi } from '../types';
|
import type { DeriveAccountInfo, DeriveAccountRegistration, DeriveApi } from '../types.js';
|
||||||
|
|
||||||
import { combineLatest, map, of, switchMap } from 'rxjs';
|
import { combineLatest, map, of, switchMap } from 'rxjs';
|
||||||
|
|
||||||
import { u8aToString } from '@polkadot/util';
|
import { u8aToString } from '@polkadot/util';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
|
|
||||||
function retrieveNick (api: DeriveApi, accountId?: AccountId): Observable<string | undefined> {
|
function retrieveNick (api: DeriveApi, accountId?: AccountId): Observable<string | undefined> {
|
||||||
return ((
|
return ((
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { hasProposals as collectiveHasProposals, members as collectiveMembers, prime as collectivePrime, proposal as collectiveProposal, proposalCount as collectiveProposalCount, proposalHashes as collectiveProposalHashes, proposals as collectiveProposals } from '../collective';
|
import { hasProposals as collectiveHasProposals, members as collectiveMembers, prime as collectivePrime, proposal as collectiveProposal, proposalCount as collectiveProposalCount, proposalHashes as collectiveProposalHashes, proposals as collectiveProposals } from '../collective/index.js';
|
||||||
|
|
||||||
export const members = collectiveMembers('allianceMotion');
|
export const members = /*#__PURE__*/ collectiveMembers('allianceMotion');
|
||||||
|
|
||||||
export const hasProposals = collectiveHasProposals('allianceMotion');
|
export const hasProposals = /*#__PURE__*/ collectiveHasProposals('allianceMotion');
|
||||||
export const proposal = collectiveProposal('allianceMotion');
|
export const proposal = /*#__PURE__*/ collectiveProposal('allianceMotion');
|
||||||
export const proposalCount = collectiveProposalCount('allianceMotion');
|
export const proposalCount = /*#__PURE__*/ collectiveProposalCount('allianceMotion');
|
||||||
export const proposalHashes = collectiveProposalHashes('allianceMotion');
|
export const proposalHashes = /*#__PURE__*/ collectiveProposalHashes('allianceMotion');
|
||||||
export const proposals = collectiveProposals('allianceMotion');
|
export const proposals = /*#__PURE__*/ collectiveProposals('allianceMotion');
|
||||||
|
|
||||||
export const prime = collectivePrime('allianceMotion');
|
export const prime = /*#__PURE__*/ collectivePrime('allianceMotion');
|
||||||
|
|||||||
@@ -5,15 +5,15 @@ import type { Observable } from 'rxjs';
|
|||||||
import type { Option, u64 } from '@polkadot/types';
|
import type { Option, u64 } from '@polkadot/types';
|
||||||
import type { PalletBagsListListBag } from '@polkadot/types/lookup';
|
import type { PalletBagsListListBag } from '@polkadot/types/lookup';
|
||||||
import type { BN } from '@polkadot/util';
|
import type { BN } from '@polkadot/util';
|
||||||
import type { DeriveApi } from '../types';
|
import type { DeriveApi } from '../types.js';
|
||||||
import type { Bag } from './types';
|
import type { Bag } from './types.js';
|
||||||
|
|
||||||
import { map, of, switchMap } from 'rxjs';
|
import { map, of, switchMap } from 'rxjs';
|
||||||
|
|
||||||
import { BN_ZERO, bnToBn, objectSpread } from '@polkadot/util';
|
import { BN_ZERO, bnToBn, objectSpread } from '@polkadot/util';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
import { getQueryInterface } from './util';
|
import { getQueryInterface } from './util.js';
|
||||||
|
|
||||||
function orderBags (ids: BN[], bags: Option<PalletBagsListListBag>[]): Bag[] {
|
function orderBags (ids: BN[], bags: Option<PalletBagsListListBag>[]): Bag[] {
|
||||||
const sorted = ids
|
const sorted = ids
|
||||||
|
|||||||
@@ -3,14 +3,14 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { BN } from '@polkadot/util';
|
import type { BN } from '@polkadot/util';
|
||||||
import type { DeriveApi } from '../types';
|
import type { DeriveApi } from '../types.js';
|
||||||
import type { Bag, BagExpanded } from './types';
|
import type { Bag, BagExpanded } from './types.js';
|
||||||
|
|
||||||
import { map, switchMap } from 'rxjs';
|
import { map, switchMap } from 'rxjs';
|
||||||
|
|
||||||
import { objectSpread } from '@polkadot/util';
|
import { objectSpread } from '@polkadot/util';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
|
|
||||||
export function expand (instanceId: string, api: DeriveApi): (bag: Bag) => Observable<BagExpanded> {
|
export function expand (instanceId: string, api: DeriveApi): (bag: Bag) => Observable<BagExpanded> {
|
||||||
return memo(instanceId, (bag: Bag): Observable<BagExpanded> =>
|
return memo(instanceId, (bag: Bag): Observable<BagExpanded> =>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './get';
|
export * from './get.js';
|
||||||
export * from './getExpanded';
|
export * from './getExpanded.js';
|
||||||
export * from './listNodes';
|
export * from './listNodes.js';
|
||||||
|
|||||||
@@ -5,14 +5,14 @@ import type { Observable } from 'rxjs';
|
|||||||
import type { Option } from '@polkadot/types';
|
import type { Option } from '@polkadot/types';
|
||||||
import type { AccountId32 } from '@polkadot/types/interfaces';
|
import type { AccountId32 } from '@polkadot/types/interfaces';
|
||||||
import type { PalletBagsListListBag, PalletBagsListListNode } from '@polkadot/types/lookup';
|
import type { PalletBagsListListBag, PalletBagsListListNode } from '@polkadot/types/lookup';
|
||||||
import type { DeriveApi } from '../types';
|
import type { DeriveApi } from '../types.js';
|
||||||
|
|
||||||
import { BehaviorSubject, map, of, switchMap, tap, toArray } from 'rxjs';
|
import { BehaviorSubject, map, of, switchMap, tap, toArray } from 'rxjs';
|
||||||
|
|
||||||
import { nextTick } from '@polkadot/util';
|
import { nextTick } from '@polkadot/util';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
import { getQueryInterface } from './util';
|
import { getQueryInterface } from './util.js';
|
||||||
|
|
||||||
function traverseLinks (api: DeriveApi, head: AccountId32 | string): Observable<PalletBagsListListNode[]> {
|
function traverseLinks (api: DeriveApi, head: AccountId32 | string): Observable<PalletBagsListListNode[]> {
|
||||||
const subject = new BehaviorSubject<AccountId32 | string>(head);
|
const subject = new BehaviorSubject<AccountId32 | string>(head);
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { QueryableStorage } from '@polkadot/api-base/types';
|
import type { QueryableStorage } from '@polkadot/api-base/types';
|
||||||
import type { DeriveApi } from '../types';
|
import type { DeriveApi } from '../types.js';
|
||||||
|
|
||||||
export function getQueryInterface (api: DeriveApi): QueryableStorage<'rxjs'>['voterBagsList'] {
|
export function getQueryInterface (api: DeriveApi): QueryableStorage<'rxjs'>['voterBagsList'] {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -5,13 +5,13 @@ import type { Observable } from 'rxjs';
|
|||||||
import type { QueryableStorageEntry } from '@polkadot/api-base/types';
|
import type { QueryableStorageEntry } from '@polkadot/api-base/types';
|
||||||
import type { AccountData, AccountId, AccountIndex, AccountInfo, Address, Balance, Index } from '@polkadot/types/interfaces';
|
import type { AccountData, AccountId, AccountIndex, AccountInfo, Address, Balance, Index } from '@polkadot/types/interfaces';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
import type { DeriveApi, DeriveBalancesAccount, DeriveBalancesAccountData } from '../types';
|
import type { DeriveApi, DeriveBalancesAccount, DeriveBalancesAccountData } from '../types.js';
|
||||||
|
|
||||||
import { combineLatest, map, of, switchMap } from 'rxjs';
|
import { combineLatest, map, of, switchMap } from 'rxjs';
|
||||||
|
|
||||||
import { isFunction, objectSpread } from '@polkadot/util';
|
import { isFunction, objectSpread } from '@polkadot/util';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
|
|
||||||
type BalanceResult = [Balance, Balance, Balance, Balance];
|
type BalanceResult = [Balance, Balance, Balance, Balance];
|
||||||
|
|
||||||
|
|||||||
@@ -5,13 +5,13 @@ import type { Observable } from 'rxjs';
|
|||||||
import type { Option, Vec } from '@polkadot/types';
|
import type { Option, Vec } from '@polkadot/types';
|
||||||
import type { AccountId, Balance, BalanceLockTo212, BlockNumber, VestingSchedule } from '@polkadot/types/interfaces';
|
import type { AccountId, Balance, BalanceLockTo212, BlockNumber, VestingSchedule } from '@polkadot/types/interfaces';
|
||||||
import type { PalletBalancesBalanceLock, PalletBalancesReserveData, PalletVestingVestingInfo } from '@polkadot/types/lookup';
|
import type { PalletBalancesBalanceLock, PalletBalancesReserveData, PalletVestingVestingInfo } from '@polkadot/types/lookup';
|
||||||
import type { DeriveApi, DeriveBalancesAccount, DeriveBalancesAccountData, DeriveBalancesAll, DeriveBalancesAllAccountData, DeriveBalancesAllVesting } from '../types';
|
import type { DeriveApi, DeriveBalancesAccount, DeriveBalancesAccountData, DeriveBalancesAll, DeriveBalancesAllAccountData, DeriveBalancesAllVesting } from '../types.js';
|
||||||
|
|
||||||
import { combineLatest, map, of, switchMap } from 'rxjs';
|
import { combineLatest, map, of, switchMap } from 'rxjs';
|
||||||
|
|
||||||
import { BN, BN_ZERO, bnMax, bnMin, isFunction, objectSpread } from '@polkadot/util';
|
import { BN, BN_ZERO, bnMax, bnMin, isFunction, objectSpread } from '@polkadot/util';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
|
|
||||||
type ResultBalance = [PalletVestingVestingInfo[] | null, ((PalletBalancesBalanceLock | BalanceLockTo212)[])[], PalletBalancesReserveData[][]];
|
type ResultBalance = [PalletVestingVestingInfo[] | null, ((PalletBalancesBalanceLock | BalanceLockTo212)[])[], PalletBalancesReserveData[][]];
|
||||||
type Result = [DeriveBalancesAccount, ResultBalance, BlockNumber];
|
type Result = [DeriveBalancesAccount, ResultBalance, BlockNumber];
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { all } from './all';
|
import { all } from './all.js';
|
||||||
|
|
||||||
export * from './account';
|
export * from './account.js';
|
||||||
export * from './votingBalances';
|
export * from './votingBalances.js';
|
||||||
|
|
||||||
const votingBalance = all;
|
const votingBalance = all;
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user