Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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 | ||
|
|
5aae48cc28 | ||
|
|
4ab3b55383 | ||
|
|
6ea6b90e03 | ||
|
|
eb5c888cb8 | ||
|
|
cda07dfa0b | ||
|
|
4abae3200b | ||
|
|
b60895beb4 | ||
|
|
855d70a3b3 | ||
|
|
583d9bfe36 | ||
|
|
d519611a25 | ||
|
|
9a9bace8e8 | ||
|
|
40810f2fdb | ||
|
|
361a77580e | ||
|
|
ea45c7e689 | ||
|
|
cc1d51a6ca | ||
|
|
b8233fb7b8 | ||
|
|
5cbe80066d | ||
|
|
3f6c10256c | ||
|
|
609b2830b0 | ||
|
|
b7bbd2d615 | ||
|
|
41d6429782 | ||
|
|
ae168a00a9 | ||
|
|
79694d8a95 | ||
|
|
95be64cbd7 | ||
|
|
76bf7a0079 | ||
|
|
142390f27d | ||
|
|
d0145ce58c | ||
|
|
9217f83870 | ||
|
|
cf261724c3 | ||
|
|
375afb5dff | ||
|
|
9e5779644c | ||
|
|
a6a92837e4 | ||
|
|
d84f40dd77 | ||
|
|
5183c28d5e | ||
|
|
5ed3ea51d3 | ||
|
|
39d76c969d | ||
|
|
5cf4c4edbe | ||
|
|
f6c376a3e7 | ||
|
|
d9a2265b0f | ||
|
|
0c1b1c48f2 | ||
|
|
7c24998e28 | ||
|
|
bf442a4bd4 | ||
|
|
40f432badb | ||
|
|
15a8681ba0 | ||
|
|
61ed6e97f4 | ||
|
|
eee4bf51d6 | ||
|
|
b9cbb9e2e8 | ||
|
|
ed426108f2 | ||
|
|
c168615305 | ||
|
|
680ae0222a | ||
|
|
dc3d34e4df | ||
|
|
d356fa4da6 | ||
|
|
90eafdd820 | ||
|
|
263fca2510 | ||
|
|
04dcb490c3 | ||
|
|
e8a96523b7 | ||
|
|
226886acf7 | ||
|
|
b544f24bcf | ||
|
|
f7ad6e09ed | ||
|
|
1d8abf1110 | ||
|
|
fee281fcb4 | ||
|
|
1facb7dd71 | ||
|
|
a96d7c789e | ||
|
|
cc4e4b236d | ||
|
|
932efb6ef5 | ||
|
|
bf6c23eb86 | ||
|
|
df1754eb2a | ||
|
|
1ce1f0a981 | ||
|
|
29537ea283 | ||
|
|
0b45618c5f | ||
|
|
48079d6f1a | ||
|
|
1531ac847c | ||
|
|
66f569e214 | ||
|
|
db71aeea41 | ||
|
|
1c8e0babac | ||
|
|
416ac1a619 | ||
|
|
ab805808c5 | ||
|
|
cf577a29da | ||
|
|
94d2fd0147 | ||
|
|
e745d802df | ||
|
|
cd1dca9bfa | ||
|
|
b0ec03bdd5 | ||
|
|
becccf6323 | ||
|
|
10cb508783 | ||
|
|
cf9d2d6049 | ||
|
|
3e490736fd | ||
|
|
95e7edd48f | ||
|
|
6f8ca717c8 | ||
|
|
f480cdc1ca | ||
|
|
beca267b66 | ||
|
|
f270fe693b | ||
|
|
a7f96a19ca | ||
|
|
e759d32bcf | ||
|
|
7ee4f7aaf8 | ||
|
|
dd6826fadd | ||
|
|
abc68bf2e2 | ||
|
|
ccab89304b | ||
|
|
044465eee4 | ||
|
|
42af205546 | ||
|
|
545ad50097 | ||
|
|
6f19084a4d | ||
|
|
4688291ecf | ||
|
|
da1cf9d64e | ||
|
|
96a3ef51f0 | ||
|
|
2eb453c4ce | ||
|
|
12bf338e40 | ||
|
|
923f569d77 | ||
|
|
263fce1e7d | ||
|
|
f780c017e2 | ||
|
|
87a1ae7d44 | ||
|
|
3cdd608e6e | ||
|
|
394d4aee96 | ||
|
|
732dd26bd9 | ||
|
|
ebb9f055c1 | ||
|
|
2f34c0c6e8 | ||
|
|
41617c1dfb | ||
|
|
6ff3577853 | ||
|
|
73b8dc3aff | ||
|
|
d93c7bdf4a | ||
|
|
6e1dfc3a45 | ||
|
|
e4e457fc53 | ||
|
|
aa5464f8dd | ||
|
|
5c1e701ab6 | ||
|
|
81b5d2280d | ||
|
|
d90ac68e29 | ||
|
|
cc2405ea85 | ||
|
|
d6cd2a2cd4 | ||
|
|
114050f893 | ||
|
|
6a3eb70d33 | ||
|
|
e61ab51c6b | ||
|
|
e792eba587 | ||
|
|
f9df7a5c0d | ||
|
|
2c949e0fc5 | ||
|
|
03647c9b86 | ||
|
|
28d9bb7053 | ||
|
|
364a6decae | ||
|
|
fed75806d7 | ||
|
|
c9c976b81b | ||
|
|
4f0527d3cc | ||
|
|
2e7f340362 | ||
|
|
9fe8e3ace1 | ||
|
|
7b5b8745a2 | ||
|
|
0d40e85699 | ||
|
|
1af97abd80 | ||
|
|
a4e967d48e | ||
|
|
7415fd5fd1 | ||
|
|
6f502aeb20 | ||
|
|
64934281d6 | ||
|
|
0473b03551 | ||
|
|
d82e87f0c9 | ||
|
|
90a7802cf6 | ||
|
|
1af3b21874 | ||
|
|
073a06edb4 | ||
|
|
d91b3cb501 | ||
|
|
677cbd30e9 | ||
|
|
f95edc5a2a | ||
|
|
9a6e096020 | ||
|
|
083e459407 | ||
|
|
4fe3ca4b44 | ||
|
|
5839670024 | ||
|
|
1bee72587f | ||
|
|
0a1cc26aab | ||
|
|
15410ceeb5 | ||
|
|
603b762d0e | ||
|
|
8c43bcf405 | ||
|
|
a0e4fa0570 | ||
|
|
d7b4adc050 | ||
|
|
ef97ea7d00 | ||
|
|
af9e1931e6 | ||
|
|
576887d508 | ||
|
|
57e9857ed8 | ||
|
|
f59b5b8d92 | ||
|
|
4cb0281340 | ||
|
|
9c5ca08106 | ||
|
|
fde69670f1 | ||
|
|
2da085afb8 | ||
|
|
973cc13873 | ||
|
|
61e5f91e5b | ||
|
|
8c52f050fe | ||
|
|
d1bf4402cf | ||
|
|
d3eb1de49b | ||
|
|
46076c5595 | ||
|
|
ba4e74f67c | ||
|
|
d303f553a1 | ||
|
|
ad71405fd8 | ||
|
|
3f6127d854 | ||
|
|
9353536db0 | ||
|
|
dcc4583c32 | ||
|
|
2c96b71c30 | ||
|
|
9b3258a65a | ||
|
|
d191d07782 | ||
|
|
fe2103e5d4 | ||
|
|
ee42e3a86c | ||
|
|
12fd31def5 | ||
|
|
a3901ca7ad |
@@ -1,28 +0,0 @@
|
|||||||
checks:
|
|
||||||
argument-count:
|
|
||||||
config:
|
|
||||||
threshold: 5
|
|
||||||
method-complexity:
|
|
||||||
config:
|
|
||||||
threshold: 7
|
|
||||||
method-count:
|
|
||||||
config:
|
|
||||||
threshold: 25
|
|
||||||
method-lines:
|
|
||||||
config:
|
|
||||||
threshold: 30
|
|
||||||
|
|
||||||
exclude_patterns:
|
|
||||||
- "**/*.spec.js"
|
|
||||||
- "**/*.spec.ts"
|
|
||||||
- "**/*.test.js"
|
|
||||||
- "**/*.test.ts"
|
|
||||||
- "docs/**/*.js"
|
|
||||||
- "docs/**/*.ts"
|
|
||||||
- "packages/*-augment/"
|
|
||||||
- "packages/*-augment-*/"
|
|
||||||
- "packages/typegen/scripts"
|
|
||||||
- "packages/typegen/src"
|
|
||||||
- "packages/types/src/interfaces/"
|
|
||||||
- "packages/types/src/augment/"
|
|
||||||
- "packages/types-known/src/upgrades/e2e/"
|
|
||||||
+3
-2
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @polkadot/api authors & contributors
|
// Copyright 2017-2023 @polkadot/api authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
const base = require('@polkadot/dev/config/eslint.cjs');
|
const base = require('@polkadot/dev/config/eslint.cjs');
|
||||||
@@ -6,7 +6,8 @@ const base = require('@polkadot/dev/config/eslint.cjs');
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
...base,
|
...base,
|
||||||
ignorePatterns: [
|
ignorePatterns: [
|
||||||
...base.ignorePatterns
|
...base.ignorePatterns,
|
||||||
|
'/scripts'
|
||||||
],
|
],
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
...base.parserOptions,
|
...base.parserOptions,
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ jobs:
|
|||||||
if: "! startsWith(github.event.head_commit.message, '[CI Skip]') && (!github.event.pull_request || github.event.pull_request.head.repo.full_name == github.repository)"
|
if: "! startsWith(github.event.head_commit.message, '[CI Skip]') && (!github.event.pull_request || github.event.pull_request.head.repo.full_name == github.repository)"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: jacogr/action-approve@9d6ce78d26f23ad29d009d034822cf773f2cb50e
|
- uses: jacogr/action-approve@795afd1dd096a2071d7ec98740661af4e853b7da
|
||||||
with:
|
with:
|
||||||
authors: jacogr
|
authors: jacogr
|
||||||
labels: -auto
|
labels: -auto
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ jobs:
|
|||||||
merge:
|
merge:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: jacogr/action-merge@3b4b49af8a8644bf5cbb5409ee236abe04eeb1b0
|
- 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,16 +3,19 @@ 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
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e
|
- uses: actions/checkout@v3
|
||||||
- uses: denoland/setup-deno@004814556e37c54a2f6e31384c9e18e983317366
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 'lts/*'
|
||||||
|
- uses: denoland/setup-deno@v1
|
||||||
with:
|
with:
|
||||||
deno-version: vx.x.x
|
deno-version: vx.x.x
|
||||||
- name: ${{ matrix.step }}
|
- name: ${{ matrix.step }}
|
||||||
|
|||||||
@@ -10,19 +10,21 @@ 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
|
||||||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
||||||
GH_PAT: ${{ secrets.GH_PAT }}
|
GH_PAT: ${{ secrets.GH_PAT_BOT }}
|
||||||
GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT }}
|
GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT_BOT }}
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.GH_PAT }}
|
token: ${{ secrets.GH_PAT_BOT }}
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 'lts/*'
|
||||||
- name: ${{ matrix.step }}
|
- name: ${{ matrix.step }}
|
||||||
run: |
|
run: |
|
||||||
yarn install --immutable | grep -v 'YN0013'
|
yarn install --immutable | grep -v 'YN0013'
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
name: Semgrep
|
|
||||||
on:
|
|
||||||
pull_request: {}
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
check:
|
|
||||||
if: "! startsWith(github.event.head_commit.message, '[CI Skip]') && (!github.event.pull_request || github.event.pull_request.head.repo.full_name == github.repository)"
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
YARN_ENABLE_SCRIPTS: false
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e
|
|
||||||
- uses: returntocorp/semgrep-action@aeafd770072c4f48798b991e3449592bddc2c435
|
|
||||||
with:
|
|
||||||
auditOn: push
|
|
||||||
publishToken: ${{ secrets.SEMGREP_APP_TOKEN }}
|
|
||||||
publishDeployment: 1395
|
|
||||||
@@ -9,11 +9,11 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
YARN_ENABLE_SCRIPTS: false
|
YARN_ENABLE_SCRIPTS: false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@98ed4cb500039dbcccf4bd9bedada4d0187f2757
|
- uses: actions/stale@v7
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GH_PAT_BOT }}
|
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-message: 'This issue has been open for 365 days with no activity and is not labelled as an enhancement. It will be closed in 7 days.'
|
||||||
stale-issue-label: 'stale'
|
stale-issue-label: 'stale'
|
||||||
exempt-issue-labels: '-size-l,-size-m,-size-s,-size-xl,-size-xs,[bug]'
|
exempt-issue-labels: '-size-l,-size-m,-size-s,-size-xl,-size-xs,[bug]'
|
||||||
days-before-stale: 21
|
days-before-stale: 365
|
||||||
days-before-close: 7
|
days-before-close: 7
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @polkadot/api authors & contributors
|
// Copyright 2017-2023 @polkadot/api authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
module.exports = require('@polkadot/dev/config/prettier.cjs');
|
module.exports = require('@polkadot/dev/config/prettier.cjs');
|
||||||
|
|||||||
+225
@@ -1,5 +1,230 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 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
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Don't allow `WsProvider.connect()` on an open connection (creates resource leaks)
|
||||||
|
- Adjust typegen to use metadata-defined aliases in query return decoration
|
||||||
|
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||||
|
|
||||||
|
|
||||||
|
## 9.14.1 Feb 12, 2023
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Extract aliases for `*_runtime::Runtime{Call, Event}` from metadata
|
||||||
|
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||||
|
|
||||||
|
|
||||||
|
## 9.13.6 Feb 5, 2023
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Align `eth_getTransactionCount` with frontier (Thanks to https://github.com/alko89)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Additional override for `Compact<{ refTime: u64 }>` chains
|
||||||
|
- Add script to retrieve local rpc, version & metadata for typegen
|
||||||
|
|
||||||
|
|
||||||
|
## 9.13.5 Feb 2, 2023
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Adjust `Weight` alias for 1.5 chains
|
||||||
|
- Ensure correct registry is pass through for runtime TS generation
|
||||||
|
|
||||||
|
|
||||||
|
## 9.13.4 Feb 1, 2023
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- None from 9.13.3 (The previous version had npm registry publishing issues)
|
||||||
|
|
||||||
|
|
||||||
|
## 9.13.3 Feb 1, 2023
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Adjust `Weight` alias detection to cater for `WeightV0/u32` overrides (e.g. early Kusama blocks)
|
||||||
|
|
||||||
|
|
||||||
|
## 9.13.2 Jan 29, 2023
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Allow null as valid param to Int/UInt
|
||||||
|
|
||||||
|
|
||||||
|
## 9.13.1 Jan 29, 2023
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Add support for V3 of `TransactionPaymentApi` (Thanks to https://github.com/notlesh)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Adjust `Weight` alias detection (moved from `PortableRegistry` -> `Registry`)
|
||||||
|
- Move default (typegen) weight alias to `WeightV2` (does not affect runtime detection)
|
||||||
|
- Prepare metadata docs from chain generation for future cli arguments
|
||||||
|
- Add base type object for (future) composite types
|
||||||
|
- Apply additional JSDoc comments into `PortableRegistry`
|
||||||
|
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||||
|
|
||||||
|
|
||||||
|
## 9.12.1 Jan 22, 2023
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Add `isStorageFallback` on the `Codec` interface. (`true` if entry was created from a metadata fallback value from an empty storage item)
|
||||||
|
- Ensure `api.queryMulti` returns empty result when no keys are provided
|
||||||
|
- Add explicit Array checks on `Vec/Tuple` inputs
|
||||||
|
- Align `Struct.{toU8a/toPrimitive/toHuman/toJSON}` population of results
|
||||||
|
- Apply memoization to batched API queries
|
||||||
|
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||||
|
|
||||||
|
|
||||||
|
## 9.11.3 Jan 15, 2023
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||||
|
|
||||||
|
|
||||||
|
## 9.11.2 Jan 13, 2023
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Ensure `derive.democracy.preimages` retrieves correctly from (current-gen) `preimage`
|
||||||
|
|
||||||
|
|
||||||
|
## 9.11.1 Jan 8, 2023
|
||||||
|
|
||||||
|
- **Breaking change** For users of `ScProvider` you now need to explicitly pass `@substrate/connect` as a parameter. This means the code needs to be adjusted as follows -
|
||||||
|
|
||||||
|
```js
|
||||||
|
import { ScProvider } from '@polkadot/api';
|
||||||
|
import * as Sc from '@substrate/connect';
|
||||||
|
|
||||||
|
const provider = new ScProvider(Sc, Sc.WellKnownChain.polkadot);
|
||||||
|
```
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Fix for typegen with nested tuples (Thanks to https://github.com/sander2)
|
||||||
|
- Expose blockNumber on submittable results (Thanks to https://github.com/ken-centrality)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- The `ScProvider` interface now needs receive an `@substrate/connect` instance
|
||||||
|
- Along with the above `ScProvider.WellKnownChains` has been removed
|
||||||
|
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||||
|
|
||||||
|
|
||||||
|
## 9.10.5 Dec 27, 2022
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Revert 9.10.4 paymentInfo changes (fallback only works on struct, not `Weight`)
|
||||||
|
|
||||||
|
|
||||||
|
## 9.10.4 Dec 25, 2022
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Align runtime `paymentInfo` calls with Substrate (w/ decoding fallbacks)
|
||||||
|
|
||||||
|
|
||||||
|
## 9.10.3 Dec 17, 2022
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Add override for Structs where `registry` appear as a field
|
||||||
|
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||||
|
- Kusama 9320/9340/9350 & Westend 9330/9340/9350 upgrade blocks
|
||||||
|
|
||||||
|
|
||||||
|
## 9.10.2 Dec 9, 2022
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Fix `derive.balances.account` detection for system vs balances
|
||||||
|
|
||||||
|
|
||||||
|
## 9.10.1 Dec 4, 2022
|
||||||
|
|
||||||
|
- **Important** Since [9.2.1](https://github.com/polkadot-js/api/releases/tag/v9.2.1) the recommended way of accessing `WellKnownChain` for light clients is via `ScProvider.WellKnownChain`. This release removes the explicit export from the `ScProvider` root.
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Adjust payloads to use `BlockHash` types (as applicable)
|
||||||
|
- Adjust type-only imports in `ScProvider`
|
||||||
|
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||||
|
- Update to `@polkadot/util` 10.2.1
|
||||||
|
|
||||||
|
|
||||||
|
## 9.9.4 Nov 28, 2022
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Fix dispatchQueue preimage retrieval in derives
|
||||||
|
- No change from incorrectly published 9.9.3
|
||||||
|
|
||||||
|
|
||||||
|
## 9.9.2 Nov 27, 2022
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||||
|
|
||||||
|
|
||||||
|
## 9.9.1 Nov 20, 2022
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||||
|
- Adjust code for latest Eslint & TS released versions
|
||||||
|
|
||||||
|
|
||||||
|
## 9.8.2 Nov 16, 2022
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Adjust `api.rpc.payment.queryInfo` to always return `WeightV1` responses
|
||||||
|
- Mark `api.rpc.payment.queryInfo` as deprecated (will be in a future Substrate version)
|
||||||
|
|
||||||
|
|
||||||
## 9.8.1 Nov 13, 2022
|
## 9.8.1 Nov 13, 2022
|
||||||
|
|
||||||
Contributed:
|
Contributed:
|
||||||
|
|||||||
+8
-3
@@ -1,4 +1,4 @@
|
|||||||
3280 Jaco 9.8.1 (#5337)
|
3395 Jaco Bump metadata (#5534)
|
||||||
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,22 +10,22 @@
|
|||||||
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 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)
|
||||||
3 hamidra add support for n key entries for NMaps (#3886)
|
3 hamidra add support for n key entries for NMaps (#3886)
|
||||||
3 Hamza Tokuchi more typos (#2532)
|
3 Hamza Tokuchi more typos (#2532)
|
||||||
3 Josep M Sobrepere docs: improve rpc-provider README (#4719)
|
3 Josep M Sobrepere docs: improve rpc-provider README (#4719)
|
||||||
3 Julien Eluard Fixed typos about module balances (#1402)
|
|
||||||
3 KarishmaBothara Backward compatibility thing (#3511)
|
3 KarishmaBothara Backward compatibility thing (#3511)
|
||||||
3 Miguel Hervas Adding RT4 Types (#3007)
|
3 Miguel Hervas Adding RT4 Types (#3007)
|
||||||
3 Shawn Tabrizi Add `isReadyOrError` when connecting to API (#2577)
|
3 Shawn Tabrizi Add `isReadyOrError` when connecting to API (#2577)
|
||||||
@@ -46,6 +46,7 @@
|
|||||||
2 Zannis Kalampoukis fix: Typegen handles structs and vectors of structs without erroring (#4743)
|
2 Zannis Kalampoukis fix: Typegen handles structs and vectors of structs without erroring (#4743)
|
||||||
2 扩散性百万甜面包 Typo, deocrateMethod -> decorateMethod (#1594)
|
2 扩散性百万甜面包 Typo, deocrateMethod -> decorateMethod (#1594)
|
||||||
1 Alan Sapede Adds Eth feeHistory & maxPriorityFeePerGas rpc (#4956)
|
1 Alan Sapede Adds Eth feeHistory & maxPriorityFeePerGas rpc (#4956)
|
||||||
|
1 Aleš Ferlan fix: use H160 for address in getTransactionCount (#5472)
|
||||||
1 Brad Larson [NEW] Support for custom headers with providers (#2423)
|
1 Brad Larson [NEW] Support for custom headers with providers (#2423)
|
||||||
1 Btwiuse Arch Add side effect check workaround (#4994) (#5009)
|
1 Btwiuse Arch Add side effect check workaround (#4994) (#5009)
|
||||||
1 chriswmercer little readme tweak (#279)
|
1 chriswmercer little readme tweak (#279)
|
||||||
@@ -69,11 +70,13 @@
|
|||||||
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)
|
||||||
1 JQQQ Allow rpc expose definition/ metadata (#3488)
|
1 JQQQ Allow rpc expose definition/ metadata (#3488)
|
||||||
1 Jun Jiang Update contract' gas to Weight type (#5324)
|
1 Jun Jiang Update contract' gas to Weight type (#5324)
|
||||||
|
1 Ken Vu Expose `blockNumber` via filterEvents function (#5394)
|
||||||
1 Kian Paimani Update definitions.ts (#2514)
|
1 Kian Paimani Update definitions.ts (#2514)
|
||||||
1 Krzysztof Jelski Derive for bounties and descriptions (#2925)
|
1 Krzysztof Jelski Derive for bounties and descriptions (#2925)
|
||||||
1 Lae Make sure awaiting on an api object won't stuck forever on error (#1763)
|
1 Lae Make sure awaiting on an api object won't stuck forever on error (#1763)
|
||||||
@@ -96,6 +99,7 @@
|
|||||||
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 Rocco Musolino remove broken link (#2671)
|
1 Rocco Musolino remove broken link (#2671)
|
||||||
|
1 sander2 fix: type generation for nested tuples (#5395)
|
||||||
1 satellitex Add BTreeSet<V> Codec (#1639)
|
1 satellitex Add BTreeSet<V> Codec (#1639)
|
||||||
1 satellitex Add traits replace rules. for invalid cases `::<type>` and `<type>::`. (#885)
|
1 satellitex Add traits replace rules. for invalid cases `::<type>` and `<type>::`. (#885)
|
||||||
1 Satyam Agrawal update as per the 0.97.0-beta.38 release (#1617)
|
1 Satyam Agrawal update as per the 0.97.0-beta.38 release (#1617)
|
||||||
@@ -103,6 +107,7 @@
|
|||||||
1 serge make WS provider timeout configurable (#4758)
|
1 serge make WS provider timeout configurable (#4758)
|
||||||
1 Sergei Pepyakin INK! -> ink! (#1347)
|
1 Sergei Pepyakin INK! -> ink! (#1347)
|
||||||
1 Shunji Zhan small polish (#5276)
|
1 Shunji Zhan small polish (#5276)
|
||||||
|
1 Stephen Shelton Add transaction-payment runtime API V3 (#5430)
|
||||||
1 WoeOm adapt Darwinia, Crab Network types (#3498)
|
1 WoeOm adapt Darwinia, Crab Network types (#3498)
|
||||||
1 Xat_MassacrE Fix packages/types/src/codec/utils/encodeTypes.ts encodeSubTypes bug (#1544)
|
1 Xat_MassacrE Fix packages/types/src/codec/utils/encodeTypes.ts encodeSubTypes bug (#1544)
|
||||||
1 yjh fix MetadataVersioned.asV12 (#2983)
|
1 yjh fix MetadataVersioned.asV12 (#2983)
|
||||||
|
|||||||
@@ -1,10 +1,3 @@
|
|||||||
[](https://polkadot.js.org)
|
|
||||||

|
|
||||||
[](https://www.npmjs.com/package/@polkadot/api)
|
|
||||||
[](https://www.npmjs.com/package/@polkadot/api)
|
|
||||||
[](https://codeclimate.com/github/polkadot-js/api)
|
|
||||||
[](https://codeclimate.com/github/polkadot-js/api)
|
|
||||||
|
|
||||||
# @polkadot/api
|
# @polkadot/api
|
||||||
|
|
||||||
This library provides a clean wrapper around all the methods exposed by a Polkadot/Substrate network client and defines all the types exposed by a node. For complete documentation around the classes, interfaces and their use, visit the [documentation portal](https://polkadot.js.org/docs/api/).
|
This library provides a clean wrapper around all the methods exposed by a Polkadot/Substrate network client and defines all the types exposed by a node. For complete documentation around the classes, interfaces and their use, visit the [documentation portal](https://polkadot.js.org/docs/api/).
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
// Copyright 2017-2022 @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-2022 @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
-16
@@ -11,40 +11,37 @@
|
|||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.8.1",
|
"version": "10.1.1",
|
||||||
"versions": {
|
"versions": {
|
||||||
"git": "9.8.1",
|
"git": "10.1.1",
|
||||||
"npm": "9.8.1"
|
"npm": "10.1.1"
|
||||||
},
|
},
|
||||||
"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/node/ts packages/typegen/scripts/polkadot-types-internal-interfaces.mjs",
|
||||||
"build:metadata": "yarn build:interfaces && yarn test:one 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",
|
||||||
"build:upgrades": "yarn test:one packages/types-known/src/upgrades/e2e",
|
"build:upgrades": "polkadot-dev-run-test upgrades/e2e",
|
||||||
"chain:info": "polkadot-types-chain-info",
|
"chain:info": "polkadot-types-chain-info",
|
||||||
"clean": "polkadot-dev-clean-build",
|
"clean": "polkadot-dev-clean-build",
|
||||||
"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": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --coverage --forceExit --runInBand --testPathIgnorePatterns e2e",
|
"test": "polkadot-dev-run-test --env node ^e2e",
|
||||||
"test:one": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --detectOpenHandles --forceExit"
|
"test:node": "polkadot-dev-run-test --env node ^e2e",
|
||||||
|
"test:one": "polkadot-dev-run-test --env node"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.20.2",
|
"@polkadot/dev": "^0.71.4",
|
||||||
"@babel/register": "^7.18.9",
|
|
||||||
"@babel/runtime": "^7.20.1",
|
|
||||||
"@polkadot/dev": "^0.67.156",
|
|
||||||
"@polkadot/typegen": "workspace:packages/typegen",
|
"@polkadot/typegen": "workspace:packages/typegen",
|
||||||
"@types/jest": "^29.2.2",
|
"@types/node": "^18.15.0"
|
||||||
"copyfiles": "^2.4.1"
|
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"typescript": "^4.8.4"
|
"typescript": "^4.9.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,201 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
@@ -20,18 +20,15 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.8.1",
|
"version": "10.1.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.1",
|
"@polkadot/api-base": "10.1.1",
|
||||||
"@polkadot/api-base": "9.8.1",
|
"@polkadot/rpc-augment": "10.1.1",
|
||||||
"@polkadot/rpc-augment": "9.8.1",
|
"@polkadot/types": "10.1.1",
|
||||||
"@polkadot/types": "9.8.1",
|
"@polkadot/types-augment": "10.1.1",
|
||||||
"@polkadot/types-augment": "9.8.1",
|
"@polkadot/types-codec": "10.1.1",
|
||||||
"@polkadot/types-codec": "9.8.1",
|
"@polkadot/util": "^11.0.2",
|
||||||
"@polkadot/util": "^10.1.12"
|
"tslib": "^2.5.0"
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@polkadot/types-support": "9.8.1"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @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
|
||||||
|
|
||||||
// for the API, we decorate not only the endpoints, but all types
|
// for the API, we decorate not only the endpoints, but all types
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2022 @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';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @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 { packageInfo as baseInfo } from '@polkadot/api-base/packageInfo';
|
import { packageInfo as baseInfo } from '@polkadot/api-base/packageInfo';
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
// Copyright 2017-2022 @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
|
||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
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-2022 @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';
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ 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, ITuple } 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, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
||||||
@@ -33,18 +33,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
authorship: {
|
|
||||||
/**
|
|
||||||
* The number of blocks back we should accept uncles.
|
|
||||||
* This means that we will deal with uncle-parents that are
|
|
||||||
* `UncleGenerations + 1` before `now`.
|
|
||||||
**/
|
|
||||||
uncleGenerations: u32 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
|
||||||
* Generic const
|
|
||||||
**/
|
|
||||||
[key: string]: Codec;
|
|
||||||
};
|
|
||||||
babe: {
|
babe: {
|
||||||
/**
|
/**
|
||||||
* The amount of time, in slots, that each epoch should last.
|
* The amount of time, in slots, that each epoch should last.
|
||||||
@@ -354,6 +342,17 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
|
fastUnstake: {
|
||||||
|
/**
|
||||||
|
* Deposit to take for unstaking, to make sure we're able to slash the it in order to cover
|
||||||
|
* the costs of resources on unsuccessful unstake.
|
||||||
|
**/
|
||||||
|
deposit: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic const
|
||||||
|
**/
|
||||||
|
[key: string]: Codec;
|
||||||
|
};
|
||||||
fellowshipReferenda: {
|
fellowshipReferenda: {
|
||||||
/**
|
/**
|
||||||
* Quantization level for the referendum wakeup scheduler. A higher number will result in
|
* Quantization level for the referendum wakeup scheduler. A higher number will result in
|
||||||
@@ -383,60 +382,20 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
gilt: {
|
|
||||||
/**
|
|
||||||
* Portion of the queue which is free from ordering and just a FIFO.
|
|
||||||
*
|
|
||||||
* Must be no greater than `MaxQueueLen`.
|
|
||||||
**/
|
|
||||||
fifoQueueLen: u32 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
|
||||||
* The number of blocks between consecutive attempts to issue more gilts in an effort to
|
|
||||||
* get to the target amount to be frozen.
|
|
||||||
*
|
|
||||||
* A larger value results in fewer storage hits each block, but a slower period to get to
|
|
||||||
* the target.
|
|
||||||
**/
|
|
||||||
intakePeriod: u32 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
|
||||||
* The maximum amount of bids that can be turned into issued gilts each block. A larger
|
|
||||||
* value here means less of the block available for transactions should there be a glut of
|
|
||||||
* bids to make into gilts to reach the target.
|
|
||||||
**/
|
|
||||||
maxIntakeBids: u32 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
|
||||||
* Maximum number of items that may be in each duration queue.
|
|
||||||
**/
|
|
||||||
maxQueueLen: u32 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
|
||||||
* The minimum amount of funds that may be offered to freeze for a gilt. Note that this
|
|
||||||
* does not actually limit the amount which may be frozen in a gilt since gilts may be
|
|
||||||
* split up in order to satisfy the desired amount of funds under gilts.
|
|
||||||
*
|
|
||||||
* It should be at least big enough to ensure that there is no possible storage spam attack
|
|
||||||
* or queue-filling attack.
|
|
||||||
**/
|
|
||||||
minFreeze: u128 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
|
||||||
* The base period for the duration queues. This is the common multiple across all
|
|
||||||
* supported freezing durations that can be bid upon.
|
|
||||||
**/
|
|
||||||
period: u32 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
|
||||||
* Number of duration queues in total. This sets the maximum duration supported, which is
|
|
||||||
* this value multiplied by `Period`.
|
|
||||||
**/
|
|
||||||
queueCount: u32 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
|
||||||
* Generic const
|
|
||||||
**/
|
|
||||||
[key: string]: Codec;
|
|
||||||
};
|
|
||||||
grandpa: {
|
grandpa: {
|
||||||
/**
|
/**
|
||||||
* Max Authorities in use
|
* Max Authorities in use
|
||||||
**/
|
**/
|
||||||
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum number of entries to keep in the set id to session index mapping.
|
||||||
|
*
|
||||||
|
* Since the `SetIdSession` map is only used for validating equivocations this
|
||||||
|
* value should relate to the bonding duration of whatever staking system is
|
||||||
|
* being used (if any). If equivocation handling is not enabled then this value
|
||||||
|
* can be zero.
|
||||||
|
**/
|
||||||
|
maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic const
|
* Generic const
|
||||||
**/
|
**/
|
||||||
@@ -524,6 +483,92 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
|
nis: {
|
||||||
|
/**
|
||||||
|
* The base period for the duration queues. This is the common multiple across all
|
||||||
|
* supported freezing durations that can be bid upon.
|
||||||
|
**/
|
||||||
|
basePeriod: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Portion of the queue which is free from ordering and just a FIFO.
|
||||||
|
*
|
||||||
|
* Must be no greater than `MaxQueueLen`.
|
||||||
|
**/
|
||||||
|
fifoQueueLen: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The number of blocks between consecutive attempts to dequeue bids and create receipts.
|
||||||
|
*
|
||||||
|
* A larger value results in fewer storage hits each block, but a slower period to get to
|
||||||
|
* the target.
|
||||||
|
**/
|
||||||
|
intakePeriod: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum amount of bids that can consolidated into receipts in a single intake. A
|
||||||
|
* larger value here means less of the block available for transactions should there be a
|
||||||
|
* glut of bids.
|
||||||
|
**/
|
||||||
|
maxIntakeWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Maximum number of items that may be in each duration queue.
|
||||||
|
*
|
||||||
|
* Must be larger than zero.
|
||||||
|
**/
|
||||||
|
maxQueueLen: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The minimum amount of funds that may be placed in a bid. Note that this
|
||||||
|
* does not actually limit the amount which may be represented in a receipt since bids may
|
||||||
|
* be split up by the system.
|
||||||
|
*
|
||||||
|
* It should be at least big enough to ensure that there is no possible storage spam attack
|
||||||
|
* or queue-filling attack.
|
||||||
|
**/
|
||||||
|
minBid: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The minimum amount of funds which may intentionally be left remaining under a single
|
||||||
|
* receipt.
|
||||||
|
**/
|
||||||
|
minReceipt: Perquintill & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The treasury's pallet id, used for deriving its sovereign account ID.
|
||||||
|
**/
|
||||||
|
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Number of duration queues in total. This sets the maximum duration supported, which is
|
||||||
|
* this value multiplied by `Period`.
|
||||||
|
**/
|
||||||
|
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.
|
||||||
|
**/
|
||||||
|
thawThrottle: ITuple<[Perquintill, u32]> & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic const
|
||||||
|
**/
|
||||||
|
[key: string]: Codec;
|
||||||
|
};
|
||||||
|
nisCounterpartBalances: {
|
||||||
|
/**
|
||||||
|
* The minimum amount required to keep an account open.
|
||||||
|
**/
|
||||||
|
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum number of locks that should exist on an account.
|
||||||
|
* Not strictly enforced, but used for weight estimation.
|
||||||
|
**/
|
||||||
|
maxLocks: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum number of named reserves that can exist on an account.
|
||||||
|
**/
|
||||||
|
maxReserves: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic const
|
||||||
|
**/
|
||||||
|
[key: string]: Codec;
|
||||||
|
};
|
||||||
nominationPools: {
|
nominationPools: {
|
||||||
/**
|
/**
|
||||||
* The maximum pool points-to-balance ratio that an `open` pool can have.
|
* The maximum pool points-to-balance ratio that an `open` pool can have.
|
||||||
@@ -572,18 +617,28 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
/**
|
/**
|
||||||
* The maximum number of candidates in a phragmen election.
|
* The maximum number of candidates in a phragmen election.
|
||||||
*
|
*
|
||||||
* Warning: The election happens onchain, and this value will determine
|
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
||||||
* the size of the election. When this limit is reached no more
|
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
||||||
* candidates are accepted in the election.
|
*
|
||||||
|
* When this limit is reached no more candidates are accepted in the election.
|
||||||
**/
|
**/
|
||||||
maxCandidates: u32 & AugmentedConst<ApiType>;
|
maxCandidates: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The maximum number of voters to allow in a phragmen election.
|
* The maximum number of voters to allow in a phragmen election.
|
||||||
*
|
*
|
||||||
* Warning: This impacts the size of the election which is run onchain.
|
* 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.
|
* When the limit is reached the new voters are ignored.
|
||||||
**/
|
**/
|
||||||
maxVoters: u32 & AugmentedConst<ApiType>;
|
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
|
* Identifier for the elections-phragmen pallet's lock
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -45,40 +45,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
authorship: {
|
|
||||||
/**
|
|
||||||
* The uncle is genesis.
|
|
||||||
**/
|
|
||||||
GenesisUncle: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* The uncle parent not in the chain.
|
|
||||||
**/
|
|
||||||
InvalidUncleParent: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* The uncle isn't recent enough to be included.
|
|
||||||
**/
|
|
||||||
OldUncle: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* The uncle is too high in chain.
|
|
||||||
**/
|
|
||||||
TooHighUncle: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Too many uncles.
|
|
||||||
**/
|
|
||||||
TooManyUncles: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* The uncle is already included.
|
|
||||||
**/
|
|
||||||
UncleAlreadyIncluded: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Uncles already set in the block.
|
|
||||||
**/
|
|
||||||
UnclesAlreadySet: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Generic error
|
|
||||||
**/
|
|
||||||
[key: string]: AugmentedError<ApiType>;
|
|
||||||
};
|
|
||||||
babe: {
|
babe: {
|
||||||
/**
|
/**
|
||||||
* A given equivocation report is valid but already previously reported.
|
* A given equivocation report is valid but already previously reported.
|
||||||
@@ -115,7 +81,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
ExistingVestingSchedule: AugmentedError<ApiType>;
|
ExistingVestingSchedule: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Balance too low to send value
|
* Balance too low to send value.
|
||||||
**/
|
**/
|
||||||
InsufficientBalance: AugmentedError<ApiType>;
|
InsufficientBalance: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -509,6 +475,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The given account did not vote on the referendum.
|
* The given account did not vote on the referendum.
|
||||||
**/
|
**/
|
||||||
NotVoter: AugmentedError<ApiType>;
|
NotVoter: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The preimage does not exist.
|
||||||
|
**/
|
||||||
|
PreimageNotExist: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Proposal still blacklisted
|
* Proposal still blacklisted
|
||||||
**/
|
**/
|
||||||
@@ -688,6 +658,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The referendum index provided is invalid in this context.
|
* The referendum index provided is invalid in this context.
|
||||||
**/
|
**/
|
||||||
BadReferendum: AugmentedError<ApiType>;
|
BadReferendum: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The referendum status is invalid for this operation.
|
||||||
|
**/
|
||||||
|
BadStatus: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The track identifier given was invalid.
|
* The track identifier given was invalid.
|
||||||
**/
|
**/
|
||||||
@@ -720,6 +694,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* No track exists for the proposal origin.
|
* No track exists for the proposal origin.
|
||||||
**/
|
**/
|
||||||
NoTrack: AugmentedError<ApiType>;
|
NoTrack: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The preimage does not exist.
|
||||||
|
**/
|
||||||
|
PreimageNotExist: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The queue of the track is empty.
|
* The queue of the track is empty.
|
||||||
**/
|
**/
|
||||||
@@ -733,45 +711,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
gilt: {
|
|
||||||
/**
|
|
||||||
* The amount of the bid is less than the minimum allowed.
|
|
||||||
**/
|
|
||||||
AmountTooSmall: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* The queue for the bid's duration is full and the amount bid is too low to get in
|
|
||||||
* through replacing an existing bid.
|
|
||||||
**/
|
|
||||||
BidTooLow: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* The duration is the bid is greater than the number of queues.
|
|
||||||
**/
|
|
||||||
DurationTooBig: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* The duration of the bid is less than one.
|
|
||||||
**/
|
|
||||||
DurationTooSmall: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Gilt not yet at expiry date.
|
|
||||||
**/
|
|
||||||
NotExpired: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* The given bid for retraction is not found.
|
|
||||||
**/
|
|
||||||
NotFound: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Not the owner of the gilt.
|
|
||||||
**/
|
|
||||||
NotOwner: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Gilt index is unknown.
|
|
||||||
**/
|
|
||||||
Unknown: 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.
|
||||||
@@ -1070,12 +1009,121 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
|
nis: {
|
||||||
|
/**
|
||||||
|
* The receipt is already communal.
|
||||||
|
**/
|
||||||
|
AlreadyCommunal: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* There are enough funds for what is required.
|
||||||
|
**/
|
||||||
|
AlreadyFunded: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The receipt is already private.
|
||||||
|
**/
|
||||||
|
AlreadyPrivate: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The amount of the bid is less than the minimum allowed.
|
||||||
|
**/
|
||||||
|
AmountTooSmall: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The queue for the bid's duration is full and the amount bid is too low to get in
|
||||||
|
* through replacing an existing bid.
|
||||||
|
**/
|
||||||
|
BidTooLow: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The duration is the bid is greater than the number of queues.
|
||||||
|
**/
|
||||||
|
DurationTooBig: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The duration of the bid is less than one.
|
||||||
|
**/
|
||||||
|
DurationTooSmall: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The operation would result in a receipt worth an insignficant value.
|
||||||
|
**/
|
||||||
|
MakesDust: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Bond not yet at expiry date.
|
||||||
|
**/
|
||||||
|
NotExpired: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Not the owner of the receipt.
|
||||||
|
**/
|
||||||
|
NotOwner: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The portion supplied is beyond the value of the receipt.
|
||||||
|
**/
|
||||||
|
PortionTooBig: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The thaw throttle has been reached for this period.
|
||||||
|
**/
|
||||||
|
Throttled: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Not enough funds are held to pay out.
|
||||||
|
**/
|
||||||
|
Unfunded: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The given bid for retraction is not found.
|
||||||
|
**/
|
||||||
|
UnknownBid: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Receipt index is unknown.
|
||||||
|
**/
|
||||||
|
UnknownReceipt: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic error
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedError<ApiType>;
|
||||||
|
};
|
||||||
|
nisCounterpartBalances: {
|
||||||
|
/**
|
||||||
|
* Beneficiary account must pre-exist
|
||||||
|
**/
|
||||||
|
DeadAccount: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Value too low to create account due to existential deposit
|
||||||
|
**/
|
||||||
|
ExistentialDeposit: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* A vesting schedule already exists for this account
|
||||||
|
**/
|
||||||
|
ExistingVestingSchedule: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Balance too low to send value.
|
||||||
|
**/
|
||||||
|
InsufficientBalance: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Transfer/payment would kill account
|
||||||
|
**/
|
||||||
|
KeepAlive: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Account liquidity restrictions prevent withdrawal
|
||||||
|
**/
|
||||||
|
LiquidityRestrictions: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Number of named reserves exceed MaxReserves
|
||||||
|
**/
|
||||||
|
TooManyReserves: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Vesting balance too high to send value
|
||||||
|
**/
|
||||||
|
VestingBalance: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic error
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedError<ApiType>;
|
||||||
|
};
|
||||||
nominationPools: {
|
nominationPools: {
|
||||||
/**
|
/**
|
||||||
* An account is already delegating in another pool. An account may only belong to one
|
* An account is already delegating in another pool. An account may only belong to one
|
||||||
* 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.
|
||||||
**/
|
**/
|
||||||
@@ -1409,13 +1457,21 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
InvalidSignature: AugmentedError<ApiType>;
|
InvalidSignature: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Too many spam slots used by some specific validator.
|
* A dispute vote from a malicious backer.
|
||||||
**/
|
**/
|
||||||
PotentialSpam: AugmentedError<ApiType>;
|
MaliciousBacker: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* No backing votes were provides along dispute statements.
|
||||||
|
**/
|
||||||
|
MissingBackingVotes: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* A dispute where there are only votes on one side.
|
* A dispute where there are only votes on one side.
|
||||||
**/
|
**/
|
||||||
SingleSidedDispute: AugmentedError<ApiType>;
|
SingleSidedDispute: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Unconfirmed dispute statement sets provided.
|
||||||
|
**/
|
||||||
|
UnconfirmedDispute: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Validator index on statement is out of bounds for session.
|
* Validator index on statement is out of bounds for session.
|
||||||
**/
|
**/
|
||||||
@@ -1642,6 +1698,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The referendum index provided is invalid in this context.
|
* The referendum index provided is invalid in this context.
|
||||||
**/
|
**/
|
||||||
BadReferendum: AugmentedError<ApiType>;
|
BadReferendum: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The referendum status is invalid for this operation.
|
||||||
|
**/
|
||||||
|
BadStatus: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The track identifier given was invalid.
|
* The track identifier given was invalid.
|
||||||
**/
|
**/
|
||||||
@@ -1674,6 +1734,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* No track exists for the proposal origin.
|
* No track exists for the proposal origin.
|
||||||
**/
|
**/
|
||||||
NoTrack: AugmentedError<ApiType>;
|
NoTrack: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The preimage does not exist.
|
||||||
|
**/
|
||||||
|
PreimageNotExist: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The queue of the track is empty.
|
* The queue of the track is empty.
|
||||||
**/
|
**/
|
||||||
@@ -2247,6 +2311,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
xcmPallet: {
|
xcmPallet: {
|
||||||
|
/**
|
||||||
|
* The given account is not an identifiable sovereign account for any location.
|
||||||
|
**/
|
||||||
|
AccountNotSovereign: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The location is invalid since it already has a subscription from us.
|
* The location is invalid since it already has a subscription from us.
|
||||||
**/
|
**/
|
||||||
@@ -2272,14 +2340,34 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The assets to be sent are empty.
|
* The assets to be sent are empty.
|
||||||
**/
|
**/
|
||||||
Empty: AugmentedError<ApiType>;
|
Empty: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The operation required fees to be paid which the initiator could not meet.
|
||||||
|
**/
|
||||||
|
FeesNotMet: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The message execution fails the filter.
|
* The message execution fails the filter.
|
||||||
**/
|
**/
|
||||||
Filtered: AugmentedError<ApiType>;
|
Filtered: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The unlock operation cannot succeed because there are still users of the lock.
|
||||||
|
**/
|
||||||
|
InUse: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Invalid asset for the operation.
|
||||||
|
**/
|
||||||
|
InvalidAsset: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Origin is invalid for sending.
|
* Origin is invalid for sending.
|
||||||
**/
|
**/
|
||||||
InvalidOrigin: AugmentedError<ApiType>;
|
InvalidOrigin: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* A remote lock with the corresponding data could not be found.
|
||||||
|
**/
|
||||||
|
LockNotFound: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The owner does not own (all) of the asset that they wish to do the operation on.
|
||||||
|
**/
|
||||||
|
LowBalance: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The referenced subscription could not be found.
|
* The referenced subscription could not be found.
|
||||||
**/
|
**/
|
||||||
@@ -2293,6 +2381,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Too many assets have been attempted for transfer.
|
* Too many assets have been attempted for transfer.
|
||||||
**/
|
**/
|
||||||
TooManyAssets: AugmentedError<ApiType>;
|
TooManyAssets: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The asset owner has too many locks on the asset.
|
||||||
|
**/
|
||||||
|
TooManyLocks: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The desired destination was unreachable, generally because there is a no way of routing
|
* The desired destination was unreachable, generally because there is a no way of routing
|
||||||
* to it.
|
* to it.
|
||||||
|
|||||||
@@ -1,43 +0,0 @@
|
|||||||
// Copyright 2017-2022 @polkadot/api-augment authors & contributors
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
import '@polkadot/api-augment/kusama';
|
|
||||||
|
|
||||||
import type { PolkadotRuntimeParachainsUmpPalletEvent, XcmV2TraitsOutcome } from '@polkadot/types/lookup';
|
|
||||||
|
|
||||||
import { Metadata, TypeRegistry } from '@polkadot/types';
|
|
||||||
import metadataStatic from '@polkadot/types-support/metadata/static-kusama';
|
|
||||||
|
|
||||||
const registry = new TypeRegistry();
|
|
||||||
const metadata = new Metadata(registry, metadataStatic);
|
|
||||||
|
|
||||||
registry.setMetadata(metadata);
|
|
||||||
|
|
||||||
describe('correct types', (): void => {
|
|
||||||
it('correctly creates XcmV2TraitsOutcome', (): void => {
|
|
||||||
const test = registry.createType<XcmV2TraitsOutcome>('XcmV2TraitsOutcome', {
|
|
||||||
Incomplete: [3_000_000_000, 'BadOrigin']
|
|
||||||
});
|
|
||||||
|
|
||||||
expect(test.toHuman()).toEqual({
|
|
||||||
Incomplete: [
|
|
||||||
'3,000,000,000',
|
|
||||||
'BadOrigin'
|
|
||||||
]
|
|
||||||
});
|
|
||||||
expect(test.isIncomplete).toEqual(true);
|
|
||||||
expect(test.asIncomplete.toHuman()).toEqual([
|
|
||||||
'3,000,000,000',
|
|
||||||
'BadOrigin'
|
|
||||||
]);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('correctly creates PolkadotRuntimeParachainsUmpPalletEvent', (): void => {
|
|
||||||
const test = registry.createType<PolkadotRuntimeParachainsUmpPalletEvent>('PolkadotRuntimeParachainsUmpPalletEvent', '0x02112233445566778811223344556677881122334455667788112233445566778801005ed0b20000000006');
|
|
||||||
|
|
||||||
expect(test.asExecutedUpward[1].asIncomplete.toHuman()).toEqual([
|
|
||||||
'3,000,000,000',
|
|
||||||
'BadOrigin'
|
|
||||||
]);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
@@ -9,8 +9,8 @@ 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 { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
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, 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>;
|
||||||
|
|
||||||
@@ -281,6 +281,18 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* An external proposal has been tabled.
|
* An external proposal has been tabled.
|
||||||
**/
|
**/
|
||||||
ExternalTabled: AugmentedEvent<ApiType, []>;
|
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.
|
* A proposal has been rejected by referendum.
|
||||||
**/
|
**/
|
||||||
@@ -337,14 +349,14 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* The election has been finalized, with the given computation and score.
|
* The election has been finalized, with the given computation and score.
|
||||||
**/
|
**/
|
||||||
ElectionFinalized: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore], { compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore }>;
|
ElectionFinalized: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore], { compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore }>;
|
||||||
|
/**
|
||||||
|
* There was a phase transition in a given round.
|
||||||
|
**/
|
||||||
|
PhaseTransitioned: AugmentedEvent<ApiType, [from: PalletElectionProviderMultiPhasePhase, to: PalletElectionProviderMultiPhasePhase, round: u32], { from: PalletElectionProviderMultiPhasePhase, to: PalletElectionProviderMultiPhasePhase, round: u32 }>;
|
||||||
/**
|
/**
|
||||||
* An account has been rewarded for their signed submission being finalized.
|
* An account has been rewarded for their signed submission being finalized.
|
||||||
**/
|
**/
|
||||||
Rewarded: AugmentedEvent<ApiType, [account: AccountId32, value: u128], { account: AccountId32, value: u128 }>;
|
Rewarded: AugmentedEvent<ApiType, [account: AccountId32, value: u128], { account: AccountId32, value: u128 }>;
|
||||||
/**
|
|
||||||
* The signed phase of the given round has started.
|
|
||||||
**/
|
|
||||||
SignedPhaseStarted: AugmentedEvent<ApiType, [round: u32], { round: u32 }>;
|
|
||||||
/**
|
/**
|
||||||
* An account has been slashed for submitting an invalid signed submission.
|
* An account has been slashed for submitting an invalid signed submission.
|
||||||
**/
|
**/
|
||||||
@@ -352,16 +364,13 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* A solution was stored with the given compute.
|
* A solution was stored with the given compute.
|
||||||
*
|
*
|
||||||
* If the solution is signed, this means that it hasn't yet been processed. If the
|
* The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,
|
||||||
* solution is unsigned, this means that it has also been processed.
|
* the stored solution was submited in the signed phase by a miner with the `AccountId`.
|
||||||
*
|
* Otherwise, the solution was stored either during the unsigned phase or by
|
||||||
* The `bool` is `true` when a previous solution was ejected to make room for this one.
|
* `T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make
|
||||||
|
* room for this one.
|
||||||
**/
|
**/
|
||||||
SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool], { compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool }>;
|
SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, origin: Option<AccountId32>, prevEjected: bool], { compute: PalletElectionProviderMultiPhaseElectionCompute, origin: Option<AccountId32>, prevEjected: bool }>;
|
||||||
/**
|
|
||||||
* The unsigned phase of the given round has started.
|
|
||||||
**/
|
|
||||||
UnsignedPhaseStarted: AugmentedEvent<ApiType, [round: u32], { round: u32 }>;
|
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
@@ -373,17 +382,12 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
BatchChecked: AugmentedEvent<ApiType, [eras: Vec<u32>], { eras: Vec<u32> }>;
|
BatchChecked: AugmentedEvent<ApiType, [eras: Vec<u32>], { eras: Vec<u32> }>;
|
||||||
/**
|
/**
|
||||||
* A batch was terminated.
|
* A batch of a given size was terminated.
|
||||||
*
|
*
|
||||||
* This is always follows by a number of `Unstaked` or `Slashed` events, marking the end
|
* This is always follows by a number of `Unstaked` or `Slashed` events, marking the end
|
||||||
* of the batch. A new batch will be created upon next block.
|
* of the batch. A new batch will be created upon next block.
|
||||||
**/
|
**/
|
||||||
BatchFinished: AugmentedEvent<ApiType, []>;
|
BatchFinished: AugmentedEvent<ApiType, [size_: u32], { size_: u32 }>;
|
||||||
/**
|
|
||||||
* Some internal error happened while migrating stash. They are removed as head as a
|
|
||||||
* consequence.
|
|
||||||
**/
|
|
||||||
Errored: AugmentedEvent<ApiType, [stash: AccountId32], { stash: AccountId32 }>;
|
|
||||||
/**
|
/**
|
||||||
* An internal error happened. Operations will be paused now.
|
* An internal error happened. Operations will be paused now.
|
||||||
**/
|
**/
|
||||||
@@ -459,10 +463,22 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A referendum has been killed.
|
* A referendum has been killed.
|
||||||
**/
|
**/
|
||||||
Killed: AugmentedEvent<ApiType, [index: u32, tally: PalletRankedCollectiveTally], { index: u32, tally: PalletRankedCollectiveTally }>;
|
Killed: AugmentedEvent<ApiType, [index: u32, tally: PalletRankedCollectiveTally], { index: u32, tally: PalletRankedCollectiveTally }>;
|
||||||
|
/**
|
||||||
|
* 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.
|
* A proposal has been rejected by referendum.
|
||||||
**/
|
**/
|
||||||
Rejected: AugmentedEvent<ApiType, [index: u32, tally: PalletRankedCollectiveTally], { index: u32, tally: PalletRankedCollectiveTally }>;
|
Rejected: AugmentedEvent<ApiType, [index: u32, tally: PalletRankedCollectiveTally], { index: u32, tally: PalletRankedCollectiveTally }>;
|
||||||
|
/**
|
||||||
|
* 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.
|
* A referendum has been submitted.
|
||||||
**/
|
**/
|
||||||
@@ -476,33 +492,11 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
};
|
};
|
||||||
gilt: {
|
|
||||||
/**
|
|
||||||
* A bid was successfully placed.
|
|
||||||
**/
|
|
||||||
BidPlaced: AugmentedEvent<ApiType, [who: AccountId32, amount: u128, duration: u32], { who: AccountId32, amount: u128, duration: u32 }>;
|
|
||||||
/**
|
|
||||||
* A bid was successfully removed (before being accepted as a gilt).
|
|
||||||
**/
|
|
||||||
BidRetracted: AugmentedEvent<ApiType, [who: AccountId32, amount: u128, duration: u32], { who: AccountId32, amount: u128, duration: u32 }>;
|
|
||||||
/**
|
|
||||||
* A bid was accepted as a gilt. The balance may not be released until expiry.
|
|
||||||
**/
|
|
||||||
GiltIssued: AugmentedEvent<ApiType, [index: u32, expiry: u32, who: AccountId32, amount: u128], { index: u32, expiry: u32, who: AccountId32, amount: u128 }>;
|
|
||||||
/**
|
|
||||||
* An expired gilt has been thawed.
|
|
||||||
**/
|
|
||||||
GiltThawed: AugmentedEvent<ApiType, [index: u32, who: AccountId32, originalAmount: u128, additionalAmount: u128], { index: u32, who: AccountId32, originalAmount: u128, additionalAmount: u128 }>;
|
|
||||||
/**
|
|
||||||
* 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.
|
||||||
**/
|
**/
|
||||||
@@ -650,6 +644,88 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
};
|
};
|
||||||
|
nis: {
|
||||||
|
/**
|
||||||
|
* A bid was dropped from a queue because of another, more substantial, bid was present.
|
||||||
|
**/
|
||||||
|
BidDropped: AugmentedEvent<ApiType, [who: AccountId32, amount: u128, duration: u32], { who: AccountId32, amount: u128, duration: u32 }>;
|
||||||
|
/**
|
||||||
|
* A bid was successfully placed.
|
||||||
|
**/
|
||||||
|
BidPlaced: AugmentedEvent<ApiType, [who: AccountId32, amount: u128, duration: u32], { who: AccountId32, amount: u128, duration: u32 }>;
|
||||||
|
/**
|
||||||
|
* A bid was successfully removed (before being accepted).
|
||||||
|
**/
|
||||||
|
BidRetracted: AugmentedEvent<ApiType, [who: AccountId32, amount: u128, duration: u32], { who: AccountId32, amount: u128, duration: u32 }>;
|
||||||
|
/**
|
||||||
|
* An automatic funding of the deficit was made.
|
||||||
|
**/
|
||||||
|
Funded: AugmentedEvent<ApiType, [deficit: u128], { deficit: u128 }>;
|
||||||
|
/**
|
||||||
|
* A bid was accepted. The balance may not be released until expiry.
|
||||||
|
**/
|
||||||
|
Issued: AugmentedEvent<ApiType, [index: u32, expiry: u32, who: AccountId32, proportion: Perquintill, amount: u128], { index: u32, expiry: u32, who: AccountId32, proportion: Perquintill, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* An receipt has been (at least partially) thawed.
|
||||||
|
**/
|
||||||
|
Thawed: AugmentedEvent<ApiType, [index: u32, who: AccountId32, proportion: Perquintill, amount: u128, dropped: bool], { index: u32, who: AccountId32, proportion: Perquintill, amount: u128, dropped: bool }>;
|
||||||
|
/**
|
||||||
|
* A receipt was transfered.
|
||||||
|
**/
|
||||||
|
Transferred: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, index: u32], { from: AccountId32, to: AccountId32, index: u32 }>;
|
||||||
|
/**
|
||||||
|
* Generic event
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
|
};
|
||||||
|
nisCounterpartBalances: {
|
||||||
|
/**
|
||||||
|
* A balance was set by root.
|
||||||
|
**/
|
||||||
|
BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128, reserved: u128], { who: AccountId32, free: u128, reserved: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some amount was deposited (e.g. for transaction fees).
|
||||||
|
**/
|
||||||
|
Deposit: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* An account was removed whose balance was non-zero but below ExistentialDeposit,
|
||||||
|
* resulting in an outright loss.
|
||||||
|
**/
|
||||||
|
DustLost: AugmentedEvent<ApiType, [account: AccountId32, amount: u128], { account: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* An account was created with some free balance.
|
||||||
|
**/
|
||||||
|
Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some balance was reserved (moved from free to reserved).
|
||||||
|
**/
|
||||||
|
Reserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some balance was moved from the reserve of the first account to the second account.
|
||||||
|
* 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 }>;
|
||||||
|
/**
|
||||||
|
* Some amount was removed from the account (e.g. for misbehavior).
|
||||||
|
**/
|
||||||
|
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Transfer succeeded.
|
||||||
|
**/
|
||||||
|
Transfer: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some balance was unreserved (moved from reserved to free).
|
||||||
|
**/
|
||||||
|
Unreserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Some amount was withdrawn from the account (e.g. for transaction fees).
|
||||||
|
**/
|
||||||
|
Withdraw: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Generic event
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
|
};
|
||||||
nominationPools: {
|
nominationPools: {
|
||||||
/**
|
/**
|
||||||
* A member has became bonded in a pool.
|
* A member has became bonded in a pool.
|
||||||
@@ -681,7 +757,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
|
||||||
**/
|
**/
|
||||||
@@ -969,10 +1045,22 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A referendum has been killed.
|
* A referendum has been killed.
|
||||||
**/
|
**/
|
||||||
Killed: AugmentedEvent<ApiType, [index: u32, tally: PalletConvictionVotingTally], { index: u32, tally: PalletConvictionVotingTally }>;
|
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.
|
* A proposal has been rejected by referendum.
|
||||||
**/
|
**/
|
||||||
Rejected: AugmentedEvent<ApiType, [index: u32, tally: PalletConvictionVotingTally], { index: u32, tally: PalletConvictionVotingTally }>;
|
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.
|
* A referendum has been submitted.
|
||||||
**/
|
**/
|
||||||
@@ -1095,6 +1183,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A new \[max\] member count has been set
|
* A new \[max\] member count has been set
|
||||||
**/
|
**/
|
||||||
NewMaxMembers: AugmentedEvent<ApiType, [max: u32], { max: u32 }>;
|
NewMaxMembers: AugmentedEvent<ApiType, [max: u32], { max: u32 }>;
|
||||||
|
/**
|
||||||
|
* A group of members has been choosen as Skeptics
|
||||||
|
**/
|
||||||
|
SkepticsChosen: AugmentedEvent<ApiType, [skeptics: Vec<AccountId32>], { skeptics: Vec<AccountId32> }>;
|
||||||
/**
|
/**
|
||||||
* A suspended member has been judged.
|
* A suspended member has been judged.
|
||||||
**/
|
**/
|
||||||
@@ -1142,6 +1234,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* the remainder from the maximum amount of reward.
|
* the remainder from the maximum amount of reward.
|
||||||
**/
|
**/
|
||||||
EraPaid: AugmentedEvent<ApiType, [eraIndex: u32, validatorPayout: u128, remainder: u128], { eraIndex: u32, validatorPayout: u128, remainder: u128 }>;
|
EraPaid: AugmentedEvent<ApiType, [eraIndex: u32, validatorPayout: u128, remainder: u128], { eraIndex: u32, validatorPayout: u128, remainder: u128 }>;
|
||||||
|
/**
|
||||||
|
* A new force era mode was set.
|
||||||
|
**/
|
||||||
|
ForceEra: AugmentedEvent<ApiType, [mode: PalletStakingForcing], { mode: PalletStakingForcing }>;
|
||||||
/**
|
/**
|
||||||
* A nominator has been kicked from a validator.
|
* A nominator has been kicked from a validator.
|
||||||
**/
|
**/
|
||||||
@@ -1160,9 +1256,14 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
Rewarded: AugmentedEvent<ApiType, [stash: AccountId32, amount: u128], { stash: AccountId32, amount: u128 }>;
|
Rewarded: AugmentedEvent<ApiType, [stash: AccountId32, amount: u128], { stash: AccountId32, amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* One staker (and potentially its nominators) has been slashed by the given amount.
|
* A staker (validator or nominator) has been slashed by the given amount.
|
||||||
**/
|
**/
|
||||||
Slashed: AugmentedEvent<ApiType, [staker: AccountId32, amount: u128], { staker: AccountId32, amount: u128 }>;
|
Slashed: AugmentedEvent<ApiType, [staker: AccountId32, amount: u128], { staker: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* A slash for the given validator, for the given percentage of their stake, at the given
|
||||||
|
* era as been reported.
|
||||||
|
**/
|
||||||
|
SlashReported: AugmentedEvent<ApiType, [validator: AccountId32, fraction: Perbill, slashEra: u32], { validator: AccountId32, fraction: Perbill, slashEra: u32 }>;
|
||||||
/**
|
/**
|
||||||
* A new set of stakers was elected.
|
* A new set of stakers was elected.
|
||||||
**/
|
**/
|
||||||
@@ -1355,6 +1456,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* We have ended a spend period and will now allocate funds.
|
* We have ended a spend period and will now allocate funds.
|
||||||
**/
|
**/
|
||||||
Spending: AugmentedEvent<ApiType, [budgetRemaining: u128], { budgetRemaining: u128 }>;
|
Spending: AugmentedEvent<ApiType, [budgetRemaining: u128], { budgetRemaining: u128 }>;
|
||||||
|
/**
|
||||||
|
* The inactive funds of the pallet have been updated.
|
||||||
|
**/
|
||||||
|
UpdatedInactive: AugmentedEvent<ApiType, [reactivated: u128, deactivated: u128], { reactivated: u128, deactivated: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
@@ -1365,7 +1470,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* Upward message executed with the given outcome.
|
* Upward message executed with the given outcome.
|
||||||
* \[ id, outcome \]
|
* \[ id, outcome \]
|
||||||
**/
|
**/
|
||||||
ExecutedUpward: AugmentedEvent<ApiType, [U8aFixed, XcmV2TraitsOutcome]>;
|
ExecutedUpward: AugmentedEvent<ApiType, [U8aFixed, XcmV3TraitsOutcome]>;
|
||||||
/**
|
/**
|
||||||
* Upward message is invalid XCM.
|
* Upward message is invalid XCM.
|
||||||
* \[ id \]
|
* \[ id \]
|
||||||
@@ -1482,19 +1587,45 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ hash, origin, assets \]
|
* \[ hash, origin, assets \]
|
||||||
**/
|
**/
|
||||||
AssetsClaimed: AugmentedEvent<ApiType, [H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;
|
AssetsClaimed: AugmentedEvent<ApiType, [H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>;
|
||||||
/**
|
/**
|
||||||
* Some assets have been placed in an asset trap.
|
* Some assets have been placed in an asset trap.
|
||||||
*
|
*
|
||||||
* \[ hash, origin, assets \]
|
* \[ hash, origin, assets \]
|
||||||
**/
|
**/
|
||||||
AssetsTrapped: AugmentedEvent<ApiType, [H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;
|
AssetsTrapped: AugmentedEvent<ApiType, [H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>;
|
||||||
/**
|
/**
|
||||||
* Execution of an XCM message was attempted.
|
* Execution of an XCM message was attempted.
|
||||||
*
|
*
|
||||||
* \[ outcome \]
|
* \[ outcome \]
|
||||||
**/
|
**/
|
||||||
Attempted: AugmentedEvent<ApiType, [XcmV2TraitsOutcome]>;
|
Attempted: AugmentedEvent<ApiType, [XcmV3TraitsOutcome]>;
|
||||||
|
/**
|
||||||
|
* Fees were paid from a location for an operation (often for using `SendXcm`).
|
||||||
|
*
|
||||||
|
* \[ paying location, fees \]
|
||||||
|
**/
|
||||||
|
FeesPaid: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||||
|
/**
|
||||||
|
* Expected query response has been received but the querier location of the response does
|
||||||
|
* not match the expected. The query remains registered for a later, valid, response to
|
||||||
|
* be received and acted upon.
|
||||||
|
*
|
||||||
|
* \[ origin location, id, expected querier, maybe actual querier \]
|
||||||
|
**/
|
||||||
|
InvalidQuerier: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, XcmV3MultiLocation, Option<XcmV3MultiLocation>]>;
|
||||||
|
/**
|
||||||
|
* Expected query response has been received but the expected querier location placed in
|
||||||
|
* storage by this runtime previously cannot be decoded. The query remains registered.
|
||||||
|
*
|
||||||
|
* This is unexpected (since a location placed in storage in a previously executing
|
||||||
|
* runtime should be readable prior to query timeout) and dangerous since the possibly
|
||||||
|
* valid response will be dropped. Manual governance intervention is probably going to be
|
||||||
|
* needed.
|
||||||
|
*
|
||||||
|
* \[ origin location, id \]
|
||||||
|
**/
|
||||||
|
InvalidQuerierVersion: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
|
||||||
/**
|
/**
|
||||||
* Expected query response has been received but the origin location of the response does
|
* Expected query response has been received but the origin location of the response does
|
||||||
* not match that expected. The query remains registered for a later, valid, response to
|
* not match that expected. The query remains registered for a later, valid, response to
|
||||||
@@ -1502,7 +1633,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ origin location, id, expected location \]
|
* \[ origin location, id, expected location \]
|
||||||
**/
|
**/
|
||||||
InvalidResponder: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64, Option<XcmV1MultiLocation>]>;
|
InvalidResponder: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, Option<XcmV3MultiLocation>]>;
|
||||||
/**
|
/**
|
||||||
* Expected query response has been received but the expected origin location placed in
|
* Expected query response has been received but the expected origin location placed in
|
||||||
* storage by this runtime previously cannot be decoded. The query remains registered.
|
* storage by this runtime previously cannot be decoded. The query remains registered.
|
||||||
@@ -1514,7 +1645,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ origin location, id \]
|
* \[ origin location, id \]
|
||||||
**/
|
**/
|
||||||
InvalidResponderVersion: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64]>;
|
InvalidResponderVersion: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
|
||||||
/**
|
/**
|
||||||
* Query response has been received and query is removed. The registered notification has
|
* Query response has been received and query is removed. The registered notification has
|
||||||
* been dispatched and executed successfully.
|
* been dispatched and executed successfully.
|
||||||
@@ -1558,14 +1689,14 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ location, query ID, error \]
|
* \[ location, query ID, error \]
|
||||||
**/
|
**/
|
||||||
NotifyTargetSendFail: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64, XcmV2TraitsError]>;
|
NotifyTargetSendFail: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, XcmV3TraitsError]>;
|
||||||
/**
|
/**
|
||||||
* Query response has been received and is ready for taking with `take_response`. There is
|
* Query response has been received and is ready for taking with `take_response`. There is
|
||||||
* no registered notification call.
|
* no registered notification call.
|
||||||
*
|
*
|
||||||
* \[ id, response \]
|
* \[ id, response \]
|
||||||
**/
|
**/
|
||||||
ResponseReady: AugmentedEvent<ApiType, [u64, XcmV2Response]>;
|
ResponseReady: AugmentedEvent<ApiType, [u64, XcmV3Response]>;
|
||||||
/**
|
/**
|
||||||
* Received query response has been read and removed.
|
* Received query response has been read and removed.
|
||||||
*
|
*
|
||||||
@@ -1577,14 +1708,14 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ origin, destination, message \]
|
* \[ origin, destination, message \]
|
||||||
**/
|
**/
|
||||||
Sent: AugmentedEvent<ApiType, [XcmV1MultiLocation, XcmV1MultiLocation, XcmV2Xcm]>;
|
Sent: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiLocation, XcmV3Xcm]>;
|
||||||
/**
|
/**
|
||||||
* The supported version of a location has been changed. This might be through an
|
* The supported version of a location has been changed. This might be through an
|
||||||
* automatic notification or a manual intervention.
|
* automatic notification or a manual intervention.
|
||||||
*
|
*
|
||||||
* \[ location, XCM version \]
|
* \[ location, XCM version \]
|
||||||
**/
|
**/
|
||||||
SupportedVersionChanged: AugmentedEvent<ApiType, [XcmV1MultiLocation, u32]>;
|
SupportedVersionChanged: AugmentedEvent<ApiType, [XcmV3MultiLocation, u32]>;
|
||||||
/**
|
/**
|
||||||
* Query response received which does not match a registered query. This may be because a
|
* Query response received which does not match a registered query. This may be because a
|
||||||
* matching query was never registered, it may be because it is a duplicate response, or
|
* matching query was never registered, it may be because it is a duplicate response, or
|
||||||
@@ -1592,13 +1723,34 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ origin location, id \]
|
* \[ origin location, id \]
|
||||||
**/
|
**/
|
||||||
UnexpectedResponse: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64]>;
|
UnexpectedResponse: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
|
||||||
/**
|
/**
|
||||||
* An XCM version change notification message has been attempted to be sent.
|
* An XCM version change notification message has been attempted to be sent.
|
||||||
*
|
*
|
||||||
* \[ destination, result \]
|
* The cost of sending it (borne by the chain) is included.
|
||||||
|
*
|
||||||
|
* \[ destination, result, cost \]
|
||||||
**/
|
**/
|
||||||
VersionChangeNotified: AugmentedEvent<ApiType, [XcmV1MultiLocation, u32]>;
|
VersionChangeNotified: AugmentedEvent<ApiType, [XcmV3MultiLocation, u32, XcmV3MultiassetMultiAssets]>;
|
||||||
|
/**
|
||||||
|
* We have requested that a remote chain sends us XCM version change notifications.
|
||||||
|
*
|
||||||
|
* \[ destination location, cost \]
|
||||||
|
**/
|
||||||
|
VersionNotifyRequested: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||||
|
/**
|
||||||
|
* A remote has requested XCM version change notification from us and we have honored it.
|
||||||
|
* A version information message is sent to them and its cost is included.
|
||||||
|
*
|
||||||
|
* \[ destination location, cost \]
|
||||||
|
**/
|
||||||
|
VersionNotifyStarted: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||||
|
/**
|
||||||
|
* We have requested that a remote chain stops sending us XCM version change notifications.
|
||||||
|
*
|
||||||
|
* \[ destination location, cost \]
|
||||||
|
**/
|
||||||
|
VersionNotifyUnrequested: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
// Copyright 2017-2022 @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 { Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, 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, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletConvictionVotingVoteVoting, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
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, 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, 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 { 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>;
|
||||||
@@ -53,14 +53,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Author of current block.
|
* Author of current block.
|
||||||
**/
|
**/
|
||||||
author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
|
||||||
* Whether uncles were already set in this block.
|
|
||||||
**/
|
|
||||||
didSetUncles: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
||||||
/**
|
|
||||||
* Uncles
|
|
||||||
**/
|
|
||||||
uncles: AugmentedQuery<ApiType, () => Observable<Vec<PalletAuthorshipUncleEntryItem>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -159,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.
|
||||||
**/
|
**/
|
||||||
@@ -196,6 +199,10 @@ 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]>;
|
||||||
|
/**
|
||||||
|
* The total units of outstanding deactivated balance in the system.
|
||||||
|
**/
|
||||||
|
inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Any liquidity locks on some account balances.
|
* Any liquidity locks on some account balances.
|
||||||
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
||||||
@@ -205,12 +212,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Named reserves on some account balances.
|
* Named reserves on some account balances.
|
||||||
**/
|
**/
|
||||||
reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
|
||||||
* Storage version of the pallet.
|
|
||||||
*
|
|
||||||
* This is set to v2.0.0 for new networks.
|
|
||||||
**/
|
|
||||||
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletBalancesReleases>, []> & QueryableStorageEntry<ApiType, []>;
|
|
||||||
/**
|
/**
|
||||||
* The total units issued in the system.
|
* The total units issued in the system.
|
||||||
**/
|
**/
|
||||||
@@ -413,6 +414,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* `ReferendumCount` if there isn't a unbaked referendum.
|
* `ReferendumCount` if there isn't a unbaked referendum.
|
||||||
**/
|
**/
|
||||||
lowestUnbaked: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
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.
|
* 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:
|
* This happens when a referendum needs to be tabled and one of two conditions are met:
|
||||||
@@ -571,6 +581,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The map of all accounts wishing to be unstaked.
|
* The map of all accounts wishing to be unstaked.
|
||||||
*
|
*
|
||||||
* Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
|
* Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
queue: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
queue: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -612,6 +624,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The number of referenda being decided currently.
|
* The number of referenda being decided currently.
|
||||||
**/
|
**/
|
||||||
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
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.
|
* The next free referendum index, aka the number of referenda started so far.
|
||||||
**/
|
**/
|
||||||
@@ -632,32 +653,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
gilt: {
|
|
||||||
/**
|
|
||||||
* The currently active gilts, indexed according to the order of creation.
|
|
||||||
**/
|
|
||||||
active: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletGiltActiveGilt>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
||||||
/**
|
|
||||||
* Information relating to the gilts currently active.
|
|
||||||
**/
|
|
||||||
activeTotal: AugmentedQuery<ApiType, () => Observable<PalletGiltActiveGiltsTotal>, []> & QueryableStorageEntry<ApiType, []>;
|
|
||||||
/**
|
|
||||||
* The queues of bids ready to become gilts. Indexed by duration (in `Period`s).
|
|
||||||
**/
|
|
||||||
queues: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletGiltGiltBid>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
||||||
/**
|
|
||||||
* The totals of items and balances within each queue. Saves a lot of storage reads in the
|
|
||||||
* case of sparsely packed queues.
|
|
||||||
*
|
|
||||||
* The vector is indexed by duration in `Period`s, offset by one, so information on the queue
|
|
||||||
* whose duration is one `Period` would be storage `0`.
|
|
||||||
**/
|
|
||||||
queueTotals: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u128]>>>, []> & 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)
|
||||||
@@ -676,6 +671,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* A mapping from grandpa set ID to the index of the *most recent* session for which its
|
* A mapping from grandpa set ID to the index of the *most recent* session for which its
|
||||||
* members were responsible.
|
* members were responsible.
|
||||||
*
|
*
|
||||||
|
* This is only used for validating equivocation proofs. An equivocation proof must
|
||||||
|
* contains a key-ownership proof for a given session, therefore we need a way to tie
|
||||||
|
* together sessions and GRANDPA set ids, i.e. we need to validate that a validator
|
||||||
|
* was the owner of a given key on a given session, and what the active set ID was
|
||||||
|
* during that session.
|
||||||
|
*
|
||||||
* TWOX-NOTE: `SetId` is not under user control.
|
* TWOX-NOTE: `SetId` is not under user control.
|
||||||
**/
|
**/
|
||||||
setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
||||||
@@ -887,11 +888,91 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
|
nis: {
|
||||||
|
/**
|
||||||
|
* The queues of bids. Indexed by duration (in `Period`s).
|
||||||
|
**/
|
||||||
|
queues: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletNisBid>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* The totals of items and balances within each queue. Saves a lot of storage reads in the
|
||||||
|
* case of sparsely packed queues.
|
||||||
|
*
|
||||||
|
* The vector is indexed by duration in `Period`s, offset by one, so information on the queue
|
||||||
|
* whose duration is one `Period` would be storage `0`.
|
||||||
|
**/
|
||||||
|
queueTotals: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u128]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* The currently outstanding receipts, indexed according to the order of creation.
|
||||||
|
**/
|
||||||
|
receipts: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNisReceiptRecord>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* Summary information over the general state.
|
||||||
|
**/
|
||||||
|
summary: AugmentedQuery<ApiType, () => Observable<PalletNisSummaryRecord>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Generic query
|
||||||
|
**/
|
||||||
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
|
};
|
||||||
|
nisCounterpartBalances: {
|
||||||
|
/**
|
||||||
|
* The Balances pallet example of storing the balance of an account.
|
||||||
|
*
|
||||||
|
* # Example
|
||||||
|
*
|
||||||
|
* ```nocompile
|
||||||
|
* impl pallet_balances::Config for Runtime {
|
||||||
|
* type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
|
||||||
|
* }
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* You can also store the balance of an account in the `System` pallet.
|
||||||
|
*
|
||||||
|
* # Example
|
||||||
|
*
|
||||||
|
* ```nocompile
|
||||||
|
* impl pallet_balances::Config for Runtime {
|
||||||
|
* type AccountStore = System
|
||||||
|
* }
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* But this comes with tradeoffs, storing account balances in the system pallet stores
|
||||||
|
* `frame_system` data alongside the account data contrary to storing account balances in the
|
||||||
|
* `Balances` pallet, which uses a `StorageMap` to store balances data only.
|
||||||
|
* NOTE: This is only used in the case that this pallet is used to store balances.
|
||||||
|
**/
|
||||||
|
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* The total units of outstanding deactivated balance in the system.
|
||||||
|
**/
|
||||||
|
inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Any liquidity locks on some account balances.
|
||||||
|
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
||||||
|
**/
|
||||||
|
locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* Named reserves on some account balances.
|
||||||
|
**/
|
||||||
|
reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* The total units issued in the system.
|
||||||
|
**/
|
||||||
|
totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Generic query
|
||||||
|
**/
|
||||||
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
|
};
|
||||||
nominationPools: {
|
nominationPools: {
|
||||||
/**
|
/**
|
||||||
* 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
|
||||||
**/
|
**/
|
||||||
@@ -955,6 +1036,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
minJoinBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
minJoinBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Active members.
|
* Active members.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
poolMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletNominationPoolsPoolMember>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
poolMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletNominationPoolsPoolMember>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1097,7 +1180,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* Past code of parachains. The parachains themselves may not be registered anymore,
|
* Past code of parachains. The parachains themselves may not be registered anymore,
|
||||||
* but we also keep their code on-chain for the same amount of time as outdated code
|
* but we also keep their code on-chain for the same amount of time as outdated code
|
||||||
* to keep it available for secondary checkers.
|
* to keep it available for approval checkers.
|
||||||
**/
|
**/
|
||||||
pastCodeMeta: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PolkadotRuntimeParachainsParasParaPastCodeMeta>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
pastCodeMeta: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PolkadotRuntimeParachainsParasParaPastCodeMeta>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1228,6 +1311,11 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
parasDisputes: {
|
parasDisputes: {
|
||||||
|
/**
|
||||||
|
* Backing votes stored for each dispute.
|
||||||
|
* This storage is used for slashing.
|
||||||
|
**/
|
||||||
|
backersOnDisputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<BTreeSet<u32>>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
||||||
/**
|
/**
|
||||||
* All ongoing or concluded disputes for the last several sessions.
|
* All ongoing or concluded disputes for the last several sessions.
|
||||||
**/
|
**/
|
||||||
@@ -1249,14 +1337,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* references sessions.
|
* references sessions.
|
||||||
**/
|
**/
|
||||||
lastPrunedSession: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
lastPrunedSession: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
|
||||||
* Maps session indices to a vector indicating the number of potentially-spam disputes
|
|
||||||
* each validator is participating in. Potentially-spam disputes are remote disputes which have
|
|
||||||
* fewer than `byzantine_threshold + 1` validators.
|
|
||||||
*
|
|
||||||
* The i'th entry of the vector corresponds to the i'th validator in the session.
|
|
||||||
**/
|
|
||||||
spamSlots: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -1277,6 +1357,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The earliest session for which previous session info is stored.
|
* The earliest session for which previous session info is stored.
|
||||||
**/
|
**/
|
||||||
earliestStoredSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
earliestStoredSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Executor parameter set for a given session index
|
||||||
|
**/
|
||||||
|
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesVstagingExecutorParams>>, [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`.
|
||||||
@@ -1400,6 +1484,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The number of referenda being decided currently.
|
* The number of referenda being decided currently.
|
||||||
**/
|
**/
|
||||||
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
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.
|
* The next free referendum index, aka the number of referenda started so far.
|
||||||
**/
|
**/
|
||||||
@@ -1605,6 +1698,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
activeEra: AugmentedQuery<ApiType, () => Observable<Option<PalletStakingActiveEraInfo>>, []> & QueryableStorageEntry<ApiType, []>;
|
activeEra: AugmentedQuery<ApiType, () => Observable<Option<PalletStakingActiveEraInfo>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Map from all locked "stash" accounts to the controller account.
|
* Map from all locked "stash" accounts to the controller account.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
bonded: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<AccountId32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
bonded: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<AccountId32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1732,6 +1827,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* If set to `0`, no limit exists.
|
* If set to `0`, no limit exists.
|
||||||
**/
|
**/
|
||||||
minCommission: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
|
minCommission: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* The minimum active nominator stake of the last successful election.
|
||||||
|
**/
|
||||||
|
minimumActiveStake: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Minimum number of staking participants before emergency conditions are imposed.
|
* Minimum number of staking participants before emergency conditions are imposed.
|
||||||
**/
|
**/
|
||||||
@@ -1761,6 +1860,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
*
|
*
|
||||||
* Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
|
* Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
|
||||||
* [`Call::chill_other`] dispatchable by anyone.
|
* [`Call::chill_other`] dispatchable by anyone.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1781,6 +1882,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Where the reward payment should be made. Keyed by stash.
|
* Where the reward payment should be made. Keyed by stash.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingRewardDestination>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingRewardDestination>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1798,13 +1901,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* as well as how much reward has been paid out.
|
* as well as how much reward has been paid out.
|
||||||
**/
|
**/
|
||||||
spanSlash: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<PalletStakingSlashingSpanRecord>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[AccountId32, u32]>]>;
|
spanSlash: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<PalletStakingSlashingSpanRecord>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[AccountId32, u32]>]>;
|
||||||
/**
|
|
||||||
* True if network has been upgraded to this version.
|
|
||||||
* Storage version of the pallet.
|
|
||||||
*
|
|
||||||
* This is set to v7.0.0 for new networks.
|
|
||||||
**/
|
|
||||||
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletStakingReleases>, []> & QueryableStorageEntry<ApiType, []>;
|
|
||||||
/**
|
/**
|
||||||
* All unapplied slashes that are queued for later.
|
* All unapplied slashes that are queued for later.
|
||||||
**/
|
**/
|
||||||
@@ -1815,6 +1911,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The map from (wannabe) validator stash key to the preferences of that validator.
|
* The map from (wannabe) validator stash key to the preferences of that validator.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
validators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
validators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -2001,6 +2099,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Proposal indices that have been approved but not yet awarded.
|
* Proposal indices that have been approved but not yet awarded.
|
||||||
**/
|
**/
|
||||||
approvals: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
approvals: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* The amount which has been reported as inactive to Currency.
|
||||||
|
**/
|
||||||
|
deactivated: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Number of proposals that have been made.
|
* Number of proposals that have been made.
|
||||||
**/
|
**/
|
||||||
@@ -2015,6 +2117,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
ump: {
|
ump: {
|
||||||
|
/**
|
||||||
|
* Counter for the related counted storage map
|
||||||
|
**/
|
||||||
|
counterForOverweight: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The ordered list of `ParaId`s that have a `RelayDispatchQueue` entry.
|
* The ordered list of `ParaId`s that have a `RelayDispatchQueue` entry.
|
||||||
*
|
*
|
||||||
@@ -2127,6 +2233,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The current migration's stage, if any.
|
* The current migration's stage, if any.
|
||||||
**/
|
**/
|
||||||
currentMigration: AugmentedQuery<ApiType, () => Observable<Option<PalletXcmVersionMigrationStage>>, []> & QueryableStorageEntry<ApiType, []>;
|
currentMigration: AugmentedQuery<ApiType, () => Observable<Option<PalletXcmVersionMigrationStage>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Fungible assets which we know are locked on this chain.
|
||||||
|
**/
|
||||||
|
lockedFungibles: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Vec<ITuple<[u128, XcmVersionedMultiLocation]>>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* The ongoing queries.
|
* The ongoing queries.
|
||||||
**/
|
**/
|
||||||
@@ -2135,6 +2245,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The latest available query index.
|
* The latest available query index.
|
||||||
**/
|
**/
|
||||||
queryCounter: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
queryCounter: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Fungible assets which we know are locked on a remote chain.
|
||||||
|
**/
|
||||||
|
remoteLockedFungibles: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: XcmVersionedAssetId | { V3: any } | string | Uint8Array) => Observable<Option<PalletXcmRemoteLockedFungibleRecord>>, [u32, AccountId32, XcmVersionedAssetId]> & QueryableStorageEntry<ApiType, [u32, AccountId32, XcmVersionedAssetId]>;
|
||||||
/**
|
/**
|
||||||
* Default version to encode XCM when latest version of destination is unknown. If `None`,
|
* Default version to encode XCM when latest version of destination is unknown. If `None`,
|
||||||
* then the destinations whose XCM version is unknown are considered unreachable.
|
* then the destinations whose XCM version is unknown are considered unreachable.
|
||||||
@@ -2143,7 +2257,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* The Latest versions that we know various locations support.
|
* The Latest versions that we know various locations support.
|
||||||
**/
|
**/
|
||||||
supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array) => Observable<Option<u32>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<u32>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
||||||
/**
|
/**
|
||||||
* Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
|
* Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
|
||||||
* the `u32` counter is the number of times that a send to the destination has been attempted,
|
* the `u32` counter is the number of times that a send to the destination has been attempted,
|
||||||
@@ -2153,12 +2267,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* All locations that we have requested version notifications from.
|
* All locations that we have requested version notifications from.
|
||||||
**/
|
**/
|
||||||
versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array) => Observable<Option<u64>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<u64>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
||||||
/**
|
/**
|
||||||
* The target locations that are subscribed to our version changes, as well as the most recent
|
* The target locations that are subscribed to our version changes, as well as the most recent
|
||||||
* of our versions we informed them of.
|
* of our versions we informed them of.
|
||||||
**/
|
**/
|
||||||
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array) => Observable<Option<ITuple<[u64, u64, u32]>>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @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 '@polkadot/types-augment/registry/substrate';
|
import '@polkadot/types-augment/registry/substrate';
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-b
|
|||||||
import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec';
|
import type { 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';
|
||||||
@@ -17,9 +17,10 @@ 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, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
||||||
|
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||||
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 { CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, 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 } 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
|
||||||
**/
|
**/
|
||||||
@@ -171,7 +184,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[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 a series of leaves under given indices.
|
||||||
@@ -208,10 +221,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
|
||||||
**/
|
**/
|
||||||
@@ -322,6 +343,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: {
|
||||||
/**
|
/**
|
||||||
@@ -333,7 +365,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0x37c8bb1350a9a2a8/2 */
|
/** 0x37c8bb1350a9a2a8/3 */
|
||||||
transactionPaymentApi: {
|
transactionPaymentApi: {
|
||||||
/**
|
/**
|
||||||
* The transaction fee details
|
* The transaction fee details
|
||||||
@@ -343,12 +375,20 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
* The transaction info
|
* The transaction info
|
||||||
**/
|
**/
|
||||||
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
||||||
|
/**
|
||||||
|
* Query the output of the current LengthToFee given some input
|
||||||
|
**/
|
||||||
|
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||||
|
/**
|
||||||
|
* Query the output of the current WeightToFee given some input
|
||||||
|
**/
|
||||||
|
queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;
|
||||||
/**
|
/**
|
||||||
* Generic call
|
* Generic call
|
||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0xf3ff14d5ab527059/2 */
|
/** 0xf3ff14d5ab527059/3 */
|
||||||
transactionPaymentCallApi: {
|
transactionPaymentCallApi: {
|
||||||
/**
|
/**
|
||||||
* The call fee details
|
* The call fee details
|
||||||
@@ -358,6 +398,14 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
* The call info
|
* The call info
|
||||||
**/
|
**/
|
||||||
queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
||||||
|
/**
|
||||||
|
* Query the output of the current LengthToFee given some input
|
||||||
|
**/
|
||||||
|
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||||
|
/**
|
||||||
|
* Query the output of the current WeightToFee given some input
|
||||||
|
**/
|
||||||
|
queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;
|
||||||
/**
|
/**
|
||||||
* Generic call
|
* Generic call
|
||||||
**/
|
**/
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @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';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2022 @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
|
||||||
|
|
||||||
// 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.8.1' };
|
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '10.1.1' };
|
||||||
|
|||||||
@@ -33,18 +33,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
authorship: {
|
|
||||||
/**
|
|
||||||
* The number of blocks back we should accept uncles.
|
|
||||||
* This means that we will deal with uncle-parents that are
|
|
||||||
* `UncleGenerations + 1` before `now`.
|
|
||||||
**/
|
|
||||||
uncleGenerations: u32 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
|
||||||
* Generic const
|
|
||||||
**/
|
|
||||||
[key: string]: Codec;
|
|
||||||
};
|
|
||||||
babe: {
|
babe: {
|
||||||
/**
|
/**
|
||||||
* The amount of time, in slots, that each epoch should last.
|
* The amount of time, in slots, that each epoch should last.
|
||||||
@@ -334,11 +322,31 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
|
fastUnstake: {
|
||||||
|
/**
|
||||||
|
* Deposit to take for unstaking, to make sure we're able to slash the it in order to cover
|
||||||
|
* the costs of resources on unsuccessful unstake.
|
||||||
|
**/
|
||||||
|
deposit: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic const
|
||||||
|
**/
|
||||||
|
[key: string]: Codec;
|
||||||
|
};
|
||||||
grandpa: {
|
grandpa: {
|
||||||
/**
|
/**
|
||||||
* Max Authorities in use
|
* Max Authorities in use
|
||||||
**/
|
**/
|
||||||
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum number of entries to keep in the set id to session index mapping.
|
||||||
|
*
|
||||||
|
* Since the `SetIdSession` map is only used for validating equivocations this
|
||||||
|
* value should relate to the bonding duration of whatever staking system is
|
||||||
|
* being used (if any). If equivocation handling is not enabled then this value
|
||||||
|
* can be zero.
|
||||||
|
**/
|
||||||
|
maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic const
|
* Generic const
|
||||||
**/
|
**/
|
||||||
@@ -474,18 +482,28 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
/**
|
/**
|
||||||
* The maximum number of candidates in a phragmen election.
|
* The maximum number of candidates in a phragmen election.
|
||||||
*
|
*
|
||||||
* Warning: The election happens onchain, and this value will determine
|
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
||||||
* the size of the election. When this limit is reached no more
|
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
||||||
* candidates are accepted in the election.
|
*
|
||||||
|
* When this limit is reached no more candidates are accepted in the election.
|
||||||
**/
|
**/
|
||||||
maxCandidates: u32 & AugmentedConst<ApiType>;
|
maxCandidates: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The maximum number of voters to allow in a phragmen election.
|
* The maximum number of voters to allow in a phragmen election.
|
||||||
*
|
*
|
||||||
* Warning: This impacts the size of the election which is run onchain.
|
* 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.
|
* When the limit is reached the new voters are ignored.
|
||||||
**/
|
**/
|
||||||
maxVoters: u32 & AugmentedConst<ApiType>;
|
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
|
* Identifier for the elections-phragmen pallet's lock
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -45,40 +45,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
authorship: {
|
|
||||||
/**
|
|
||||||
* The uncle is genesis.
|
|
||||||
**/
|
|
||||||
GenesisUncle: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* The uncle parent not in the chain.
|
|
||||||
**/
|
|
||||||
InvalidUncleParent: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* The uncle isn't recent enough to be included.
|
|
||||||
**/
|
|
||||||
OldUncle: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* The uncle is too high in chain.
|
|
||||||
**/
|
|
||||||
TooHighUncle: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Too many uncles.
|
|
||||||
**/
|
|
||||||
TooManyUncles: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* The uncle is already included.
|
|
||||||
**/
|
|
||||||
UncleAlreadyIncluded: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Uncles already set in the block.
|
|
||||||
**/
|
|
||||||
UnclesAlreadySet: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Generic error
|
|
||||||
**/
|
|
||||||
[key: string]: AugmentedError<ApiType>;
|
|
||||||
};
|
|
||||||
babe: {
|
babe: {
|
||||||
/**
|
/**
|
||||||
* A given equivocation report is valid but already previously reported.
|
* A given equivocation report is valid but already previously reported.
|
||||||
@@ -115,7 +81,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
ExistingVestingSchedule: AugmentedError<ApiType>;
|
ExistingVestingSchedule: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Balance too low to send value
|
* Balance too low to send value.
|
||||||
**/
|
**/
|
||||||
InsufficientBalance: AugmentedError<ApiType>;
|
InsufficientBalance: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -454,6 +420,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The given account did not vote on the referendum.
|
* The given account did not vote on the referendum.
|
||||||
**/
|
**/
|
||||||
NotVoter: AugmentedError<ApiType>;
|
NotVoter: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The preimage does not exist.
|
||||||
|
**/
|
||||||
|
PreimageNotExist: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Proposal still blacklisted
|
* Proposal still blacklisted
|
||||||
**/
|
**/
|
||||||
@@ -890,6 +860,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.
|
||||||
**/
|
**/
|
||||||
@@ -1223,13 +1197,21 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
InvalidSignature: AugmentedError<ApiType>;
|
InvalidSignature: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Too many spam slots used by some specific validator.
|
* A dispute vote from a malicious backer.
|
||||||
**/
|
**/
|
||||||
PotentialSpam: AugmentedError<ApiType>;
|
MaliciousBacker: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* No backing votes were provides along dispute statements.
|
||||||
|
**/
|
||||||
|
MissingBackingVotes: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* A dispute where there are only votes on one side.
|
* A dispute where there are only votes on one side.
|
||||||
**/
|
**/
|
||||||
SingleSidedDispute: AugmentedError<ApiType>;
|
SingleSidedDispute: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Unconfirmed dispute statement sets provided.
|
||||||
|
**/
|
||||||
|
UnconfirmedDispute: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Validator index on statement is out of bounds for session.
|
* Validator index on statement is out of bounds for session.
|
||||||
**/
|
**/
|
||||||
@@ -1837,6 +1819,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
xcmPallet: {
|
xcmPallet: {
|
||||||
|
/**
|
||||||
|
* The given account is not an identifiable sovereign account for any location.
|
||||||
|
**/
|
||||||
|
AccountNotSovereign: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The location is invalid since it already has a subscription from us.
|
* The location is invalid since it already has a subscription from us.
|
||||||
**/
|
**/
|
||||||
@@ -1862,14 +1848,34 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The assets to be sent are empty.
|
* The assets to be sent are empty.
|
||||||
**/
|
**/
|
||||||
Empty: AugmentedError<ApiType>;
|
Empty: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The operation required fees to be paid which the initiator could not meet.
|
||||||
|
**/
|
||||||
|
FeesNotMet: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The message execution fails the filter.
|
* The message execution fails the filter.
|
||||||
**/
|
**/
|
||||||
Filtered: AugmentedError<ApiType>;
|
Filtered: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The unlock operation cannot succeed because there are still users of the lock.
|
||||||
|
**/
|
||||||
|
InUse: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Invalid asset for the operation.
|
||||||
|
**/
|
||||||
|
InvalidAsset: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Origin is invalid for sending.
|
* Origin is invalid for sending.
|
||||||
**/
|
**/
|
||||||
InvalidOrigin: AugmentedError<ApiType>;
|
InvalidOrigin: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* A remote lock with the corresponding data could not be found.
|
||||||
|
**/
|
||||||
|
LockNotFound: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The owner does not own (all) of the asset that they wish to do the operation on.
|
||||||
|
**/
|
||||||
|
LowBalance: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The referenced subscription could not be found.
|
* The referenced subscription could not be found.
|
||||||
**/
|
**/
|
||||||
@@ -1883,6 +1889,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Too many assets have been attempted for transfer.
|
* Too many assets have been attempted for transfer.
|
||||||
**/
|
**/
|
||||||
TooManyAssets: AugmentedError<ApiType>;
|
TooManyAssets: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The asset owner has too many locks on the asset.
|
||||||
|
**/
|
||||||
|
TooManyLocks: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The desired destination was unreachable, generally because there is a no way of routing
|
* The desired destination was unreachable, generally because there is a no way of routing
|
||||||
* to it.
|
* to it.
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ 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 { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, H256, Perbill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpWeightsWeightV2Weight, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, 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>;
|
||||||
|
|
||||||
@@ -267,6 +267,18 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* An external proposal has been tabled.
|
* An external proposal has been tabled.
|
||||||
**/
|
**/
|
||||||
ExternalTabled: AugmentedEvent<ApiType, []>;
|
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.
|
* A proposal has been rejected by referendum.
|
||||||
**/
|
**/
|
||||||
@@ -323,14 +335,14 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* The election has been finalized, with the given computation and score.
|
* The election has been finalized, with the given computation and score.
|
||||||
**/
|
**/
|
||||||
ElectionFinalized: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore], { compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore }>;
|
ElectionFinalized: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore], { compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore }>;
|
||||||
|
/**
|
||||||
|
* There was a phase transition in a given round.
|
||||||
|
**/
|
||||||
|
PhaseTransitioned: AugmentedEvent<ApiType, [from: PalletElectionProviderMultiPhasePhase, to: PalletElectionProviderMultiPhasePhase, round: u32], { from: PalletElectionProviderMultiPhasePhase, to: PalletElectionProviderMultiPhasePhase, round: u32 }>;
|
||||||
/**
|
/**
|
||||||
* An account has been rewarded for their signed submission being finalized.
|
* An account has been rewarded for their signed submission being finalized.
|
||||||
**/
|
**/
|
||||||
Rewarded: AugmentedEvent<ApiType, [account: AccountId32, value: u128], { account: AccountId32, value: u128 }>;
|
Rewarded: AugmentedEvent<ApiType, [account: AccountId32, value: u128], { account: AccountId32, value: u128 }>;
|
||||||
/**
|
|
||||||
* The signed phase of the given round has started.
|
|
||||||
**/
|
|
||||||
SignedPhaseStarted: AugmentedEvent<ApiType, [round: u32], { round: u32 }>;
|
|
||||||
/**
|
/**
|
||||||
* An account has been slashed for submitting an invalid signed submission.
|
* An account has been slashed for submitting an invalid signed submission.
|
||||||
**/
|
**/
|
||||||
@@ -338,16 +350,13 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* A solution was stored with the given compute.
|
* A solution was stored with the given compute.
|
||||||
*
|
*
|
||||||
* If the solution is signed, this means that it hasn't yet been processed. If the
|
* The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,
|
||||||
* solution is unsigned, this means that it has also been processed.
|
* the stored solution was submited in the signed phase by a miner with the `AccountId`.
|
||||||
*
|
* Otherwise, the solution was stored either during the unsigned phase or by
|
||||||
* The `bool` is `true` when a previous solution was ejected to make room for this one.
|
* `T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make
|
||||||
|
* room for this one.
|
||||||
**/
|
**/
|
||||||
SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool], { compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool }>;
|
SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, origin: Option<AccountId32>, prevEjected: bool], { compute: PalletElectionProviderMultiPhaseElectionCompute, origin: Option<AccountId32>, prevEjected: bool }>;
|
||||||
/**
|
|
||||||
* The unsigned phase of the given round has started.
|
|
||||||
**/
|
|
||||||
UnsignedPhaseStarted: AugmentedEvent<ApiType, [round: u32], { round: u32 }>;
|
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
@@ -359,17 +368,12 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
BatchChecked: AugmentedEvent<ApiType, [eras: Vec<u32>], { eras: Vec<u32> }>;
|
BatchChecked: AugmentedEvent<ApiType, [eras: Vec<u32>], { eras: Vec<u32> }>;
|
||||||
/**
|
/**
|
||||||
* A batch was terminated.
|
* A batch of a given size was terminated.
|
||||||
*
|
*
|
||||||
* This is always follows by a number of `Unstaked` or `Slashed` events, marking the end
|
* This is always follows by a number of `Unstaked` or `Slashed` events, marking the end
|
||||||
* of the batch. A new batch will be created upon next block.
|
* of the batch. A new batch will be created upon next block.
|
||||||
**/
|
**/
|
||||||
BatchFinished: AugmentedEvent<ApiType, []>;
|
BatchFinished: AugmentedEvent<ApiType, [size_: u32], { size_: u32 }>;
|
||||||
/**
|
|
||||||
* Some internal error happened while migrating stash. They are removed as head as a
|
|
||||||
* consequence.
|
|
||||||
**/
|
|
||||||
Errored: AugmentedEvent<ApiType, [stash: AccountId32], { stash: AccountId32 }>;
|
|
||||||
/**
|
/**
|
||||||
* An internal error happened. Operations will be paused now.
|
* An internal error happened. Operations will be paused now.
|
||||||
**/
|
**/
|
||||||
@@ -391,7 +395,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.
|
||||||
**/
|
**/
|
||||||
@@ -570,7 +574,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
|
||||||
**/
|
**/
|
||||||
@@ -876,6 +880,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* the remainder from the maximum amount of reward.
|
* the remainder from the maximum amount of reward.
|
||||||
**/
|
**/
|
||||||
EraPaid: AugmentedEvent<ApiType, [eraIndex: u32, validatorPayout: u128, remainder: u128], { eraIndex: u32, validatorPayout: u128, remainder: u128 }>;
|
EraPaid: AugmentedEvent<ApiType, [eraIndex: u32, validatorPayout: u128, remainder: u128], { eraIndex: u32, validatorPayout: u128, remainder: u128 }>;
|
||||||
|
/**
|
||||||
|
* A new force era mode was set.
|
||||||
|
**/
|
||||||
|
ForceEra: AugmentedEvent<ApiType, [mode: PalletStakingForcing], { mode: PalletStakingForcing }>;
|
||||||
/**
|
/**
|
||||||
* A nominator has been kicked from a validator.
|
* A nominator has been kicked from a validator.
|
||||||
**/
|
**/
|
||||||
@@ -894,9 +902,14 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
Rewarded: AugmentedEvent<ApiType, [stash: AccountId32, amount: u128], { stash: AccountId32, amount: u128 }>;
|
Rewarded: AugmentedEvent<ApiType, [stash: AccountId32, amount: u128], { stash: AccountId32, amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* One staker (and potentially its nominators) has been slashed by the given amount.
|
* A staker (validator or nominator) has been slashed by the given amount.
|
||||||
**/
|
**/
|
||||||
Slashed: AugmentedEvent<ApiType, [staker: AccountId32, amount: u128], { staker: AccountId32, amount: u128 }>;
|
Slashed: AugmentedEvent<ApiType, [staker: AccountId32, amount: u128], { staker: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* A slash for the given validator, for the given percentage of their stake, at the given
|
||||||
|
* era as been reported.
|
||||||
|
**/
|
||||||
|
SlashReported: AugmentedEvent<ApiType, [validator: AccountId32, fraction: Perbill, slashEra: u32], { validator: AccountId32, fraction: Perbill, slashEra: u32 }>;
|
||||||
/**
|
/**
|
||||||
* A new set of stakers was elected.
|
* A new set of stakers was elected.
|
||||||
**/
|
**/
|
||||||
@@ -1089,6 +1102,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* We have ended a spend period and will now allocate funds.
|
* We have ended a spend period and will now allocate funds.
|
||||||
**/
|
**/
|
||||||
Spending: AugmentedEvent<ApiType, [budgetRemaining: u128], { budgetRemaining: u128 }>;
|
Spending: AugmentedEvent<ApiType, [budgetRemaining: u128], { budgetRemaining: u128 }>;
|
||||||
|
/**
|
||||||
|
* The inactive funds of the pallet have been updated.
|
||||||
|
**/
|
||||||
|
UpdatedInactive: AugmentedEvent<ApiType, [reactivated: u128, deactivated: u128], { reactivated: u128, deactivated: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
@@ -1099,7 +1116,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* Upward message executed with the given outcome.
|
* Upward message executed with the given outcome.
|
||||||
* \[ id, outcome \]
|
* \[ id, outcome \]
|
||||||
**/
|
**/
|
||||||
ExecutedUpward: AugmentedEvent<ApiType, [U8aFixed, XcmV2TraitsOutcome]>;
|
ExecutedUpward: AugmentedEvent<ApiType, [U8aFixed, XcmV3TraitsOutcome]>;
|
||||||
/**
|
/**
|
||||||
* Upward message is invalid XCM.
|
* Upward message is invalid XCM.
|
||||||
* \[ id \]
|
* \[ id \]
|
||||||
@@ -1207,19 +1224,45 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ hash, origin, assets \]
|
* \[ hash, origin, assets \]
|
||||||
**/
|
**/
|
||||||
AssetsClaimed: AugmentedEvent<ApiType, [H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;
|
AssetsClaimed: AugmentedEvent<ApiType, [H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>;
|
||||||
/**
|
/**
|
||||||
* Some assets have been placed in an asset trap.
|
* Some assets have been placed in an asset trap.
|
||||||
*
|
*
|
||||||
* \[ hash, origin, assets \]
|
* \[ hash, origin, assets \]
|
||||||
**/
|
**/
|
||||||
AssetsTrapped: AugmentedEvent<ApiType, [H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;
|
AssetsTrapped: AugmentedEvent<ApiType, [H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>;
|
||||||
/**
|
/**
|
||||||
* Execution of an XCM message was attempted.
|
* Execution of an XCM message was attempted.
|
||||||
*
|
*
|
||||||
* \[ outcome \]
|
* \[ outcome \]
|
||||||
**/
|
**/
|
||||||
Attempted: AugmentedEvent<ApiType, [XcmV2TraitsOutcome]>;
|
Attempted: AugmentedEvent<ApiType, [XcmV3TraitsOutcome]>;
|
||||||
|
/**
|
||||||
|
* Fees were paid from a location for an operation (often for using `SendXcm`).
|
||||||
|
*
|
||||||
|
* \[ paying location, fees \]
|
||||||
|
**/
|
||||||
|
FeesPaid: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||||
|
/**
|
||||||
|
* Expected query response has been received but the querier location of the response does
|
||||||
|
* not match the expected. The query remains registered for a later, valid, response to
|
||||||
|
* be received and acted upon.
|
||||||
|
*
|
||||||
|
* \[ origin location, id, expected querier, maybe actual querier \]
|
||||||
|
**/
|
||||||
|
InvalidQuerier: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, XcmV3MultiLocation, Option<XcmV3MultiLocation>]>;
|
||||||
|
/**
|
||||||
|
* Expected query response has been received but the expected querier location placed in
|
||||||
|
* storage by this runtime previously cannot be decoded. The query remains registered.
|
||||||
|
*
|
||||||
|
* This is unexpected (since a location placed in storage in a previously executing
|
||||||
|
* runtime should be readable prior to query timeout) and dangerous since the possibly
|
||||||
|
* valid response will be dropped. Manual governance intervention is probably going to be
|
||||||
|
* needed.
|
||||||
|
*
|
||||||
|
* \[ origin location, id \]
|
||||||
|
**/
|
||||||
|
InvalidQuerierVersion: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
|
||||||
/**
|
/**
|
||||||
* Expected query response has been received but the origin location of the response does
|
* Expected query response has been received but the origin location of the response does
|
||||||
* not match that expected. The query remains registered for a later, valid, response to
|
* not match that expected. The query remains registered for a later, valid, response to
|
||||||
@@ -1227,7 +1270,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ origin location, id, expected location \]
|
* \[ origin location, id, expected location \]
|
||||||
**/
|
**/
|
||||||
InvalidResponder: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64, Option<XcmV1MultiLocation>]>;
|
InvalidResponder: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, Option<XcmV3MultiLocation>]>;
|
||||||
/**
|
/**
|
||||||
* Expected query response has been received but the expected origin location placed in
|
* Expected query response has been received but the expected origin location placed in
|
||||||
* storage by this runtime previously cannot be decoded. The query remains registered.
|
* storage by this runtime previously cannot be decoded. The query remains registered.
|
||||||
@@ -1239,7 +1282,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ origin location, id \]
|
* \[ origin location, id \]
|
||||||
**/
|
**/
|
||||||
InvalidResponderVersion: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64]>;
|
InvalidResponderVersion: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
|
||||||
/**
|
/**
|
||||||
* Query response has been received and query is removed. The registered notification has
|
* Query response has been received and query is removed. The registered notification has
|
||||||
* been dispatched and executed successfully.
|
* been dispatched and executed successfully.
|
||||||
@@ -1283,14 +1326,14 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ location, query ID, error \]
|
* \[ location, query ID, error \]
|
||||||
**/
|
**/
|
||||||
NotifyTargetSendFail: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64, XcmV2TraitsError]>;
|
NotifyTargetSendFail: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, XcmV3TraitsError]>;
|
||||||
/**
|
/**
|
||||||
* Query response has been received and is ready for taking with `take_response`. There is
|
* Query response has been received and is ready for taking with `take_response`. There is
|
||||||
* no registered notification call.
|
* no registered notification call.
|
||||||
*
|
*
|
||||||
* \[ id, response \]
|
* \[ id, response \]
|
||||||
**/
|
**/
|
||||||
ResponseReady: AugmentedEvent<ApiType, [u64, XcmV2Response]>;
|
ResponseReady: AugmentedEvent<ApiType, [u64, XcmV3Response]>;
|
||||||
/**
|
/**
|
||||||
* Received query response has been read and removed.
|
* Received query response has been read and removed.
|
||||||
*
|
*
|
||||||
@@ -1302,14 +1345,14 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ origin, destination, message \]
|
* \[ origin, destination, message \]
|
||||||
**/
|
**/
|
||||||
Sent: AugmentedEvent<ApiType, [XcmV1MultiLocation, XcmV1MultiLocation, XcmV2Xcm]>;
|
Sent: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiLocation, XcmV3Xcm]>;
|
||||||
/**
|
/**
|
||||||
* The supported version of a location has been changed. This might be through an
|
* The supported version of a location has been changed. This might be through an
|
||||||
* automatic notification or a manual intervention.
|
* automatic notification or a manual intervention.
|
||||||
*
|
*
|
||||||
* \[ location, XCM version \]
|
* \[ location, XCM version \]
|
||||||
**/
|
**/
|
||||||
SupportedVersionChanged: AugmentedEvent<ApiType, [XcmV1MultiLocation, u32]>;
|
SupportedVersionChanged: AugmentedEvent<ApiType, [XcmV3MultiLocation, u32]>;
|
||||||
/**
|
/**
|
||||||
* Query response received which does not match a registered query. This may be because a
|
* Query response received which does not match a registered query. This may be because a
|
||||||
* matching query was never registered, it may be because it is a duplicate response, or
|
* matching query was never registered, it may be because it is a duplicate response, or
|
||||||
@@ -1317,13 +1360,34 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ origin location, id \]
|
* \[ origin location, id \]
|
||||||
**/
|
**/
|
||||||
UnexpectedResponse: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64]>;
|
UnexpectedResponse: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
|
||||||
/**
|
/**
|
||||||
* An XCM version change notification message has been attempted to be sent.
|
* An XCM version change notification message has been attempted to be sent.
|
||||||
*
|
*
|
||||||
* \[ destination, result \]
|
* The cost of sending it (borne by the chain) is included.
|
||||||
|
*
|
||||||
|
* \[ destination, result, cost \]
|
||||||
**/
|
**/
|
||||||
VersionChangeNotified: AugmentedEvent<ApiType, [XcmV1MultiLocation, u32]>;
|
VersionChangeNotified: AugmentedEvent<ApiType, [XcmV3MultiLocation, u32, XcmV3MultiassetMultiAssets]>;
|
||||||
|
/**
|
||||||
|
* We have requested that a remote chain sends us XCM version change notifications.
|
||||||
|
*
|
||||||
|
* \[ destination location, cost \]
|
||||||
|
**/
|
||||||
|
VersionNotifyRequested: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||||
|
/**
|
||||||
|
* A remote has requested XCM version change notification from us and we have honored it.
|
||||||
|
* A version information message is sent to them and its cost is included.
|
||||||
|
*
|
||||||
|
* \[ destination location, cost \]
|
||||||
|
**/
|
||||||
|
VersionNotifyStarted: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||||
|
/**
|
||||||
|
* We have requested that a remote chain stops sending us XCM version change notifications.
|
||||||
|
*
|
||||||
|
* \[ destination location, cost \]
|
||||||
|
**/
|
||||||
|
VersionNotifyUnrequested: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
// Copyright 2017-2022 @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 { 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, 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, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, 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, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
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, PalletNominationPoolsClaimPermission, 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 { 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>;
|
||||||
@@ -53,14 +53,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Author of current block.
|
* Author of current block.
|
||||||
**/
|
**/
|
||||||
author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
|
||||||
* Whether uncles were already set in this block.
|
|
||||||
**/
|
|
||||||
didSetUncles: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
||||||
/**
|
|
||||||
* Uncles
|
|
||||||
**/
|
|
||||||
uncles: AugmentedQuery<ApiType, () => Observable<Vec<PalletAuthorshipUncleEntryItem>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -159,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.
|
||||||
**/
|
**/
|
||||||
@@ -196,6 +199,10 @@ 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]>;
|
||||||
|
/**
|
||||||
|
* The total units of outstanding deactivated balance in the system.
|
||||||
|
**/
|
||||||
|
inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Any liquidity locks on some account balances.
|
* Any liquidity locks on some account balances.
|
||||||
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
||||||
@@ -205,12 +212,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Named reserves on some account balances.
|
* Named reserves on some account balances.
|
||||||
**/
|
**/
|
||||||
reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
|
||||||
* Storage version of the pallet.
|
|
||||||
*
|
|
||||||
* This is set to v2.0.0 for new networks.
|
|
||||||
**/
|
|
||||||
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletBalancesReleases>, []> & QueryableStorageEntry<ApiType, []>;
|
|
||||||
/**
|
/**
|
||||||
* The total units issued in the system.
|
* The total units issued in the system.
|
||||||
**/
|
**/
|
||||||
@@ -396,6 +397,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* `ReferendumCount` if there isn't a unbaked referendum.
|
* `ReferendumCount` if there isn't a unbaked referendum.
|
||||||
**/
|
**/
|
||||||
lowestUnbaked: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
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.
|
* 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:
|
* This happens when a referendum needs to be tabled and one of two conditions are met:
|
||||||
@@ -554,6 +564,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The map of all accounts wishing to be unstaked.
|
* The map of all accounts wishing to be unstaked.
|
||||||
*
|
*
|
||||||
* Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
|
* Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
queue: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
queue: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -579,6 +591,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* A mapping from grandpa set ID to the index of the *most recent* session for which its
|
* A mapping from grandpa set ID to the index of the *most recent* session for which its
|
||||||
* members were responsible.
|
* members were responsible.
|
||||||
*
|
*
|
||||||
|
* This is only used for validating equivocation proofs. An equivocation proof must
|
||||||
|
* contains a key-ownership proof for a given session, therefore we need a way to tie
|
||||||
|
* together sessions and GRANDPA set ids, i.e. we need to validate that a validator
|
||||||
|
* was the owner of a given key on a given session, and what the active set ID was
|
||||||
|
* during that session.
|
||||||
|
*
|
||||||
* TWOX-NOTE: `SetId` is not under user control.
|
* TWOX-NOTE: `SetId` is not under user control.
|
||||||
**/
|
**/
|
||||||
setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
||||||
@@ -795,6 +813,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
|
||||||
**/
|
**/
|
||||||
@@ -858,6 +880,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
minJoinBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
minJoinBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Active members.
|
* Active members.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
poolMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletNominationPoolsPoolMember>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
poolMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletNominationPoolsPoolMember>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1000,7 +1024,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* Past code of parachains. The parachains themselves may not be registered anymore,
|
* Past code of parachains. The parachains themselves may not be registered anymore,
|
||||||
* but we also keep their code on-chain for the same amount of time as outdated code
|
* but we also keep their code on-chain for the same amount of time as outdated code
|
||||||
* to keep it available for secondary checkers.
|
* to keep it available for approval checkers.
|
||||||
**/
|
**/
|
||||||
pastCodeMeta: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PolkadotRuntimeParachainsParasParaPastCodeMeta>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
pastCodeMeta: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PolkadotRuntimeParachainsParasParaPastCodeMeta>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1131,6 +1155,11 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
parasDisputes: {
|
parasDisputes: {
|
||||||
|
/**
|
||||||
|
* Backing votes stored for each dispute.
|
||||||
|
* This storage is used for slashing.
|
||||||
|
**/
|
||||||
|
backersOnDisputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<BTreeSet<u32>>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
||||||
/**
|
/**
|
||||||
* All ongoing or concluded disputes for the last several sessions.
|
* All ongoing or concluded disputes for the last several sessions.
|
||||||
**/
|
**/
|
||||||
@@ -1152,14 +1181,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* references sessions.
|
* references sessions.
|
||||||
**/
|
**/
|
||||||
lastPrunedSession: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
lastPrunedSession: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
|
||||||
* Maps session indices to a vector indicating the number of potentially-spam disputes
|
|
||||||
* each validator is participating in. Potentially-spam disputes are remote disputes which have
|
|
||||||
* fewer than `byzantine_threshold + 1` validators.
|
|
||||||
*
|
|
||||||
* The i'th entry of the vector corresponds to the i'th validator in the session.
|
|
||||||
**/
|
|
||||||
spamSlots: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -1180,6 +1201,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The earliest session for which previous session info is stored.
|
* The earliest session for which previous session info is stored.
|
||||||
**/
|
**/
|
||||||
earliestStoredSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
earliestStoredSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Executor parameter set for a given session index
|
||||||
|
**/
|
||||||
|
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesVstagingExecutorParams>>, [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`.
|
||||||
@@ -1389,6 +1414,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
activeEra: AugmentedQuery<ApiType, () => Observable<Option<PalletStakingActiveEraInfo>>, []> & QueryableStorageEntry<ApiType, []>;
|
activeEra: AugmentedQuery<ApiType, () => Observable<Option<PalletStakingActiveEraInfo>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Map from all locked "stash" accounts to the controller account.
|
* Map from all locked "stash" accounts to the controller account.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
bonded: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<AccountId32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
bonded: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<AccountId32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1516,6 +1543,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* If set to `0`, no limit exists.
|
* If set to `0`, no limit exists.
|
||||||
**/
|
**/
|
||||||
minCommission: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
|
minCommission: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* The minimum active nominator stake of the last successful election.
|
||||||
|
**/
|
||||||
|
minimumActiveStake: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Minimum number of staking participants before emergency conditions are imposed.
|
* Minimum number of staking participants before emergency conditions are imposed.
|
||||||
**/
|
**/
|
||||||
@@ -1545,6 +1576,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
*
|
*
|
||||||
* Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
|
* Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
|
||||||
* [`Call::chill_other`] dispatchable by anyone.
|
* [`Call::chill_other`] dispatchable by anyone.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1565,6 +1598,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Where the reward payment should be made. Keyed by stash.
|
* Where the reward payment should be made. Keyed by stash.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingRewardDestination>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingRewardDestination>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1582,13 +1617,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* as well as how much reward has been paid out.
|
* as well as how much reward has been paid out.
|
||||||
**/
|
**/
|
||||||
spanSlash: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<PalletStakingSlashingSpanRecord>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[AccountId32, u32]>]>;
|
spanSlash: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<PalletStakingSlashingSpanRecord>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[AccountId32, u32]>]>;
|
||||||
/**
|
|
||||||
* True if network has been upgraded to this version.
|
|
||||||
* Storage version of the pallet.
|
|
||||||
*
|
|
||||||
* This is set to v7.0.0 for new networks.
|
|
||||||
**/
|
|
||||||
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletStakingReleases>, []> & QueryableStorageEntry<ApiType, []>;
|
|
||||||
/**
|
/**
|
||||||
* All unapplied slashes that are queued for later.
|
* All unapplied slashes that are queued for later.
|
||||||
**/
|
**/
|
||||||
@@ -1599,6 +1627,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The map from (wannabe) validator stash key to the preferences of that validator.
|
* The map from (wannabe) validator stash key to the preferences of that validator.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
validators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
validators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1785,6 +1815,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Proposal indices that have been approved but not yet awarded.
|
* Proposal indices that have been approved but not yet awarded.
|
||||||
**/
|
**/
|
||||||
approvals: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
approvals: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* The amount which has been reported as inactive to Currency.
|
||||||
|
**/
|
||||||
|
deactivated: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Number of proposals that have been made.
|
* Number of proposals that have been made.
|
||||||
**/
|
**/
|
||||||
@@ -1799,6 +1833,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
ump: {
|
ump: {
|
||||||
|
/**
|
||||||
|
* Counter for the related counted storage map
|
||||||
|
**/
|
||||||
|
counterForOverweight: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The ordered list of `ParaId`s that have a `RelayDispatchQueue` entry.
|
* The ordered list of `ParaId`s that have a `RelayDispatchQueue` entry.
|
||||||
*
|
*
|
||||||
@@ -1904,6 +1942,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The current migration's stage, if any.
|
* The current migration's stage, if any.
|
||||||
**/
|
**/
|
||||||
currentMigration: AugmentedQuery<ApiType, () => Observable<Option<PalletXcmVersionMigrationStage>>, []> & QueryableStorageEntry<ApiType, []>;
|
currentMigration: AugmentedQuery<ApiType, () => Observable<Option<PalletXcmVersionMigrationStage>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Fungible assets which we know are locked on this chain.
|
||||||
|
**/
|
||||||
|
lockedFungibles: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Vec<ITuple<[u128, XcmVersionedMultiLocation]>>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* The ongoing queries.
|
* The ongoing queries.
|
||||||
**/
|
**/
|
||||||
@@ -1912,6 +1954,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The latest available query index.
|
* The latest available query index.
|
||||||
**/
|
**/
|
||||||
queryCounter: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
queryCounter: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Fungible assets which we know are locked on a remote chain.
|
||||||
|
**/
|
||||||
|
remoteLockedFungibles: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: XcmVersionedAssetId | { V3: any } | string | Uint8Array) => Observable<Option<PalletXcmRemoteLockedFungibleRecord>>, [u32, AccountId32, XcmVersionedAssetId]> & QueryableStorageEntry<ApiType, [u32, AccountId32, XcmVersionedAssetId]>;
|
||||||
/**
|
/**
|
||||||
* Default version to encode XCM when latest version of destination is unknown. If `None`,
|
* Default version to encode XCM when latest version of destination is unknown. If `None`,
|
||||||
* then the destinations whose XCM version is unknown are considered unreachable.
|
* then the destinations whose XCM version is unknown are considered unreachable.
|
||||||
@@ -1920,7 +1966,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* The Latest versions that we know various locations support.
|
* The Latest versions that we know various locations support.
|
||||||
**/
|
**/
|
||||||
supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array) => Observable<Option<u32>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<u32>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
||||||
/**
|
/**
|
||||||
* Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
|
* Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
|
||||||
* the `u32` counter is the number of times that a send to the destination has been attempted,
|
* the `u32` counter is the number of times that a send to the destination has been attempted,
|
||||||
@@ -1930,12 +1976,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* All locations that we have requested version notifications from.
|
* All locations that we have requested version notifications from.
|
||||||
**/
|
**/
|
||||||
versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array) => Observable<Option<u64>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<u64>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
||||||
/**
|
/**
|
||||||
* The target locations that are subscribed to our version changes, as well as the most recent
|
* The target locations that are subscribed to our version changes, as well as the most recent
|
||||||
* of our versions we informed them of.
|
* of our versions we informed them of.
|
||||||
**/
|
**/
|
||||||
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array) => Observable<Option<ITuple<[u64, u64, u32]>>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @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 '@polkadot/types-augment/registry/substrate';
|
import '@polkadot/types-augment/registry/substrate';
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-b
|
|||||||
import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec';
|
import type { 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';
|
||||||
@@ -17,9 +17,10 @@ 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, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
||||||
|
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||||
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 { CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, 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 } 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
|
||||||
**/
|
**/
|
||||||
@@ -171,7 +184,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[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 a series of leaves under given indices.
|
||||||
@@ -208,10 +221,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
|
||||||
**/
|
**/
|
||||||
@@ -322,6 +343,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: {
|
||||||
/**
|
/**
|
||||||
@@ -333,7 +365,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0x37c8bb1350a9a2a8/2 */
|
/** 0x37c8bb1350a9a2a8/3 */
|
||||||
transactionPaymentApi: {
|
transactionPaymentApi: {
|
||||||
/**
|
/**
|
||||||
* The transaction fee details
|
* The transaction fee details
|
||||||
@@ -343,12 +375,20 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
* The transaction info
|
* The transaction info
|
||||||
**/
|
**/
|
||||||
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
||||||
|
/**
|
||||||
|
* Query the output of the current LengthToFee given some input
|
||||||
|
**/
|
||||||
|
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||||
|
/**
|
||||||
|
* Query the output of the current WeightToFee given some input
|
||||||
|
**/
|
||||||
|
queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;
|
||||||
/**
|
/**
|
||||||
* Generic call
|
* Generic call
|
||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0xf3ff14d5ab527059/2 */
|
/** 0xf3ff14d5ab527059/3 */
|
||||||
transactionPaymentCallApi: {
|
transactionPaymentCallApi: {
|
||||||
/**
|
/**
|
||||||
* The call fee details
|
* The call fee details
|
||||||
@@ -358,6 +398,14 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
* The call info
|
* The call info
|
||||||
**/
|
**/
|
||||||
queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
||||||
|
/**
|
||||||
|
* Query the output of the current LengthToFee given some input
|
||||||
|
**/
|
||||||
|
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||||
|
/**
|
||||||
|
* Query the output of the current WeightToFee given some input
|
||||||
|
**/
|
||||||
|
queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;
|
||||||
/**
|
/**
|
||||||
* Generic call
|
* Generic call
|
||||||
**/
|
**/
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -8,7 +8,7 @@ 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 { 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 } 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, 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>;
|
||||||
@@ -25,8 +25,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
maxAnnouncementsCount: u32 & AugmentedConst<ApiType>;
|
maxAnnouncementsCount: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The maximum number of members per member role. Should not exceed the sum of
|
* The maximum number of members per member role.
|
||||||
* `MaxFounders` and `MaxFellows`.
|
|
||||||
**/
|
**/
|
||||||
maxMembersCount: u32 & AugmentedConst<ApiType>;
|
maxMembersCount: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -65,6 +64,12 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* metadata.
|
* metadata.
|
||||||
**/
|
**/
|
||||||
metadataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
metadataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call.
|
||||||
|
*
|
||||||
|
* Must be configured to result in a weight that makes each call fit in a block.
|
||||||
|
**/
|
||||||
|
removeItemsLimit: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The maximum length of a name or symbol stored on-chain.
|
* The maximum length of a name or symbol stored on-chain.
|
||||||
**/
|
**/
|
||||||
@@ -74,18 +79,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
authorship: {
|
|
||||||
/**
|
|
||||||
* The number of blocks back we should accept uncles.
|
|
||||||
* This means that we will deal with uncle-parents that are
|
|
||||||
* `UncleGenerations + 1` before `now`.
|
|
||||||
**/
|
|
||||||
uncleGenerations: u32 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
|
||||||
* Generic const
|
|
||||||
**/
|
|
||||||
[key: string]: Codec;
|
|
||||||
};
|
|
||||||
babe: {
|
babe: {
|
||||||
/**
|
/**
|
||||||
* The amount of time, in slots, that each epoch should last.
|
* The amount of time, in slots, that each epoch should last.
|
||||||
@@ -234,10 +227,40 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* Changing this value for an existing chain might need a storage migration.
|
* Changing this value for an existing chain might need a storage migration.
|
||||||
**/
|
**/
|
||||||
depositPerItem: u128 & AugmentedConst<ApiType>;
|
depositPerItem: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum length of a contract code in bytes. This limit applies to the instrumented
|
||||||
|
* version of the code. Therefore `instantiate_with_code` can fail even when supplying
|
||||||
|
* a wasm binary below this maximum size.
|
||||||
|
*
|
||||||
|
* The value should be chosen carefully taking into the account the overall memory limit
|
||||||
|
* your runtime has, as well as the [maximum allowed callstack
|
||||||
|
* depth](#associatedtype.CallStack). Look into the `integrity_test()` for some insights.
|
||||||
|
**/
|
||||||
|
maxCodeLen: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum length of the debug buffer in bytes.
|
||||||
|
**/
|
||||||
|
maxDebugBufferLen: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum allowable length in bytes for storage keys.
|
||||||
|
**/
|
||||||
|
maxStorageKeyLen: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Cost schedule and limits.
|
* Cost schedule and limits.
|
||||||
**/
|
**/
|
||||||
schedule: PalletContractsSchedule & AugmentedConst<ApiType>;
|
schedule: PalletContractsSchedule & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Make contract callable functions marked as `#[unstable]` available.
|
||||||
|
*
|
||||||
|
* Contracts that use `#[unstable]` functions won't be able to be uploaded unless
|
||||||
|
* this is set to `true`. This is only meant for testnets and dev nodes in order to
|
||||||
|
* experiment with new features.
|
||||||
|
*
|
||||||
|
* # Warning
|
||||||
|
*
|
||||||
|
* Do **not** set to `true` on productions chains.
|
||||||
|
**/
|
||||||
|
unsafeUnstableInterface: bool & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic const
|
* Generic const
|
||||||
**/
|
**/
|
||||||
@@ -438,18 +461,28 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
/**
|
/**
|
||||||
* The maximum number of candidates in a phragmen election.
|
* The maximum number of candidates in a phragmen election.
|
||||||
*
|
*
|
||||||
* Warning: The election happens onchain, and this value will determine
|
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
||||||
* the size of the election. When this limit is reached no more
|
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
||||||
* candidates are accepted in the election.
|
*
|
||||||
|
* When this limit is reached no more candidates are accepted in the election.
|
||||||
**/
|
**/
|
||||||
maxCandidates: u32 & AugmentedConst<ApiType>;
|
maxCandidates: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The maximum number of voters to allow in a phragmen election.
|
* The maximum number of voters to allow in a phragmen election.
|
||||||
*
|
*
|
||||||
* Warning: This impacts the size of the election which is run onchain.
|
* 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.
|
* When the limit is reached the new voters are ignored.
|
||||||
**/
|
**/
|
||||||
maxVoters: u32 & AugmentedConst<ApiType>;
|
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
|
* Identifier for the elections-phragmen pallet's lock
|
||||||
**/
|
**/
|
||||||
@@ -476,50 +509,12 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
gilt: {
|
fastUnstake: {
|
||||||
/**
|
/**
|
||||||
* Portion of the queue which is free from ordering and just a FIFO.
|
* Deposit to take for unstaking, to make sure we're able to slash the it in order to cover
|
||||||
*
|
* the costs of resources on unsuccessful unstake.
|
||||||
* Must be no greater than `MaxQueueLen`.
|
|
||||||
**/
|
**/
|
||||||
fifoQueueLen: u32 & AugmentedConst<ApiType>;
|
deposit: u128 & AugmentedConst<ApiType>;
|
||||||
/**
|
|
||||||
* The number of blocks between consecutive attempts to issue more gilts in an effort to
|
|
||||||
* get to the target amount to be frozen.
|
|
||||||
*
|
|
||||||
* A larger value results in fewer storage hits each block, but a slower period to get to
|
|
||||||
* the target.
|
|
||||||
**/
|
|
||||||
intakePeriod: u32 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
|
||||||
* The maximum amount of bids that can be turned into issued gilts each block. A larger
|
|
||||||
* value here means less of the block available for transactions should there be a glut of
|
|
||||||
* bids to make into gilts to reach the target.
|
|
||||||
**/
|
|
||||||
maxIntakeBids: u32 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
|
||||||
* Maximum number of items that may be in each duration queue.
|
|
||||||
**/
|
|
||||||
maxQueueLen: u32 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
|
||||||
* The minimum amount of funds that may be offered to freeze for a gilt. Note that this
|
|
||||||
* does not actually limit the amount which may be frozen in a gilt since gilts may be
|
|
||||||
* split up in order to satisfy the desired amount of funds under gilts.
|
|
||||||
*
|
|
||||||
* It should be at least big enough to ensure that there is no possible storage spam attack
|
|
||||||
* or queue-filling attack.
|
|
||||||
**/
|
|
||||||
minFreeze: u128 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
|
||||||
* The base period for the duration queues. This is the common multiple across all
|
|
||||||
* supported freezing durations that can be bid upon.
|
|
||||||
**/
|
|
||||||
period: u32 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
|
||||||
* Number of duration queues in total. This sets the maximum duration supported, which is
|
|
||||||
* this value multiplied by `Period`.
|
|
||||||
**/
|
|
||||||
queueCount: u32 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Generic const
|
* Generic const
|
||||||
**/
|
**/
|
||||||
@@ -530,6 +525,15 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* Max Authorities in use
|
* Max Authorities in use
|
||||||
**/
|
**/
|
||||||
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum number of entries to keep in the set id to session index mapping.
|
||||||
|
*
|
||||||
|
* Since the `SetIdSession` map is only used for validating equivocations this
|
||||||
|
* value should relate to the bonding duration of whatever staking system is
|
||||||
|
* being used (if any). If equivocation handling is not enabled then this value
|
||||||
|
* can be zero.
|
||||||
|
**/
|
||||||
|
maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic const
|
* Generic const
|
||||||
**/
|
**/
|
||||||
@@ -612,6 +616,34 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
|
messageQueue: {
|
||||||
|
/**
|
||||||
|
* The size of the page; this implies the maximum message size which can be sent.
|
||||||
|
*
|
||||||
|
* A good value depends on the expected message sizes, their weights, the weight that is
|
||||||
|
* available for processing them and the maximal needed message size. The maximal message
|
||||||
|
* size is slightly lower than this as defined by [`MaxMessageLenOf`].
|
||||||
|
**/
|
||||||
|
heapSize: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum number of stale pages (i.e. of overweight messages) allowed before culling
|
||||||
|
* can happen. Once there are more stale pages than this, then historical pages may be
|
||||||
|
* dropped, even if they contain unprocessed overweight messages.
|
||||||
|
**/
|
||||||
|
maxStale: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The amount of weight (if any) which should be provided to the message queue for
|
||||||
|
* servicing enqueued items.
|
||||||
|
*
|
||||||
|
* This may be legitimately `None` in the case that you will call
|
||||||
|
* `ServiceQueues::service_queues` manually.
|
||||||
|
**/
|
||||||
|
serviceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic const
|
||||||
|
**/
|
||||||
|
[key: string]: Codec;
|
||||||
|
};
|
||||||
multisig: {
|
multisig: {
|
||||||
/**
|
/**
|
||||||
* The base amount of currency needed to reserve for creating a multisig execution or to
|
* The base amount of currency needed to reserve for creating a multisig execution or to
|
||||||
@@ -637,6 +669,136 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
|
nfts: {
|
||||||
|
/**
|
||||||
|
* The maximum approvals an item could have.
|
||||||
|
**/
|
||||||
|
approvalsLimit: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The basic amount of funds that must be reserved when adding an attribute to an item.
|
||||||
|
**/
|
||||||
|
attributeDepositBase: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The basic amount of funds that must be reserved for collection.
|
||||||
|
**/
|
||||||
|
collectionDeposit: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The additional funds that must be reserved for the number of bytes store in metadata,
|
||||||
|
* either "normal" metadata or attribute metadata.
|
||||||
|
**/
|
||||||
|
depositPerByte: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Disables some of pallet's features.
|
||||||
|
**/
|
||||||
|
features: u64 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum attributes approvals an item could have.
|
||||||
|
**/
|
||||||
|
itemAttributesApprovalsLimit: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The basic amount of funds that must be reserved for an item.
|
||||||
|
**/
|
||||||
|
itemDeposit: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum length of an attribute key.
|
||||||
|
**/
|
||||||
|
keyLimit: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The max number of attributes a user could set per call.
|
||||||
|
**/
|
||||||
|
maxAttributesPerCall: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The max duration in blocks for deadlines.
|
||||||
|
**/
|
||||||
|
maxDeadlineDuration: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The max number of tips a user could send.
|
||||||
|
**/
|
||||||
|
maxTips: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The basic amount of funds that must be reserved when adding metadata to your item.
|
||||||
|
**/
|
||||||
|
metadataDepositBase: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum length of data stored on-chain.
|
||||||
|
**/
|
||||||
|
stringLimit: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum length of an attribute value.
|
||||||
|
**/
|
||||||
|
valueLimit: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic const
|
||||||
|
**/
|
||||||
|
[key: string]: Codec;
|
||||||
|
};
|
||||||
|
nis: {
|
||||||
|
/**
|
||||||
|
* The base period for the duration queues. This is the common multiple across all
|
||||||
|
* supported freezing durations that can be bid upon.
|
||||||
|
**/
|
||||||
|
basePeriod: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Portion of the queue which is free from ordering and just a FIFO.
|
||||||
|
*
|
||||||
|
* Must be no greater than `MaxQueueLen`.
|
||||||
|
**/
|
||||||
|
fifoQueueLen: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The number of blocks between consecutive attempts to dequeue bids and create receipts.
|
||||||
|
*
|
||||||
|
* A larger value results in fewer storage hits each block, but a slower period to get to
|
||||||
|
* the target.
|
||||||
|
**/
|
||||||
|
intakePeriod: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum amount of bids that can consolidated into receipts in a single intake. A
|
||||||
|
* larger value here means less of the block available for transactions should there be a
|
||||||
|
* glut of bids.
|
||||||
|
**/
|
||||||
|
maxIntakeWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Maximum number of items that may be in each duration queue.
|
||||||
|
*
|
||||||
|
* Must be larger than zero.
|
||||||
|
**/
|
||||||
|
maxQueueLen: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The minimum amount of funds that may be placed in a bid. Note that this
|
||||||
|
* does not actually limit the amount which may be represented in a receipt since bids may
|
||||||
|
* be split up by the system.
|
||||||
|
*
|
||||||
|
* It should be at least big enough to ensure that there is no possible storage spam attack
|
||||||
|
* or queue-filling attack.
|
||||||
|
**/
|
||||||
|
minBid: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The minimum amount of funds which may intentionally be left remaining under a single
|
||||||
|
* receipt.
|
||||||
|
**/
|
||||||
|
minReceipt: Perquintill & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The treasury's pallet id, used for deriving its sovereign account ID.
|
||||||
|
**/
|
||||||
|
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Number of duration queues in total. This sets the maximum duration supported, which is
|
||||||
|
* this value multiplied by `Period`.
|
||||||
|
**/
|
||||||
|
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.
|
||||||
|
**/
|
||||||
|
thawThrottle: ITuple<[Perquintill, u32]> & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic const
|
||||||
|
**/
|
||||||
|
[key: string]: Codec;
|
||||||
|
};
|
||||||
nominationPools: {
|
nominationPools: {
|
||||||
/**
|
/**
|
||||||
* The maximum pool points-to-balance ratio that an `open` pool can have.
|
* The maximum pool points-to-balance ratio that an `open` pool can have.
|
||||||
@@ -803,6 +965,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.
|
||||||
|
|||||||
@@ -46,9 +46,9 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
BadWitness: AugmentedError<ApiType>;
|
BadWitness: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Founders must be provided to initialize the Alliance.
|
* Fellows must be provided to initialize the Alliance.
|
||||||
**/
|
**/
|
||||||
FoundersMissing: AugmentedError<ApiType>;
|
FellowsMissing: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Balance is insufficient for the required deposit.
|
* Balance is insufficient for the required deposit.
|
||||||
**/
|
**/
|
||||||
@@ -65,10 +65,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Account is not an ally.
|
* Account is not an ally.
|
||||||
**/
|
**/
|
||||||
NotAlly: AugmentedError<ApiType>;
|
NotAlly: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* Account is not a founder.
|
|
||||||
**/
|
|
||||||
NotFounder: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Item has not been deemed unscrupulous.
|
* Item has not been deemed unscrupulous.
|
||||||
**/
|
**/
|
||||||
@@ -77,10 +73,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Account is not a member.
|
* Account is not a member.
|
||||||
**/
|
**/
|
||||||
NotMember: AugmentedError<ApiType>;
|
NotMember: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* The proposal is not vetoable.
|
|
||||||
**/
|
|
||||||
NotVetoableProposal: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Account does not have voting rights.
|
* Account does not have voting rights.
|
||||||
**/
|
**/
|
||||||
@@ -173,6 +165,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The asset-account already exists.
|
* The asset-account already exists.
|
||||||
**/
|
**/
|
||||||
AlreadyExists: AugmentedError<ApiType>;
|
AlreadyExists: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The asset is not live, and likely being destroyed.
|
||||||
|
**/
|
||||||
|
AssetNotLive: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Invalid metadata given.
|
* Invalid metadata given.
|
||||||
**/
|
**/
|
||||||
@@ -189,10 +185,19 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The origin account is frozen.
|
* The origin account is frozen.
|
||||||
**/
|
**/
|
||||||
Frozen: AugmentedError<ApiType>;
|
Frozen: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The asset status is not the expected status.
|
||||||
|
**/
|
||||||
|
IncorrectStatus: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The asset ID is already taken.
|
* The asset ID is already taken.
|
||||||
**/
|
**/
|
||||||
InUse: AugmentedError<ApiType>;
|
InUse: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The asset is a live asset and is actively being used. Usually emit for operations such
|
||||||
|
* as `start_destroy` which require the asset to be in a destroying state.
|
||||||
|
**/
|
||||||
|
LiveAsset: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Minimum balance should be non-zero.
|
* Minimum balance should be non-zero.
|
||||||
**/
|
**/
|
||||||
@@ -215,6 +220,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* maximum number of consumers has been reached.
|
* maximum number of consumers has been reached.
|
||||||
**/
|
**/
|
||||||
NoProvider: AugmentedError<ApiType>;
|
NoProvider: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The asset should be frozen before the given operation.
|
||||||
|
**/
|
||||||
|
NotFrozen: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* No approval exists that would allow the transfer.
|
* No approval exists that would allow the transfer.
|
||||||
**/
|
**/
|
||||||
@@ -236,40 +245,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
authorship: {
|
|
||||||
/**
|
|
||||||
* The uncle is genesis.
|
|
||||||
**/
|
|
||||||
GenesisUncle: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* The uncle parent not in the chain.
|
|
||||||
**/
|
|
||||||
InvalidUncleParent: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* The uncle isn't recent enough to be included.
|
|
||||||
**/
|
|
||||||
OldUncle: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* The uncle is too high in chain.
|
|
||||||
**/
|
|
||||||
TooHighUncle: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Too many uncles.
|
|
||||||
**/
|
|
||||||
TooManyUncles: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* The uncle is already included.
|
|
||||||
**/
|
|
||||||
UncleAlreadyIncluded: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Uncles already set in the block.
|
|
||||||
**/
|
|
||||||
UnclesAlreadySet: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Generic error
|
|
||||||
**/
|
|
||||||
[key: string]: AugmentedError<ApiType>;
|
|
||||||
};
|
|
||||||
babe: {
|
babe: {
|
||||||
/**
|
/**
|
||||||
* A given equivocation report is valid but already previously reported.
|
* A given equivocation report is valid but already previously reported.
|
||||||
@@ -410,8 +385,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
CodeNotFound: AugmentedError<ApiType>;
|
CodeNotFound: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* 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
|
||||||
|
* node. This hapens if an older node is used with a new version of ink!. Try updating
|
||||||
|
* 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
|
||||||
* or in the debug buffer which is returned to RPC clients.
|
* by supplying `-lruntime::contracts=debug`.
|
||||||
**/
|
**/
|
||||||
CodeRejected: AugmentedError<ApiType>;
|
CodeRejected: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -434,10 +414,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Contract trapped during execution.
|
* Contract trapped during execution.
|
||||||
**/
|
**/
|
||||||
ContractTrapped: AugmentedError<ApiType>;
|
ContractTrapped: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* The debug message specified to `seal_debug_message` does contain invalid UTF-8.
|
|
||||||
**/
|
|
||||||
DebugMessageInvalidUTF8: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
**/
|
**/
|
||||||
@@ -454,10 +430,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* A contract with the same AccountId already exists.
|
* A contract with the same AccountId already exists.
|
||||||
**/
|
**/
|
||||||
DuplicateContract: AugmentedError<ApiType>;
|
DuplicateContract: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* The topics passed to `seal_deposit_events` contains at least one duplicate.
|
|
||||||
**/
|
|
||||||
DuplicateTopics: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* An indetermistic code was used in a context where this is not permitted.
|
* An indetermistic code was used in a context where this is not permitted.
|
||||||
**/
|
**/
|
||||||
@@ -503,6 +475,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>;
|
||||||
/**
|
/**
|
||||||
@@ -704,6 +679,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The given account did not vote on the referendum.
|
* The given account did not vote on the referendum.
|
||||||
**/
|
**/
|
||||||
NotVoter: AugmentedError<ApiType>;
|
NotVoter: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The preimage does not exist.
|
||||||
|
**/
|
||||||
|
PreimageNotExist: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Proposal still blacklisted
|
* Proposal still blacklisted
|
||||||
**/
|
**/
|
||||||
@@ -910,40 +889,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
gilt: {
|
glutton: {
|
||||||
/**
|
/**
|
||||||
* The amount of the bid is less than the minimum allowed.
|
* The pallet was already initialized.
|
||||||
|
*
|
||||||
|
* Set `witness_count` to `Some` to bypass this error.
|
||||||
**/
|
**/
|
||||||
AmountTooSmall: AugmentedError<ApiType>;
|
AlreadyInitialized: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* The queue for the bid's duration is full and the amount bid is too low to get in
|
|
||||||
* through replacing an existing bid.
|
|
||||||
**/
|
|
||||||
BidTooLow: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* The duration is the bid is greater than the number of queues.
|
|
||||||
**/
|
|
||||||
DurationTooBig: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* The duration of the bid is less than one.
|
|
||||||
**/
|
|
||||||
DurationTooSmall: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Gilt not yet at expiry date.
|
|
||||||
**/
|
|
||||||
NotExpired: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* The given bid for retraction is not found.
|
|
||||||
**/
|
|
||||||
NotFound: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Not the owner of the gilt.
|
|
||||||
**/
|
|
||||||
NotOwner: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Gilt index is unknown.
|
|
||||||
**/
|
|
||||||
Unknown: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Generic error
|
* Generic error
|
||||||
**/
|
**/
|
||||||
@@ -1137,6 +1089,44 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
|
messageQueue: {
|
||||||
|
/**
|
||||||
|
* The message was already processed and cannot be processed again.
|
||||||
|
**/
|
||||||
|
AlreadyProcessed: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* There is temporarily not enough weight to continue servicing messages.
|
||||||
|
**/
|
||||||
|
InsufficientWeight: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The referenced message could not be found.
|
||||||
|
**/
|
||||||
|
NoMessage: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Page to be reaped does not exist.
|
||||||
|
**/
|
||||||
|
NoPage: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Page is not reapable because it has items remaining to be processed and is not old
|
||||||
|
* enough.
|
||||||
|
**/
|
||||||
|
NotReapable: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The message is queued for future execution.
|
||||||
|
**/
|
||||||
|
Queued: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* This message is temporarily unprocessable.
|
||||||
|
*
|
||||||
|
* Such errors are expected, but not guaranteed, to resolve themselves eventually through
|
||||||
|
* retrying.
|
||||||
|
**/
|
||||||
|
TemporarilyUnprocessable: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic error
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedError<ApiType>;
|
||||||
|
};
|
||||||
multisig: {
|
multisig: {
|
||||||
/**
|
/**
|
||||||
* Call is already approved by this signatory.
|
* Call is already approved by this signatory.
|
||||||
@@ -1199,12 +1189,261 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
|
nfts: {
|
||||||
|
/**
|
||||||
|
* The provided Item was already used for claiming.
|
||||||
|
**/
|
||||||
|
AlreadyClaimed: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The item ID has already been used for an item.
|
||||||
|
**/
|
||||||
|
AlreadyExists: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The approval had a deadline that expired, so the approval isn't valid anymore.
|
||||||
|
**/
|
||||||
|
ApprovalExpired: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The provided attribute can't be found.
|
||||||
|
**/
|
||||||
|
AttributeNotFound: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The witness data given does not match the current state of the chain.
|
||||||
|
**/
|
||||||
|
BadWitness: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The provided bid is too low.
|
||||||
|
**/
|
||||||
|
BidTooLow: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Collection ID is already taken.
|
||||||
|
**/
|
||||||
|
CollectionIdInUse: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The deadline has already expired.
|
||||||
|
**/
|
||||||
|
DeadlineExpired: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Item's config already exists and should be equal to the provided one.
|
||||||
|
**/
|
||||||
|
InconsistentItemConfig: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The provided data is incorrect.
|
||||||
|
**/
|
||||||
|
IncorrectData: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The provided metadata might be too long.
|
||||||
|
**/
|
||||||
|
IncorrectMetadata: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The item is locked (non-transferable).
|
||||||
|
**/
|
||||||
|
ItemLocked: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Items within that collection are non-transferable.
|
||||||
|
**/
|
||||||
|
ItemsNonTransferable: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Collection's attributes are locked.
|
||||||
|
**/
|
||||||
|
LockedCollectionAttributes: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Collection's metadata is locked.
|
||||||
|
**/
|
||||||
|
LockedCollectionMetadata: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Item's attributes are locked.
|
||||||
|
**/
|
||||||
|
LockedItemAttributes: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Item's metadata is locked.
|
||||||
|
**/
|
||||||
|
LockedItemMetadata: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Can't set more attributes per one call.
|
||||||
|
**/
|
||||||
|
MaxAttributesLimitReached: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The max supply is locked and can't be changed.
|
||||||
|
**/
|
||||||
|
MaxSupplyLocked: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* All items have been minted.
|
||||||
|
**/
|
||||||
|
MaxSupplyReached: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The provided max supply is less than the number of items a collection already has.
|
||||||
|
**/
|
||||||
|
MaxSupplyTooSmall: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The given item has no metadata set.
|
||||||
|
**/
|
||||||
|
MetadataNotFound: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The method is disabled by system settings.
|
||||||
|
**/
|
||||||
|
MethodDisabled: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Mint has already ended.
|
||||||
|
**/
|
||||||
|
MintEnded: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Mint has not started yet.
|
||||||
|
**/
|
||||||
|
MintNotStarted: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Config for a collection or an item can't be found.
|
||||||
|
**/
|
||||||
|
NoConfig: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The signing account has no permission to do the operation.
|
||||||
|
**/
|
||||||
|
NoPermission: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The provided account is not a delegate.
|
||||||
|
**/
|
||||||
|
NotDelegate: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Item is not for sale.
|
||||||
|
**/
|
||||||
|
NotForSale: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The item has reached its approval limit.
|
||||||
|
**/
|
||||||
|
ReachedApprovalLimit: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Some roles were not cleared.
|
||||||
|
**/
|
||||||
|
RolesNotCleared: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The named owner has not signed ownership acceptance of the collection.
|
||||||
|
**/
|
||||||
|
Unaccepted: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* No approval exists that would allow the transfer.
|
||||||
|
**/
|
||||||
|
Unapproved: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The given item ID is unknown.
|
||||||
|
**/
|
||||||
|
UnknownCollection: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The given item ID is unknown.
|
||||||
|
**/
|
||||||
|
UnknownItem: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Swap doesn't exist.
|
||||||
|
**/
|
||||||
|
UnknownSwap: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The delegate turned out to be different to what was expected.
|
||||||
|
**/
|
||||||
|
WrongDelegate: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The duration provided should be less than or equal to `MaxDeadlineDuration`.
|
||||||
|
**/
|
||||||
|
WrongDuration: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The provided namespace isn't supported in this call.
|
||||||
|
**/
|
||||||
|
WrongNamespace: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The extrinsic was sent by the wrong origin.
|
||||||
|
**/
|
||||||
|
WrongOrigin: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The owner turned out to be different to what was expected.
|
||||||
|
**/
|
||||||
|
WrongOwner: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The provided setting can't be set.
|
||||||
|
**/
|
||||||
|
WrongSetting: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The provided signature is incorrect.
|
||||||
|
**/
|
||||||
|
WrongSignature: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic error
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedError<ApiType>;
|
||||||
|
};
|
||||||
|
nis: {
|
||||||
|
/**
|
||||||
|
* The receipt is already communal.
|
||||||
|
**/
|
||||||
|
AlreadyCommunal: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* There are enough funds for what is required.
|
||||||
|
**/
|
||||||
|
AlreadyFunded: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The receipt is already private.
|
||||||
|
**/
|
||||||
|
AlreadyPrivate: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The amount of the bid is less than the minimum allowed.
|
||||||
|
**/
|
||||||
|
AmountTooSmall: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The queue for the bid's duration is full and the amount bid is too low to get in
|
||||||
|
* through replacing an existing bid.
|
||||||
|
**/
|
||||||
|
BidTooLow: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The duration is the bid is greater than the number of queues.
|
||||||
|
**/
|
||||||
|
DurationTooBig: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The duration of the bid is less than one.
|
||||||
|
**/
|
||||||
|
DurationTooSmall: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The operation would result in a receipt worth an insignficant value.
|
||||||
|
**/
|
||||||
|
MakesDust: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Bond not yet at expiry date.
|
||||||
|
**/
|
||||||
|
NotExpired: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Not the owner of the receipt.
|
||||||
|
**/
|
||||||
|
NotOwner: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The portion supplied is beyond the value of the receipt.
|
||||||
|
**/
|
||||||
|
PortionTooBig: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The thaw throttle has been reached for this period.
|
||||||
|
**/
|
||||||
|
Throttled: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Not enough funds are held to pay out.
|
||||||
|
**/
|
||||||
|
Unfunded: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The given bid for retraction is not found.
|
||||||
|
**/
|
||||||
|
UnknownBid: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Receipt index is unknown.
|
||||||
|
**/
|
||||||
|
UnknownReceipt: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic error
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedError<ApiType>;
|
||||||
|
};
|
||||||
nominationPools: {
|
nominationPools: {
|
||||||
/**
|
/**
|
||||||
* An account is already delegating in another pool. An account may only belong to one
|
* An account is already delegating in another pool. An account may only belong to one
|
||||||
* 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.
|
||||||
**/
|
**/
|
||||||
@@ -1420,6 +1659,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The referendum index provided is invalid in this context.
|
* The referendum index provided is invalid in this context.
|
||||||
**/
|
**/
|
||||||
BadReferendum: AugmentedError<ApiType>;
|
BadReferendum: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The referendum status is invalid for this operation.
|
||||||
|
**/
|
||||||
|
BadStatus: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The track identifier given was invalid.
|
* The track identifier given was invalid.
|
||||||
**/
|
**/
|
||||||
@@ -1452,6 +1695,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* No track exists for the proposal origin.
|
* No track exists for the proposal origin.
|
||||||
**/
|
**/
|
||||||
NoTrack: AugmentedError<ApiType>;
|
NoTrack: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The preimage does not exist.
|
||||||
|
**/
|
||||||
|
PreimageNotExist: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The queue of the track is empty.
|
* The queue of the track is empty.
|
||||||
**/
|
**/
|
||||||
@@ -1540,6 +1787,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The referendum index provided is invalid in this context.
|
* The referendum index provided is invalid in this context.
|
||||||
**/
|
**/
|
||||||
BadReferendum: AugmentedError<ApiType>;
|
BadReferendum: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The referendum status is invalid for this operation.
|
||||||
|
**/
|
||||||
|
BadStatus: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The track identifier given was invalid.
|
* The track identifier given was invalid.
|
||||||
**/
|
**/
|
||||||
@@ -1572,6 +1823,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* No track exists for the proposal origin.
|
* No track exists for the proposal origin.
|
||||||
**/
|
**/
|
||||||
NoTrack: AugmentedError<ApiType>;
|
NoTrack: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The preimage does not exist.
|
||||||
|
**/
|
||||||
|
PreimageNotExist: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The queue of the track is empty.
|
* The queue of the track is empty.
|
||||||
**/
|
**/
|
||||||
@@ -1599,6 +1854,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
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import '@polkadot/api-base/types/events';
|
|||||||
import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
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 } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, 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>;
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* Alliance disbanded. Includes number deleted members and unreserved deposits.
|
* Alliance disbanded. Includes number deleted members and unreserved deposits.
|
||||||
**/
|
**/
|
||||||
AllianceDisbanded: AugmentedEvent<ApiType, [votingMembers: u32, allyMembers: u32, unreserved: u32], { votingMembers: u32, allyMembers: u32, unreserved: u32 }>;
|
AllianceDisbanded: AugmentedEvent<ApiType, [fellowMembers: u32, allyMembers: u32, unreserved: u32], { fellowMembers: u32, allyMembers: u32, unreserved: u32 }>;
|
||||||
/**
|
/**
|
||||||
* An ally has been elevated to Fellow.
|
* An ally has been elevated to Fellow.
|
||||||
**/
|
**/
|
||||||
@@ -32,6 +32,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* An on-chain announcement has been removed.
|
* An on-chain announcement has been removed.
|
||||||
**/
|
**/
|
||||||
AnnouncementRemoved: AugmentedEvent<ApiType, [announcement: PalletAllianceCid], { announcement: PalletAllianceCid }>;
|
AnnouncementRemoved: AugmentedEvent<ApiType, [announcement: PalletAllianceCid], { announcement: PalletAllianceCid }>;
|
||||||
|
/**
|
||||||
|
* A Fellow abdicated their voting rights. They are now an Ally.
|
||||||
|
**/
|
||||||
|
FellowAbdicated: AugmentedEvent<ApiType, [fellow: AccountId32], { fellow: AccountId32 }>;
|
||||||
/**
|
/**
|
||||||
* A member has been kicked out with its deposit slashed.
|
* A member has been kicked out with its deposit slashed.
|
||||||
**/
|
**/
|
||||||
@@ -45,9 +49,9 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
MemberRetirementPeriodStarted: AugmentedEvent<ApiType, [member: AccountId32], { member: AccountId32 }>;
|
MemberRetirementPeriodStarted: AugmentedEvent<ApiType, [member: AccountId32], { member: AccountId32 }>;
|
||||||
/**
|
/**
|
||||||
* Some accounts have been initialized as members (founders/fellows/allies).
|
* Some accounts have been initialized as members (fellows/allies).
|
||||||
**/
|
**/
|
||||||
MembersInitialized: AugmentedEvent<ApiType, [founders: Vec<AccountId32>, fellows: Vec<AccountId32>, allies: Vec<AccountId32>], { founders: Vec<AccountId32>, fellows: Vec<AccountId32>, allies: Vec<AccountId32> }>;
|
MembersInitialized: AugmentedEvent<ApiType, [fellows: Vec<AccountId32>, allies: Vec<AccountId32>], { fellows: Vec<AccountId32>, allies: Vec<AccountId32> }>;
|
||||||
/**
|
/**
|
||||||
* An account has been added as an Ally and reserved its deposit.
|
* An account has been added as an Ally and reserved its deposit.
|
||||||
**/
|
**/
|
||||||
@@ -106,10 +110,18 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
[key: string]: AugmentedEvent<ApiType>;
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
};
|
};
|
||||||
assets: {
|
assets: {
|
||||||
|
/**
|
||||||
|
* Accounts were destroyed for given asset.
|
||||||
|
**/
|
||||||
|
AccountsDestroyed: AugmentedEvent<ApiType, [assetId: u32, accountsDestroyed: u32, accountsRemaining: u32], { assetId: u32, accountsDestroyed: u32, accountsRemaining: u32 }>;
|
||||||
/**
|
/**
|
||||||
* An approval for account `delegate` was cancelled by `owner`.
|
* An approval for account `delegate` was cancelled by `owner`.
|
||||||
**/
|
**/
|
||||||
ApprovalCancelled: AugmentedEvent<ApiType, [assetId: u32, owner: AccountId32, delegate: AccountId32], { assetId: u32, owner: AccountId32, delegate: AccountId32 }>;
|
ApprovalCancelled: AugmentedEvent<ApiType, [assetId: u32, owner: AccountId32, delegate: AccountId32], { assetId: u32, owner: AccountId32, delegate: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* Approvals were destroyed for given asset.
|
||||||
|
**/
|
||||||
|
ApprovalsDestroyed: AugmentedEvent<ApiType, [assetId: u32, approvalsDestroyed: u32, approvalsRemaining: u32], { assetId: u32, approvalsDestroyed: u32, approvalsRemaining: u32 }>;
|
||||||
/**
|
/**
|
||||||
* (Additional) funds have been approved for transfer to a destination account.
|
* (Additional) funds have been approved for transfer to a destination account.
|
||||||
**/
|
**/
|
||||||
@@ -118,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.
|
||||||
**/
|
**/
|
||||||
@@ -138,6 +154,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* An asset class was destroyed.
|
* An asset class was destroyed.
|
||||||
**/
|
**/
|
||||||
Destroyed: AugmentedEvent<ApiType, [assetId: u32], { assetId: u32 }>;
|
Destroyed: AugmentedEvent<ApiType, [assetId: u32], { assetId: u32 }>;
|
||||||
|
/**
|
||||||
|
* An asset class is in the process of being destroyed.
|
||||||
|
**/
|
||||||
|
DestructionStarted: AugmentedEvent<ApiType, [assetId: u32], { assetId: u32 }>;
|
||||||
/**
|
/**
|
||||||
* Some asset class was force-created.
|
* Some asset class was force-created.
|
||||||
**/
|
**/
|
||||||
@@ -149,7 +169,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* Some assets were issued.
|
* Some assets were issued.
|
||||||
**/
|
**/
|
||||||
Issued: AugmentedEvent<ApiType, [assetId: u32, owner: AccountId32, totalSupply: u128], { assetId: u32, owner: AccountId32, totalSupply: u128 }>;
|
Issued: AugmentedEvent<ApiType, [assetId: u32, owner: AccountId32, amount: u128], { assetId: u32, owner: AccountId32, amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Metadata has been cleared for an asset.
|
* Metadata has been cleared for an asset.
|
||||||
**/
|
**/
|
||||||
@@ -421,6 +441,18 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* An external proposal has been tabled.
|
* An external proposal has been tabled.
|
||||||
**/
|
**/
|
||||||
ExternalTabled: AugmentedEvent<ApiType, []>;
|
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.
|
* A proposal has been rejected by referendum.
|
||||||
**/
|
**/
|
||||||
@@ -477,14 +509,14 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* The election has been finalized, with the given computation and score.
|
* The election has been finalized, with the given computation and score.
|
||||||
**/
|
**/
|
||||||
ElectionFinalized: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore], { compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore }>;
|
ElectionFinalized: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore], { compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore }>;
|
||||||
|
/**
|
||||||
|
* There was a phase transition in a given round.
|
||||||
|
**/
|
||||||
|
PhaseTransitioned: AugmentedEvent<ApiType, [from: PalletElectionProviderMultiPhasePhase, to: PalletElectionProviderMultiPhasePhase, round: u32], { from: PalletElectionProviderMultiPhasePhase, to: PalletElectionProviderMultiPhasePhase, round: u32 }>;
|
||||||
/**
|
/**
|
||||||
* An account has been rewarded for their signed submission being finalized.
|
* An account has been rewarded for their signed submission being finalized.
|
||||||
**/
|
**/
|
||||||
Rewarded: AugmentedEvent<ApiType, [account: AccountId32, value: u128], { account: AccountId32, value: u128 }>;
|
Rewarded: AugmentedEvent<ApiType, [account: AccountId32, value: u128], { account: AccountId32, value: u128 }>;
|
||||||
/**
|
|
||||||
* The signed phase of the given round has started.
|
|
||||||
**/
|
|
||||||
SignedPhaseStarted: AugmentedEvent<ApiType, [round: u32], { round: u32 }>;
|
|
||||||
/**
|
/**
|
||||||
* An account has been slashed for submitting an invalid signed submission.
|
* An account has been slashed for submitting an invalid signed submission.
|
||||||
**/
|
**/
|
||||||
@@ -492,16 +524,13 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* A solution was stored with the given compute.
|
* A solution was stored with the given compute.
|
||||||
*
|
*
|
||||||
* If the solution is signed, this means that it hasn't yet been processed. If the
|
* The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,
|
||||||
* solution is unsigned, this means that it has also been processed.
|
* the stored solution was submited in the signed phase by a miner with the `AccountId`.
|
||||||
*
|
* Otherwise, the solution was stored either during the unsigned phase or by
|
||||||
* The `bool` is `true` when a previous solution was ejected to make room for this one.
|
* `T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make
|
||||||
|
* room for this one.
|
||||||
**/
|
**/
|
||||||
SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool], { compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool }>;
|
SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, origin: Option<AccountId32>, prevEjected: bool], { compute: PalletElectionProviderMultiPhaseElectionCompute, origin: Option<AccountId32>, prevEjected: bool }>;
|
||||||
/**
|
|
||||||
* The unsigned phase of the given round has started.
|
|
||||||
**/
|
|
||||||
UnsignedPhaseStarted: AugmentedEvent<ApiType, [round: u32], { round: u32 }>;
|
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
@@ -556,17 +585,12 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
BatchChecked: AugmentedEvent<ApiType, [eras: Vec<u32>], { eras: Vec<u32> }>;
|
BatchChecked: AugmentedEvent<ApiType, [eras: Vec<u32>], { eras: Vec<u32> }>;
|
||||||
/**
|
/**
|
||||||
* A batch was terminated.
|
* A batch of a given size was terminated.
|
||||||
*
|
*
|
||||||
* This is always follows by a number of `Unstaked` or `Slashed` events, marking the end
|
* This is always follows by a number of `Unstaked` or `Slashed` events, marking the end
|
||||||
* of the batch. A new batch will be created upon next block.
|
* of the batch. A new batch will be created upon next block.
|
||||||
**/
|
**/
|
||||||
BatchFinished: AugmentedEvent<ApiType, []>;
|
BatchFinished: AugmentedEvent<ApiType, [size_: u32], { size_: u32 }>;
|
||||||
/**
|
|
||||||
* Some internal error happened while migrating stash. They are removed as head as a
|
|
||||||
* consequence.
|
|
||||||
**/
|
|
||||||
Errored: AugmentedEvent<ApiType, [stash: AccountId32], { stash: AccountId32 }>;
|
|
||||||
/**
|
/**
|
||||||
* An internal error happened. Operations will be paused now.
|
* An internal error happened. Operations will be paused now.
|
||||||
**/
|
**/
|
||||||
@@ -584,23 +608,19 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
};
|
};
|
||||||
gilt: {
|
glutton: {
|
||||||
/**
|
/**
|
||||||
* A bid was successfully placed.
|
* The computation limit has been updated by root.
|
||||||
**/
|
**/
|
||||||
BidPlaced: AugmentedEvent<ApiType, [who: AccountId32, amount: u128, duration: u32], { who: AccountId32, amount: u128, duration: u32 }>;
|
ComputationLimitSet: AugmentedEvent<ApiType, [compute: Perbill], { compute: Perbill }>;
|
||||||
/**
|
/**
|
||||||
* A bid was successfully removed (before being accepted as a gilt).
|
* The pallet has been (re)initialized by root.
|
||||||
**/
|
**/
|
||||||
BidRetracted: AugmentedEvent<ApiType, [who: AccountId32, amount: u128, duration: u32], { who: AccountId32, amount: u128, duration: u32 }>;
|
PalletInitialized: AugmentedEvent<ApiType, [reinit: bool], { reinit: bool }>;
|
||||||
/**
|
/**
|
||||||
* A bid was accepted as a gilt. The balance may not be released until expiry.
|
* The storage limit has been updated by root.
|
||||||
**/
|
**/
|
||||||
GiltIssued: AugmentedEvent<ApiType, [index: u32, expiry: u32, who: AccountId32, amount: u128], { index: u32, expiry: u32, who: AccountId32, amount: u128 }>;
|
StorageLimitSet: AugmentedEvent<ApiType, [storage: Perbill], { storage: Perbill }>;
|
||||||
/**
|
|
||||||
* An expired gilt has been thawed.
|
|
||||||
**/
|
|
||||||
GiltThawed: AugmentedEvent<ApiType, [index: u32, who: AccountId32, originalAmount: u128, additionalAmount: u128], { index: u32, who: AccountId32, originalAmount: u128, additionalAmount: u128 }>;
|
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
@@ -610,7 +630,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.
|
||||||
**/
|
**/
|
||||||
@@ -729,6 +749,33 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
};
|
};
|
||||||
|
messageQueue: {
|
||||||
|
/**
|
||||||
|
* Message discarded due to an inability to decode the item. Usually caused by state
|
||||||
|
* corruption.
|
||||||
|
**/
|
||||||
|
Discarded: AugmentedEvent<ApiType, [hash_: H256], { hash_: H256 }>;
|
||||||
|
/**
|
||||||
|
* Message placed in overweight queue.
|
||||||
|
**/
|
||||||
|
OverweightEnqueued: AugmentedEvent<ApiType, [hash_: H256, origin: u32, pageIndex: u32, messageIndex: u32], { hash_: H256, origin: u32, pageIndex: u32, messageIndex: u32 }>;
|
||||||
|
/**
|
||||||
|
* This page was reaped.
|
||||||
|
**/
|
||||||
|
PageReaped: AugmentedEvent<ApiType, [origin: u32, index: u32], { origin: u32, index: u32 }>;
|
||||||
|
/**
|
||||||
|
* Message is processed.
|
||||||
|
**/
|
||||||
|
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).
|
||||||
|
**/
|
||||||
|
ProcessingFailed: AugmentedEvent<ApiType, [hash_: H256, origin: u32, error: FrameSupportMessagesProcessMessageError], { hash_: H256, origin: u32, error: FrameSupportMessagesProcessMessageError }>;
|
||||||
|
/**
|
||||||
|
* Generic event
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
|
};
|
||||||
multisig: {
|
multisig: {
|
||||||
/**
|
/**
|
||||||
* A multisig operation has been approved by someone.
|
* A multisig operation has been approved by someone.
|
||||||
@@ -751,6 +798,201 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
};
|
};
|
||||||
|
nfts: {
|
||||||
|
/**
|
||||||
|
* All approvals of an item got cancelled.
|
||||||
|
**/
|
||||||
|
AllApprovalsCancelled: AugmentedEvent<ApiType, [collection: u32, item: u32, owner: AccountId32], { collection: u32, item: u32, owner: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* An approval for a `delegate` account to transfer the `item` of an item
|
||||||
|
* `collection` was cancelled by its `owner`.
|
||||||
|
**/
|
||||||
|
ApprovalCancelled: AugmentedEvent<ApiType, [collection: u32, item: u32, owner: AccountId32, delegate: AccountId32], { collection: u32, item: u32, owner: AccountId32, delegate: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* Attribute metadata has been cleared for a `collection` or `item`.
|
||||||
|
**/
|
||||||
|
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`.
|
||||||
|
**/
|
||||||
|
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.
|
||||||
|
**/
|
||||||
|
Burned: AugmentedEvent<ApiType, [collection: u32, item: u32, owner: AccountId32], { collection: u32, item: u32, owner: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* A `collection` has had its config changed by the `Force` origin.
|
||||||
|
**/
|
||||||
|
CollectionConfigChanged: AugmentedEvent<ApiType, [collection: u32], { collection: u32 }>;
|
||||||
|
/**
|
||||||
|
* Some `collection` was locked.
|
||||||
|
**/
|
||||||
|
CollectionLocked: AugmentedEvent<ApiType, [collection: u32], { collection: u32 }>;
|
||||||
|
/**
|
||||||
|
* Max supply has been set for a collection.
|
||||||
|
**/
|
||||||
|
CollectionMaxSupplySet: AugmentedEvent<ApiType, [collection: u32, maxSupply: u32], { collection: u32, maxSupply: u32 }>;
|
||||||
|
/**
|
||||||
|
* Metadata has been cleared for a `collection`.
|
||||||
|
**/
|
||||||
|
CollectionMetadataCleared: AugmentedEvent<ApiType, [collection: u32], { collection: u32 }>;
|
||||||
|
/**
|
||||||
|
* New metadata has been set for a `collection`.
|
||||||
|
**/
|
||||||
|
CollectionMetadataSet: AugmentedEvent<ApiType, [collection: u32, data: Bytes], { collection: u32, data: Bytes }>;
|
||||||
|
/**
|
||||||
|
* Mint settings for a collection had changed.
|
||||||
|
**/
|
||||||
|
CollectionMintSettingsUpdated: AugmentedEvent<ApiType, [collection: u32], { collection: u32 }>;
|
||||||
|
/**
|
||||||
|
* A `collection` was created.
|
||||||
|
**/
|
||||||
|
Created: AugmentedEvent<ApiType, [collection: u32, creator: AccountId32, owner: AccountId32], { collection: u32, creator: AccountId32, owner: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* A `collection` was destroyed.
|
||||||
|
**/
|
||||||
|
Destroyed: AugmentedEvent<ApiType, [collection: u32], { collection: u32 }>;
|
||||||
|
/**
|
||||||
|
* A `collection` was force-created.
|
||||||
|
**/
|
||||||
|
ForceCreated: AugmentedEvent<ApiType, [collection: u32, owner: AccountId32], { collection: u32, owner: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* An `item` was issued.
|
||||||
|
**/
|
||||||
|
Issued: AugmentedEvent<ApiType, [collection: u32, item: u32, owner: AccountId32], { collection: u32, item: u32, owner: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* A new approval to modify item attributes was added.
|
||||||
|
**/
|
||||||
|
ItemAttributesApprovalAdded: AugmentedEvent<ApiType, [collection: u32, item: u32, delegate: AccountId32], { collection: u32, item: u32, delegate: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* A new approval to modify item attributes was removed.
|
||||||
|
**/
|
||||||
|
ItemAttributesApprovalRemoved: AugmentedEvent<ApiType, [collection: u32, item: u32, delegate: AccountId32], { collection: u32, item: u32, delegate: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* An item was bought.
|
||||||
|
**/
|
||||||
|
ItemBought: AugmentedEvent<ApiType, [collection: u32, item: u32, price: u128, seller: AccountId32, buyer: AccountId32], { collection: u32, item: u32, price: u128, seller: AccountId32, buyer: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* Metadata has been cleared for an item.
|
||||||
|
**/
|
||||||
|
ItemMetadataCleared: AugmentedEvent<ApiType, [collection: u32, item: u32], { collection: u32, item: u32 }>;
|
||||||
|
/**
|
||||||
|
* New metadata has been set for an item.
|
||||||
|
**/
|
||||||
|
ItemMetadataSet: AugmentedEvent<ApiType, [collection: u32, item: u32, data: Bytes], { collection: u32, item: u32, data: Bytes }>;
|
||||||
|
/**
|
||||||
|
* The price for the item was removed.
|
||||||
|
**/
|
||||||
|
ItemPriceRemoved: AugmentedEvent<ApiType, [collection: u32, item: u32], { collection: u32, item: u32 }>;
|
||||||
|
/**
|
||||||
|
* The price was set for the item.
|
||||||
|
**/
|
||||||
|
ItemPriceSet: AugmentedEvent<ApiType, [collection: u32, item: u32, price: u128, whitelistedBuyer: Option<AccountId32>], { collection: u32, item: u32, price: u128, whitelistedBuyer: Option<AccountId32> }>;
|
||||||
|
/**
|
||||||
|
* `item` metadata or attributes were locked.
|
||||||
|
**/
|
||||||
|
ItemPropertiesLocked: AugmentedEvent<ApiType, [collection: u32, item: u32, lockMetadata: bool, lockAttributes: bool], { collection: u32, item: u32, lockMetadata: bool, lockAttributes: bool }>;
|
||||||
|
/**
|
||||||
|
* An `item` became non-transferable.
|
||||||
|
**/
|
||||||
|
ItemTransferLocked: AugmentedEvent<ApiType, [collection: u32, item: u32], { collection: u32, item: u32 }>;
|
||||||
|
/**
|
||||||
|
* An `item` became transferable.
|
||||||
|
**/
|
||||||
|
ItemTransferUnlocked: AugmentedEvent<ApiType, [collection: u32, item: u32], { collection: u32, item: u32 }>;
|
||||||
|
/**
|
||||||
|
* Event gets emitted when the `NextCollectionId` gets incremented.
|
||||||
|
**/
|
||||||
|
NextCollectionIdIncremented: AugmentedEvent<ApiType, [nextId: u32], { nextId: u32 }>;
|
||||||
|
/**
|
||||||
|
* The owner changed.
|
||||||
|
**/
|
||||||
|
OwnerChanged: AugmentedEvent<ApiType, [collection: u32, newOwner: AccountId32], { collection: u32, newOwner: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* Ownership acceptance has changed for an account.
|
||||||
|
**/
|
||||||
|
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.
|
||||||
|
**/
|
||||||
|
Redeposited: AugmentedEvent<ApiType, [collection: u32, successfulItems: Vec<u32>], { collection: u32, successfulItems: Vec<u32> }>;
|
||||||
|
/**
|
||||||
|
* The swap was cancelled.
|
||||||
|
**/
|
||||||
|
SwapCancelled: AugmentedEvent<ApiType, [offeredCollection: u32, offeredItem: u32, desiredCollection: u32, desiredItem: Option<u32>, price: Option<PalletNftsPriceWithDirection>, deadline: u32], { offeredCollection: u32, offeredItem: u32, desiredCollection: u32, desiredItem: Option<u32>, price: Option<PalletNftsPriceWithDirection>, deadline: u32 }>;
|
||||||
|
/**
|
||||||
|
* The swap has been claimed.
|
||||||
|
**/
|
||||||
|
SwapClaimed: AugmentedEvent<ApiType, [sentCollection: u32, sentItem: u32, sentItemOwner: AccountId32, receivedCollection: u32, receivedItem: u32, receivedItemOwner: AccountId32, price: Option<PalletNftsPriceWithDirection>, deadline: u32], { sentCollection: u32, sentItem: u32, sentItemOwner: AccountId32, receivedCollection: u32, receivedItem: u32, receivedItemOwner: AccountId32, price: Option<PalletNftsPriceWithDirection>, deadline: u32 }>;
|
||||||
|
/**
|
||||||
|
* An `item` swap intent was created.
|
||||||
|
**/
|
||||||
|
SwapCreated: AugmentedEvent<ApiType, [offeredCollection: u32, offeredItem: u32, desiredCollection: u32, desiredItem: Option<u32>, price: Option<PalletNftsPriceWithDirection>, deadline: u32], { offeredCollection: u32, offeredItem: u32, desiredCollection: u32, desiredItem: Option<u32>, price: Option<PalletNftsPriceWithDirection>, deadline: u32 }>;
|
||||||
|
/**
|
||||||
|
* The management team changed.
|
||||||
|
**/
|
||||||
|
TeamChanged: AugmentedEvent<ApiType, [collection: u32, issuer: AccountId32, admin: AccountId32, freezer: AccountId32], { collection: u32, issuer: AccountId32, admin: AccountId32, freezer: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* A tip was sent.
|
||||||
|
**/
|
||||||
|
TipSent: AugmentedEvent<ApiType, [collection: u32, item: u32, sender: AccountId32, receiver: AccountId32, amount: u128], { collection: u32, item: u32, sender: AccountId32, receiver: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* An `item` of a `collection` has been approved by the `owner` for transfer by
|
||||||
|
* a `delegate`.
|
||||||
|
**/
|
||||||
|
TransferApproved: AugmentedEvent<ApiType, [collection: u32, item: u32, owner: AccountId32, delegate: AccountId32, deadline: Option<u32>], { collection: u32, item: u32, owner: AccountId32, delegate: AccountId32, deadline: Option<u32> }>;
|
||||||
|
/**
|
||||||
|
* An `item` was transferred.
|
||||||
|
**/
|
||||||
|
Transferred: AugmentedEvent<ApiType, [collection: u32, item: u32, from: AccountId32, to: AccountId32], { collection: u32, item: u32, from: AccountId32, to: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* Generic event
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
|
};
|
||||||
|
nis: {
|
||||||
|
/**
|
||||||
|
* A bid was dropped from a queue because of another, more substantial, bid was present.
|
||||||
|
**/
|
||||||
|
BidDropped: AugmentedEvent<ApiType, [who: AccountId32, amount: u128, duration: u32], { who: AccountId32, amount: u128, duration: u32 }>;
|
||||||
|
/**
|
||||||
|
* A bid was successfully placed.
|
||||||
|
**/
|
||||||
|
BidPlaced: AugmentedEvent<ApiType, [who: AccountId32, amount: u128, duration: u32], { who: AccountId32, amount: u128, duration: u32 }>;
|
||||||
|
/**
|
||||||
|
* A bid was successfully removed (before being accepted).
|
||||||
|
**/
|
||||||
|
BidRetracted: AugmentedEvent<ApiType, [who: AccountId32, amount: u128, duration: u32], { who: AccountId32, amount: u128, duration: u32 }>;
|
||||||
|
/**
|
||||||
|
* An automatic funding of the deficit was made.
|
||||||
|
**/
|
||||||
|
Funded: AugmentedEvent<ApiType, [deficit: u128], { deficit: u128 }>;
|
||||||
|
/**
|
||||||
|
* A bid was accepted. The balance may not be released until expiry.
|
||||||
|
**/
|
||||||
|
Issued: AugmentedEvent<ApiType, [index: u32, expiry: u32, who: AccountId32, proportion: Perquintill, amount: u128], { index: u32, expiry: u32, who: AccountId32, proportion: Perquintill, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* An receipt has been (at least partially) thawed.
|
||||||
|
**/
|
||||||
|
Thawed: AugmentedEvent<ApiType, [index: u32, who: AccountId32, proportion: Perquintill, amount: u128, dropped: bool], { index: u32, who: AccountId32, proportion: Perquintill, amount: u128, dropped: bool }>;
|
||||||
|
/**
|
||||||
|
* A receipt was transfered.
|
||||||
|
**/
|
||||||
|
Transferred: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, index: u32], { from: AccountId32, to: AccountId32, index: u32 }>;
|
||||||
|
/**
|
||||||
|
* Generic event
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
|
};
|
||||||
nominationPools: {
|
nominationPools: {
|
||||||
/**
|
/**
|
||||||
* A member has became bonded in a pool.
|
* A member has became bonded in a pool.
|
||||||
@@ -782,7 +1024,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
|
||||||
**/
|
**/
|
||||||
@@ -831,6 +1073,13 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
};
|
};
|
||||||
|
pov: {
|
||||||
|
TestEvent: AugmentedEvent<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Generic event
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
|
};
|
||||||
preimage: {
|
preimage: {
|
||||||
/**
|
/**
|
||||||
* A preimage has ben cleared.
|
* A preimage has ben cleared.
|
||||||
@@ -934,10 +1183,22 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A referendum has been killed.
|
* A referendum has been killed.
|
||||||
**/
|
**/
|
||||||
Killed: AugmentedEvent<ApiType, [index: u32, tally: PalletRankedCollectiveTally], { index: u32, tally: PalletRankedCollectiveTally }>;
|
Killed: AugmentedEvent<ApiType, [index: u32, tally: PalletRankedCollectiveTally], { index: u32, tally: PalletRankedCollectiveTally }>;
|
||||||
|
/**
|
||||||
|
* 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.
|
* A proposal has been rejected by referendum.
|
||||||
**/
|
**/
|
||||||
Rejected: AugmentedEvent<ApiType, [index: u32, tally: PalletRankedCollectiveTally], { index: u32, tally: PalletRankedCollectiveTally }>;
|
Rejected: AugmentedEvent<ApiType, [index: u32, tally: PalletRankedCollectiveTally], { index: u32, tally: PalletRankedCollectiveTally }>;
|
||||||
|
/**
|
||||||
|
* 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.
|
* A referendum has been submitted.
|
||||||
**/
|
**/
|
||||||
@@ -1016,10 +1277,22 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A referendum has been killed.
|
* A referendum has been killed.
|
||||||
**/
|
**/
|
||||||
Killed: AugmentedEvent<ApiType, [index: u32, tally: PalletConvictionVotingTally], { index: u32, tally: PalletConvictionVotingTally }>;
|
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.
|
* A proposal has been rejected by referendum.
|
||||||
**/
|
**/
|
||||||
Rejected: AugmentedEvent<ApiType, [index: u32, tally: PalletConvictionVotingTally], { index: u32, tally: PalletConvictionVotingTally }>;
|
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.
|
* A referendum has been submitted.
|
||||||
**/
|
**/
|
||||||
@@ -1043,6 +1316,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.
|
||||||
@@ -1127,6 +1422,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A new \[max\] member count has been set
|
* A new \[max\] member count has been set
|
||||||
**/
|
**/
|
||||||
NewMaxMembers: AugmentedEvent<ApiType, [max: u32], { max: u32 }>;
|
NewMaxMembers: AugmentedEvent<ApiType, [max: u32], { max: u32 }>;
|
||||||
|
/**
|
||||||
|
* A group of members has been choosen as Skeptics
|
||||||
|
**/
|
||||||
|
SkepticsChosen: AugmentedEvent<ApiType, [skeptics: Vec<AccountId32>], { skeptics: Vec<AccountId32> }>;
|
||||||
/**
|
/**
|
||||||
* A suspended member has been judged.
|
* A suspended member has been judged.
|
||||||
**/
|
**/
|
||||||
@@ -1174,6 +1473,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* the remainder from the maximum amount of reward.
|
* the remainder from the maximum amount of reward.
|
||||||
**/
|
**/
|
||||||
EraPaid: AugmentedEvent<ApiType, [eraIndex: u32, validatorPayout: u128, remainder: u128], { eraIndex: u32, validatorPayout: u128, remainder: u128 }>;
|
EraPaid: AugmentedEvent<ApiType, [eraIndex: u32, validatorPayout: u128, remainder: u128], { eraIndex: u32, validatorPayout: u128, remainder: u128 }>;
|
||||||
|
/**
|
||||||
|
* A new force era mode was set.
|
||||||
|
**/
|
||||||
|
ForceEra: AugmentedEvent<ApiType, [mode: PalletStakingForcing], { mode: PalletStakingForcing }>;
|
||||||
/**
|
/**
|
||||||
* A nominator has been kicked from a validator.
|
* A nominator has been kicked from a validator.
|
||||||
**/
|
**/
|
||||||
@@ -1192,9 +1495,14 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
Rewarded: AugmentedEvent<ApiType, [stash: AccountId32, amount: u128], { stash: AccountId32, amount: u128 }>;
|
Rewarded: AugmentedEvent<ApiType, [stash: AccountId32, amount: u128], { stash: AccountId32, amount: u128 }>;
|
||||||
/**
|
/**
|
||||||
* One staker (and potentially its nominators) has been slashed by the given amount.
|
* A staker (validator or nominator) has been slashed by the given amount.
|
||||||
**/
|
**/
|
||||||
Slashed: AugmentedEvent<ApiType, [staker: AccountId32, amount: u128], { staker: AccountId32, amount: u128 }>;
|
Slashed: AugmentedEvent<ApiType, [staker: AccountId32, amount: u128], { staker: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* A slash for the given validator, for the given percentage of their stake, at the given
|
||||||
|
* era as been reported.
|
||||||
|
**/
|
||||||
|
SlashReported: AugmentedEvent<ApiType, [validator: AccountId32, fraction: Perbill, slashEra: u32], { validator: AccountId32, fraction: Perbill, slashEra: u32 }>;
|
||||||
/**
|
/**
|
||||||
* A new set of stakers was elected.
|
* A new set of stakers was elected.
|
||||||
**/
|
**/
|
||||||
@@ -1446,6 +1754,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* We have ended a spend period and will now allocate funds.
|
* We have ended a spend period and will now allocate funds.
|
||||||
**/
|
**/
|
||||||
Spending: AugmentedEvent<ApiType, [budgetRemaining: u128], { budgetRemaining: u128 }>;
|
Spending: AugmentedEvent<ApiType, [budgetRemaining: u128], { budgetRemaining: u128 }>;
|
||||||
|
/**
|
||||||
|
* The inactive funds of the pallet have been updated.
|
||||||
|
**/
|
||||||
|
UpdatedInactive: AugmentedEvent<ApiType, [reactivated: u128, deactivated: u128], { reactivated: u128, deactivated: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
// Copyright 2017-2022 @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 { Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { BTreeSet, Bytes, Null, Option, 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, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletedContract, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, 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, 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, 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>;
|
||||||
@@ -30,7 +30,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* Maps member type to members of each type.
|
* Maps member type to members of each type.
|
||||||
**/
|
**/
|
||||||
members: AugmentedQuery<ApiType, (arg: PalletAllianceMemberRole | 'Founder' | 'Fellow' | 'Ally' | 'Retiring' | number | Uint8Array) => Observable<Vec<AccountId32>>, [PalletAllianceMemberRole]> & QueryableStorageEntry<ApiType, [PalletAllianceMemberRole]>;
|
members: AugmentedQuery<ApiType, (arg: PalletAllianceMemberRole | 'Fellow' | 'Ally' | 'Retiring' | number | Uint8Array) => Observable<Vec<AccountId32>>, [PalletAllianceMemberRole]> & QueryableStorageEntry<ApiType, [PalletAllianceMemberRole]>;
|
||||||
/**
|
/**
|
||||||
* A set of members who gave a retirement notice. They can retire after the end of retirement
|
* A set of members who gave a retirement notice. They can retire after the end of retirement
|
||||||
* period stored as a future block number.
|
* period stored as a future block number.
|
||||||
@@ -38,9 +38,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
retiringMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
retiringMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* The IPFS CID of the alliance rule.
|
* The IPFS CID of the alliance rule.
|
||||||
* Founders and fellows can propose a new rule with a super-majority.
|
* Fellows can propose a new rule with a super-majority.
|
||||||
*
|
|
||||||
* Any founder has a special one-vote veto right to the rule setting.
|
|
||||||
**/
|
**/
|
||||||
rule: AugmentedQuery<ApiType, () => Observable<Option<PalletAllianceCid>>, []> & QueryableStorageEntry<ApiType, []>;
|
rule: AugmentedQuery<ApiType, () => Observable<Option<PalletAllianceCid>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
@@ -130,14 +128,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Author of current block.
|
* Author of current block.
|
||||||
**/
|
**/
|
||||||
author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
|
||||||
* Whether uncles were already set in this block.
|
|
||||||
**/
|
|
||||||
didSetUncles: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
||||||
/**
|
|
||||||
* Uncles
|
|
||||||
**/
|
|
||||||
uncles: AugmentedQuery<ApiType, () => Observable<Vec<PalletAuthorshipUncleEntryItem>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -236,6 +226,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.
|
||||||
**/
|
**/
|
||||||
@@ -273,6 +274,10 @@ 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]>;
|
||||||
|
/**
|
||||||
|
* The total units of outstanding deactivated balance in the system.
|
||||||
|
**/
|
||||||
|
inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Any liquidity locks on some account balances.
|
* Any liquidity locks on some account balances.
|
||||||
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
||||||
@@ -282,12 +287,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Named reserves on some account balances.
|
* Named reserves on some account balances.
|
||||||
**/
|
**/
|
||||||
reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
|
||||||
* Storage version of the pallet.
|
|
||||||
*
|
|
||||||
* This is set to v2.0.0 for new networks.
|
|
||||||
**/
|
|
||||||
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletBalancesReleases>, []> & QueryableStorageEntry<ApiType, []>;
|
|
||||||
/**
|
/**
|
||||||
* The total units issued in the system.
|
* The total units issued in the system.
|
||||||
**/
|
**/
|
||||||
@@ -475,6 +474,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* `ReferendumCount` if there isn't a unbaked referendum.
|
* `ReferendumCount` if there isn't a unbaked referendum.
|
||||||
**/
|
**/
|
||||||
lowestUnbaked: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
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.
|
* 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:
|
* This happens when a referendum needs to be tabled and one of two conditions are met:
|
||||||
@@ -651,6 +659,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The map of all accounts wishing to be unstaked.
|
* The map of all accounts wishing to be unstaked.
|
||||||
*
|
*
|
||||||
* Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
|
* Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
queue: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
queue: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -658,27 +668,32 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
gilt: {
|
glutton: {
|
||||||
/**
|
/**
|
||||||
* The currently active gilts, indexed according to the order of creation.
|
* Storage value used to specify what percentage of the left over `ref_time`
|
||||||
|
* to consume during `on_idle`.
|
||||||
**/
|
**/
|
||||||
active: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletGiltActiveGilt>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
compute: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Information relating to the gilts currently active.
|
* Storage value used the specify what percentage of left over `proof_size`
|
||||||
|
* to consume during `on_idle`.
|
||||||
**/
|
**/
|
||||||
activeTotal: AugmentedQuery<ApiType, () => Observable<PalletGiltActiveGiltsTotal>, []> & QueryableStorageEntry<ApiType, []>;
|
storage: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The queues of bids ready to become gilts. Indexed by duration (in `Period`s).
|
* Storage map used for wasting proof size.
|
||||||
**/
|
|
||||||
queues: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletGiltGiltBid>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
||||||
/**
|
|
||||||
* The totals of items and balances within each queue. Saves a lot of storage reads in the
|
|
||||||
* case of sparsely packed queues.
|
|
||||||
*
|
*
|
||||||
* The vector is indexed by duration in `Period`s, offset by one, so information on the queue
|
* It contains no meaningful data - hence the name "Trash". The maximal number of entries is
|
||||||
* whose duration is one `Period` would be storage `0`.
|
* 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.
|
||||||
**/
|
**/
|
||||||
queueTotals: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u128]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
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
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -702,6 +717,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* A mapping from grandpa set ID to the index of the *most recent* session for which its
|
* A mapping from grandpa set ID to the index of the *most recent* session for which its
|
||||||
* members were responsible.
|
* members were responsible.
|
||||||
*
|
*
|
||||||
|
* This is only used for validating equivocation proofs. An equivocation proof must
|
||||||
|
* contains a key-ownership proof for a given session, therefore we need a way to tie
|
||||||
|
* together sessions and GRANDPA set ids, i.e. we need to validate that a validator
|
||||||
|
* was the owner of a given key on a given session, and what the active set ID was
|
||||||
|
* during that session.
|
||||||
|
*
|
||||||
* TWOX-NOTE: `SetId` is not under user control.
|
* TWOX-NOTE: `SetId` is not under user control.
|
||||||
**/
|
**/
|
||||||
setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
||||||
@@ -825,6 +846,24 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
|
messageQueue: {
|
||||||
|
/**
|
||||||
|
* The index of the first and last (non-empty) pages.
|
||||||
|
**/
|
||||||
|
bookStateFor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletMessageQueueBookState>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* The map of page indices to pages.
|
||||||
|
**/
|
||||||
|
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.
|
||||||
|
**/
|
||||||
|
serviceHead: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Generic query
|
||||||
|
**/
|
||||||
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
|
};
|
||||||
mmr: {
|
mmr: {
|
||||||
/**
|
/**
|
||||||
* Hashes of the nodes in the MMR.
|
* Hashes of the nodes in the MMR.
|
||||||
@@ -856,11 +895,111 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
|
nfts: {
|
||||||
|
/**
|
||||||
|
* The items held by any given account; set out this way so that items owned by a single
|
||||||
|
* account can be enumerated.
|
||||||
|
**/
|
||||||
|
account: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<Option<Null>>, [AccountId32, u32, u32]> & QueryableStorageEntry<ApiType, [AccountId32, u32, u32]>;
|
||||||
|
/**
|
||||||
|
* Attributes of a collection.
|
||||||
|
**/
|
||||||
|
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.
|
||||||
|
**/
|
||||||
|
collection: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsCollectionDetails>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* The collections owned by any given account; set out this way so that collections owned by
|
||||||
|
* a single account can be enumerated.
|
||||||
|
**/
|
||||||
|
collectionAccount: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<Null>>, [AccountId32, u32]> & QueryableStorageEntry<ApiType, [AccountId32, u32]>;
|
||||||
|
/**
|
||||||
|
* Config of a collection.
|
||||||
|
**/
|
||||||
|
collectionConfigOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsCollectionConfig>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* Metadata of a collection.
|
||||||
|
**/
|
||||||
|
collectionMetadataOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsCollectionMetadata>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* The items in existence and their ownership details.
|
||||||
|
* Stores collection roles as per account.
|
||||||
|
**/
|
||||||
|
collectionRoleOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u8>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||||
|
/**
|
||||||
|
* The items in existence and their ownership details.
|
||||||
|
**/
|
||||||
|
item: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsItemDetails>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||||
|
/**
|
||||||
|
* Item attribute approvals.
|
||||||
|
**/
|
||||||
|
itemAttributesApprovalsOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<BTreeSet<AccountId32>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||||
|
/**
|
||||||
|
* Config of an item.
|
||||||
|
**/
|
||||||
|
itemConfigOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsItemConfig>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||||
|
/**
|
||||||
|
* Metadata of an item.
|
||||||
|
**/
|
||||||
|
itemMetadataOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsItemMetadata>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||||
|
/**
|
||||||
|
* A price of an item.
|
||||||
|
**/
|
||||||
|
itemPriceOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[u128, Option<AccountId32>]>>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||||
|
/**
|
||||||
|
* Stores the `CollectionId` that is going to be used for the next collection.
|
||||||
|
* This gets incremented whenever a new collection is created.
|
||||||
|
**/
|
||||||
|
nextCollectionId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* The collection, if any, of which an account is willing to take ownership.
|
||||||
|
**/
|
||||||
|
ownershipAcceptance: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* Handles all the pending swaps.
|
||||||
|
**/
|
||||||
|
pendingSwapOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsPendingSwap>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||||
|
/**
|
||||||
|
* Generic query
|
||||||
|
**/
|
||||||
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
|
};
|
||||||
|
nis: {
|
||||||
|
/**
|
||||||
|
* The queues of bids. Indexed by duration (in `Period`s).
|
||||||
|
**/
|
||||||
|
queues: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletNisBid>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* The totals of items and balances within each queue. Saves a lot of storage reads in the
|
||||||
|
* case of sparsely packed queues.
|
||||||
|
*
|
||||||
|
* The vector is indexed by duration in `Period`s, offset by one, so information on the queue
|
||||||
|
* whose duration is one `Period` would be storage `0`.
|
||||||
|
**/
|
||||||
|
queueTotals: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u128]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* The currently outstanding receipts, indexed according to the order of creation.
|
||||||
|
**/
|
||||||
|
receipts: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNisReceiptRecord>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* Summary information over the general state.
|
||||||
|
**/
|
||||||
|
summary: AugmentedQuery<ApiType, () => Observable<PalletNisSummaryRecord>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Generic query
|
||||||
|
**/
|
||||||
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
|
};
|
||||||
nominationPools: {
|
nominationPools: {
|
||||||
/**
|
/**
|
||||||
* 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
|
||||||
**/
|
**/
|
||||||
@@ -924,6 +1063,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
minJoinBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
minJoinBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Active members.
|
* Active members.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
poolMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletNominationPoolsPoolMember>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
poolMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletNominationPoolsPoolMember>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -971,6 +1112,39 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
|
pov: {
|
||||||
|
/**
|
||||||
|
* A value with a MEL bound of 32 byte.
|
||||||
|
**/
|
||||||
|
boundedValue: AugmentedQuery<ApiType, () => Observable<Option<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
doubleMap1M: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||||
|
/**
|
||||||
|
* 4MiB value.
|
||||||
|
**/
|
||||||
|
largeValue: AugmentedQuery<ApiType, () => Observable<Option<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
largeValue2: AugmentedQuery<ApiType, () => Observable<Option<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* A map with a maximum of 16M entries.
|
||||||
|
**/
|
||||||
|
map16M: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* A map with a maximum of 1M entries.
|
||||||
|
**/
|
||||||
|
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]>;
|
||||||
|
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.
|
||||||
|
**/
|
||||||
|
unboundedValue: AugmentedQuery<ApiType, () => Observable<Option<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
value: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
value2: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Generic query
|
||||||
|
**/
|
||||||
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
|
};
|
||||||
preimage: {
|
preimage: {
|
||||||
preimageFor: AugmentedQuery<ApiType, (arg: ITuple<[H256, u32]> | [H256 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<Bytes>>, [ITuple<[H256, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[H256, u32]>]>;
|
preimageFor: AugmentedQuery<ApiType, (arg: ITuple<[H256, u32]> | [H256 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<Bytes>>, [ITuple<[H256, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[H256, u32]>]>;
|
||||||
/**
|
/**
|
||||||
@@ -1043,6 +1217,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The number of referenda being decided currently.
|
* The number of referenda being decided currently.
|
||||||
**/
|
**/
|
||||||
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
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.
|
* The next free referendum index, aka the number of referenda started so far.
|
||||||
**/
|
**/
|
||||||
@@ -1091,6 +1274,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The number of referenda being decided currently.
|
* The number of referenda being decided currently.
|
||||||
**/
|
**/
|
||||||
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
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.
|
* The next free referendum index, aka the number of referenda started so far.
|
||||||
**/
|
**/
|
||||||
@@ -1111,6 +1303,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.
|
||||||
@@ -1250,6 +1456,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
activeEra: AugmentedQuery<ApiType, () => Observable<Option<PalletStakingActiveEraInfo>>, []> & QueryableStorageEntry<ApiType, []>;
|
activeEra: AugmentedQuery<ApiType, () => Observable<Option<PalletStakingActiveEraInfo>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Map from all locked "stash" accounts to the controller account.
|
* Map from all locked "stash" accounts to the controller account.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
bonded: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<AccountId32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
bonded: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<AccountId32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1377,6 +1585,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* If set to `0`, no limit exists.
|
* If set to `0`, no limit exists.
|
||||||
**/
|
**/
|
||||||
minCommission: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
|
minCommission: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* The minimum active nominator stake of the last successful election.
|
||||||
|
**/
|
||||||
|
minimumActiveStake: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Minimum number of staking participants before emergency conditions are imposed.
|
* Minimum number of staking participants before emergency conditions are imposed.
|
||||||
**/
|
**/
|
||||||
@@ -1406,6 +1618,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
*
|
*
|
||||||
* Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
|
* Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
|
||||||
* [`Call::chill_other`] dispatchable by anyone.
|
* [`Call::chill_other`] dispatchable by anyone.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1426,6 +1640,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Where the reward payment should be made. Keyed by stash.
|
* Where the reward payment should be made. Keyed by stash.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingRewardDestination>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingRewardDestination>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1443,13 +1659,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* as well as how much reward has been paid out.
|
* as well as how much reward has been paid out.
|
||||||
**/
|
**/
|
||||||
spanSlash: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<PalletStakingSlashingSpanRecord>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[AccountId32, u32]>]>;
|
spanSlash: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<PalletStakingSlashingSpanRecord>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[AccountId32, u32]>]>;
|
||||||
/**
|
|
||||||
* True if network has been upgraded to this version.
|
|
||||||
* Storage version of the pallet.
|
|
||||||
*
|
|
||||||
* This is set to v7.0.0 for new networks.
|
|
||||||
**/
|
|
||||||
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletStakingReleases>, []> & QueryableStorageEntry<ApiType, []>;
|
|
||||||
/**
|
/**
|
||||||
* All unapplied slashes that are queued for later.
|
* All unapplied slashes that are queued for later.
|
||||||
**/
|
**/
|
||||||
@@ -1460,6 +1669,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The map from (wannabe) validator stash key to the preferences of that validator.
|
* The map from (wannabe) validator stash key to the preferences of that validator.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
validators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
validators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1713,6 +1924,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Proposal indices that have been approved but not yet awarded.
|
* Proposal indices that have been approved but not yet awarded.
|
||||||
**/
|
**/
|
||||||
approvals: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
approvals: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* The amount which has been reported as inactive to Currency.
|
||||||
|
**/
|
||||||
|
deactivated: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Number of proposals that have been made.
|
* Number of proposals that have been made.
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @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 '@polkadot/types-augment/registry/substrate';
|
import '@polkadot/types-augment/registry/substrate';
|
||||||
|
|||||||
@@ -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';
|
||||||
@@ -17,8 +18,10 @@ 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, MmrLeafIndex, MmrProof } 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, WeightV2 } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, Block, 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: {
|
||||||
/**
|
/**
|
||||||
@@ -181,7 +195,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[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 a series of leaves under given indices.
|
||||||
@@ -216,12 +230,51 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[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
|
||||||
|
**/
|
||||||
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
|
};
|
||||||
/** 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 +306,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: {
|
||||||
/**
|
/**
|
||||||
@@ -264,7 +328,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0x37c8bb1350a9a2a8/2 */
|
/** 0x37c8bb1350a9a2a8/3 */
|
||||||
transactionPaymentApi: {
|
transactionPaymentApi: {
|
||||||
/**
|
/**
|
||||||
* The transaction fee details
|
* The transaction fee details
|
||||||
@@ -274,12 +338,20 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
* The transaction info
|
* The transaction info
|
||||||
**/
|
**/
|
||||||
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
||||||
|
/**
|
||||||
|
* Query the output of the current LengthToFee given some input
|
||||||
|
**/
|
||||||
|
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||||
|
/**
|
||||||
|
* Query the output of the current WeightToFee given some input
|
||||||
|
**/
|
||||||
|
queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;
|
||||||
/**
|
/**
|
||||||
* Generic call
|
* Generic call
|
||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0xf3ff14d5ab527059/2 */
|
/** 0xf3ff14d5ab527059/3 */
|
||||||
transactionPaymentCallApi: {
|
transactionPaymentCallApi: {
|
||||||
/**
|
/**
|
||||||
* The call fee details
|
* The call fee details
|
||||||
@@ -289,6 +361,14 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
* The call info
|
* The call info
|
||||||
**/
|
**/
|
||||||
queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
||||||
|
/**
|
||||||
|
* Query the output of the current LengthToFee given some input
|
||||||
|
**/
|
||||||
|
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||||
|
/**
|
||||||
|
* Query the output of the current WeightToFee given some input
|
||||||
|
**/
|
||||||
|
queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;
|
||||||
/**
|
/**
|
||||||
* Generic call
|
* Generic call
|
||||||
**/
|
**/
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -15,7 +15,6 @@
|
|||||||
{ "path": "../rpc-augment/tsconfig.build.json" },
|
{ "path": "../rpc-augment/tsconfig.build.json" },
|
||||||
{ "path": "../types/tsconfig.build.json" },
|
{ "path": "../types/tsconfig.build.json" },
|
||||||
{ "path": "../types-codec/tsconfig.build.json" },
|
{ "path": "../types-codec/tsconfig.build.json" },
|
||||||
{ "path": "../types-augment/tsconfig.build.json" },
|
{ "path": "../types-augment/tsconfig.build.json" }
|
||||||
{ "path": "../types-support/tsconfig.build.json" }
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,201 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
@@ -20,13 +20,13 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.8.1",
|
"version": "10.1.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.1",
|
"@polkadot/rpc-core": "10.1.1",
|
||||||
"@polkadot/rpc-core": "9.8.1",
|
"@polkadot/types": "10.1.1",
|
||||||
"@polkadot/types": "9.8.1",
|
"@polkadot/util": "^11.0.2",
|
||||||
"@polkadot/util": "^10.1.12",
|
"rxjs": "^7.8.0",
|
||||||
"rxjs": "^7.5.7"
|
"tslib": "^2.5.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @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';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @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 { packageInfo as rpcInfo } from '@polkadot/rpc-core/packageInfo';
|
import { packageInfo as rpcInfo } from '@polkadot/rpc-core/packageInfo';
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
// Copyright 2017-2022 @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
|
||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
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-2022 @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-2022 @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';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2022 @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
|
||||||
|
|
||||||
// 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.8.1' };
|
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '10.1.1' };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @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 type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @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 type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
// Copyright 2017-2022 @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 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, 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'
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
// Copyright 2017-2022 @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 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 } from './base.js';
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
export interface AugmentedConst<ApiType extends ApiTypes> {
|
export interface AugmentedConst<ApiType extends ApiTypes> {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @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 type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// Copyright 2017-2022 @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 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 } from './base.js';
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
export type AugmentedError<ApiType extends ApiTypes> = IsError;
|
export type AugmentedError<ApiType extends ApiTypes> = IsError;
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
// Copyright 2017-2022 @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 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 } from './base.js';
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
export type AugmentedEvent<ApiType 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>;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @polkadot/api authors & contributors
|
// Copyright 2017-2023 @polkadot/api authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// These are augmented, do an augmentation export
|
// These are augmented, do an augmentation export
|
||||||
@@ -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';
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
// Copyright 2017-2022 @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 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';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @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 type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
@@ -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, 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[]>;
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
// Copyright 2017-2022 @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 type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { AccountId, Address, ApplyExtrinsicResult, 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, 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>;
|
||||||
|
|
||||||
@@ -47,6 +47,7 @@ export interface SubmittableResultValue {
|
|||||||
status: ExtrinsicStatus;
|
status: ExtrinsicStatus;
|
||||||
txHash: Hash;
|
txHash: Hash;
|
||||||
txIndex?: number;
|
txIndex?: number;
|
||||||
|
blockNumber?: BlockNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SubmittableExtrinsic<ApiType extends ApiTypes, R extends ISubmittableResult = ISubmittableResult> extends Extrinsic {
|
export interface SubmittableExtrinsic<ApiType extends ApiTypes, R extends ISubmittableResult = ISubmittableResult> extends Extrinsic {
|
||||||
|
|||||||
@@ -1,201 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
@@ -20,20 +20,20 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.8.1",
|
"version": "10.1.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.1",
|
"@polkadot/api": "10.1.1",
|
||||||
"@polkadot/api": "9.8.1",
|
"@polkadot/types": "10.1.1",
|
||||||
"@polkadot/types": "9.8.1",
|
"@polkadot/types-codec": "10.1.1",
|
||||||
"@polkadot/types-codec": "9.8.1",
|
"@polkadot/types-create": "10.1.1",
|
||||||
"@polkadot/types-create": "9.8.1",
|
"@polkadot/util": "^11.0.2",
|
||||||
"@polkadot/util": "^10.1.12",
|
"@polkadot/util-crypto": "^11.0.2",
|
||||||
"@polkadot/util-crypto": "^10.1.12",
|
"rxjs": "^7.8.0",
|
||||||
"rxjs": "^7.5.7"
|
"tslib": "^2.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api-augment": "9.8.1",
|
"@polkadot/api-augment": "10.1.1",
|
||||||
"@polkadot/keyring": "^10.1.12"
|
"@polkadot/keyring": "^11.0.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,19 @@
|
|||||||
// Copyright 2017-2022 @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/node/test/node" />
|
||||||
|
|
||||||
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 '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: {
|
||||||
@@ -41,6 +44,9 @@ interface JSONAbi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME When Jest is removed with ESM tests, this should be converted to use import.meta.url
|
||||||
|
const cmpPath = path.join(process.cwd(), 'packages/api-contract/src/test/compare');
|
||||||
|
|
||||||
function stringifyInfo (key: string, value: unknown): unknown {
|
function stringifyInfo (key: string, value: unknown): unknown {
|
||||||
return key === 'info'
|
return key === 'info'
|
||||||
? TypeDefInfo[value as number]
|
? TypeDefInfo[value as number]
|
||||||
@@ -82,26 +88,26 @@ describe('Abi', (): void => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('TypeDef', (): void => {
|
describe('TypeDef', (): void => {
|
||||||
Object.keys(abis).forEach((abiName) => {
|
for (const [abiName, abiJson] of Object.entries(abis)) {
|
||||||
it(`initializes from a contract ABI (${abiName})`, (): void => {
|
it(`initializes from a contract ABI: ${abiName}`, (): void => {
|
||||||
const abi = new Abi(abis[abiName]);
|
const abi = new Abi(abiJson);
|
||||||
const json = stringifyJson(abi.registry);
|
const registryJson = stringifyJson(abi.registry);
|
||||||
const cmpPath = path.join(__dirname, `../test/compare/${abiName}.test.json`);
|
const cmpFile = path.join(cmpPath, `${abiName}.test.json`);
|
||||||
|
const cmpText = fs.readFileSync(cmpFile, 'utf-8');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
expect(JSON.parse(registryJson)).toEqual(JSON.parse(cmpText));
|
||||||
expect(JSON.parse(json)).toEqual(require(cmpPath));
|
|
||||||
} 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(cmpPath, json, { flag: 'w' });
|
fs.writeFileSync(cmpFile, registryJson, { flag: 'w' });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
it('has the correct hash for the source', (): void => {
|
it('has the correct hash for the source', (): void => {
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
// Copyright 2017-2022 @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 { 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');
|
||||||
|
|
||||||
@@ -75,19 +75,13 @@ function parseJson (json: Record<string, unknown>, chainProperties?: ChainProper
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class Abi {
|
export class Abi {
|
||||||
public readonly events: AbiEvent[];
|
readonly events: AbiEvent[];
|
||||||
|
readonly constructors: AbiConstructor[];
|
||||||
public readonly constructors: AbiConstructor[];
|
readonly info: ContractProjectInfo;
|
||||||
|
readonly json: Record<string, unknown>;
|
||||||
public readonly info: ContractProjectInfo;
|
readonly messages: AbiMessage[];
|
||||||
|
readonly metadata: ContractMetadataLatest;
|
||||||
public readonly json: Record<string, unknown>;
|
readonly registry: Registry;
|
||||||
|
|
||||||
public readonly messages: AbiMessage[];
|
|
||||||
|
|
||||||
public readonly metadata: ContractMetadataLatest;
|
|
||||||
|
|
||||||
public readonly registry: Registry;
|
|
||||||
|
|
||||||
constructor (abiJson: Record<string, unknown> | string, chainProperties?: ChainProperties) {
|
constructor (abiJson: Record<string, unknown> | string, chainProperties?: ChainProperties) {
|
||||||
[this.json, this.registry, this.metadata, this.info] = parseJson(
|
[this.json, this.registry, this.metadata, this.info] = parseJson(
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
// Copyright 2017-2022 @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/node/test/node" />
|
||||||
|
|
||||||
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();
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
// Copyright 2017-2022 @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 { 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';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @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 { ContractMetadataV0, ContractMetadataV1 } from '@polkadot/types/interfaces';
|
import type { ContractMetadataV0, ContractMetadataV1 } from '@polkadot/types/interfaces';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @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 { Text } from '@polkadot/types';
|
import type { Text } from '@polkadot/types';
|
||||||
@@ -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, {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @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 { ContractMetadataV2, ContractMetadataV3 } from '@polkadot/types/interfaces';
|
import type { ContractMetadataV2, ContractMetadataV3 } from '@polkadot/types/interfaces';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @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 { ContractMetadataV3, ContractMetadataV4 } from '@polkadot/types/interfaces';
|
import type { ContractMetadataV3, ContractMetadataV4 } from '@polkadot/types/interfaces';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @polkadot/api authors & contributors
|
// Copyright 2017-2023 @polkadot/api authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { ApiTypes, DecorateMethod } from '@polkadot/api/types';
|
import type { ApiTypes, DecorateMethod } from '@polkadot/api/types';
|
||||||
@@ -8,15 +8,13 @@ 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> {
|
||||||
public readonly abi: Abi;
|
readonly abi: Abi;
|
||||||
|
readonly api: ApiBase<ApiType>;
|
||||||
public readonly api: ApiBase<ApiType>;
|
|
||||||
|
|
||||||
protected readonly _decorateMethod: DecorateMethod<ApiType>;
|
protected readonly _decorateMethod: DecorateMethod<ApiType>;
|
||||||
|
|
||||||
protected readonly _isWeightV1: boolean;
|
protected readonly _isWeightV1: boolean;
|
||||||
|
|
||||||
constructor (api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, decorateMethod: DecorateMethod<ApiType>) {
|
constructor (api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, decorateMethod: DecorateMethod<ApiType>) {
|
||||||
|
|||||||
@@ -1,29 +1,29 @@
|
|||||||
// Copyright 2017-2022 @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 { SubmittableExtrinsic } from '@polkadot/api/submittable/types';
|
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>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class BlueprintSubmittableResult<ApiType extends ApiTypes> extends SubmittableResult {
|
export class BlueprintSubmittableResult<ApiType extends ApiTypes> extends SubmittableResult {
|
||||||
public readonly contract?: Contract<ApiType>;
|
readonly contract?: Contract<ApiType>;
|
||||||
|
|
||||||
constructor (result: ISubmittableResult, contract?: Contract<ApiType>) {
|
constructor (result: ISubmittableResult, contract?: Contract<ApiType>) {
|
||||||
super(result);
|
super(result);
|
||||||
@@ -36,7 +36,7 @@ export class Blueprint<ApiType extends ApiTypes> extends Base<ApiType> {
|
|||||||
/**
|
/**
|
||||||
* @description The on-chain code hash for this blueprint
|
* @description The on-chain code hash for this blueprint
|
||||||
*/
|
*/
|
||||||
public readonly codeHash: Hash;
|
readonly codeHash: Hash;
|
||||||
|
|
||||||
readonly #tx: MapConstructorExec<ApiType> = {};
|
readonly #tx: MapConstructorExec<ApiType> = {};
|
||||||
|
|
||||||
|
|||||||
@@ -1,18 +1,22 @@
|
|||||||
// Copyright 2017-2022 @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/node/test/node" />
|
||||||
import path from 'path';
|
|
||||||
|
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';
|
||||||
|
|
||||||
const v0wasmFlipper = fs.readFileSync(path.join(__dirname, '../test/contracts/ink/v0/flipper.wasm'));
|
// 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');
|
||||||
|
|
||||||
describe('Code', (): void => {
|
describe('Code', (): void => {
|
||||||
it('can construct with an individual ABI/WASM combo', (): void => {
|
it('can construct with an individual ABI/WASM combo', (): void => {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @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 { SubmittableExtrinsic } from '@polkadot/api/submittable/types';
|
import type { SubmittableExtrinsic } from '@polkadot/api/submittable/types';
|
||||||
@@ -6,27 +6,27 @@ 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>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CodeSubmittableResult<ApiType extends ApiTypes> extends SubmittableResult {
|
export class CodeSubmittableResult<ApiType extends ApiTypes> extends SubmittableResult {
|
||||||
public readonly blueprint?: Blueprint<ApiType>;
|
readonly blueprint?: Blueprint<ApiType>;
|
||||||
public readonly contract?: Contract<ApiType>;
|
readonly contract?: Contract<ApiType>;
|
||||||
|
|
||||||
constructor (result: ISubmittableResult, blueprint?: Blueprint<ApiType>, contract?: Contract<ApiType>) {
|
constructor (result: ISubmittableResult, blueprint?: Blueprint<ApiType>, contract?: Contract<ApiType>) {
|
||||||
super(result);
|
super(result);
|
||||||
@@ -37,7 +37,7 @@ export class CodeSubmittableResult<ApiType extends ApiTypes> extends Submittable
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class Code<ApiType extends ApiTypes> extends Base<ApiType> {
|
export class Code<ApiType extends ApiTypes> extends Base<ApiType> {
|
||||||
public readonly code: Uint8Array;
|
readonly code: Uint8Array;
|
||||||
|
|
||||||
readonly #tx: MapConstructorExec<ApiType> = {};
|
readonly #tx: MapConstructorExec<ApiType> = {};
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @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 { SubmittableExtrinsic } from '@polkadot/api/submittable/types';
|
import type { SubmittableExtrinsic } from '@polkadot/api/submittable/types';
|
||||||
@@ -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>;
|
||||||
@@ -42,7 +42,7 @@ function createTx <ApiType extends ApiTypes> (meta: AbiMessage, fn: (options: Co
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class ContractSubmittableResult extends SubmittableResult {
|
export class ContractSubmittableResult extends SubmittableResult {
|
||||||
public readonly contractEvents?: DecodedEvent[];
|
readonly contractEvents?: DecodedEvent[];
|
||||||
|
|
||||||
constructor (result: ISubmittableResult, contractEvents?: DecodedEvent[]) {
|
constructor (result: ISubmittableResult, contractEvents?: DecodedEvent[]) {
|
||||||
super(result);
|
super(result);
|
||||||
@@ -55,10 +55,9 @@ export class Contract<ApiType extends ApiTypes> extends Base<ApiType> {
|
|||||||
/**
|
/**
|
||||||
* @description The on-chain address for this contract
|
* @description The on-chain address for this contract
|
||||||
*/
|
*/
|
||||||
public readonly address: AccountId;
|
readonly address: AccountId;
|
||||||
|
|
||||||
readonly #query: MapMessageQuery<ApiType> = {};
|
readonly #query: MapMessageQuery<ApiType> = {};
|
||||||
|
|
||||||
readonly #tx: MapMessageTx<ApiType> = {};
|
readonly #tx: MapMessageTx<ApiType> = {};
|
||||||
|
|
||||||
constructor (api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, address: string | AccountId, decorateMethod: DecorateMethod<ApiType>) {
|
constructor (api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, address: string | AccountId, decorateMethod: DecorateMethod<ApiType>) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2022 @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';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @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 { ApiBase } from '@polkadot/api/base';
|
import { ApiBase } from '@polkadot/api/base';
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
// Copyright 2017-2022 @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 { Observable } from 'rxjs';
|
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;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @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 { SubmittableResult } from '@polkadot/api';
|
import type { SubmittableResult } from '@polkadot/api';
|
||||||
@@ -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-2022 @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';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @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
|
||||||
|
|
||||||
// Simple non-runnable checks to test type definitions in the editor itself
|
// Simple non-runnable checks to test type definitions in the editor itself
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @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 { packageInfo as apiInfo } from '@polkadot/api/packageInfo';
|
import { packageInfo as apiInfo } from '@polkadot/api/packageInfo';
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
// Copyright 2017-2022 @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
|
||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
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-2022 @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-2022 @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';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2022 @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
|
||||||
|
|
||||||
// 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.8.1' };
|
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '10.1.1' };
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
// Copyright 2017-2022 @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 { AccountId, Hash } from '@polkadot/types/interfaces';
|
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-2022 @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,12 +1,12 @@
|
|||||||
// Copyright 2017-2022 @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 { AccountId, Hash } from '@polkadot/types/interfaces';
|
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-2022 @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'>;
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user