Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
44590fd235 | ||
|
|
fdd4d3a16d | ||
|
|
c8307138a9 | ||
|
|
6e5697fc8e | ||
|
|
0dc114227c | ||
|
|
006c6b02b1 | ||
|
|
6984329a2b | ||
|
|
954a6f11de | ||
|
|
9247a40a15 | ||
|
|
85ddffde61 | ||
|
|
4dff632fa6 | ||
|
|
a7e3e15a7a | ||
|
|
385068e542 | ||
|
|
210454dfe6 | ||
|
|
8264c5db11 | ||
|
|
9e66524714 | ||
|
|
77202c4dd3 | ||
|
|
9d61aaa1f3 | ||
|
|
a147a7c769 | ||
|
|
a8b180b387 | ||
|
|
266427c8f4 | ||
|
|
e94af85e69 | ||
|
|
9be16a40ef | ||
|
|
2b92fd94af | ||
|
|
0b6f786108 | ||
|
|
b0a3c206ab | ||
|
|
98ae45c64b | ||
|
|
116501f89a | ||
|
|
3cf456f3fa | ||
|
|
63e917ca09 | ||
|
|
76c6b63f29 | ||
|
|
65dbe9043a | ||
|
|
ce5ec004b4 | ||
|
|
196f91bc92 | ||
|
|
159ec48029 | ||
|
|
993e16240d | ||
|
|
ae6c2aa750 | ||
|
|
79da77234e | ||
|
|
8992e7f2e8 | ||
|
|
9b1e5f2f25 | ||
|
|
a94c0ff11c | ||
|
|
0db40bc98b | ||
|
|
4fd5e56af3 | ||
|
|
38cb10fb24 | ||
|
|
b5ab09fdb1 | ||
|
|
517baddb25 | ||
|
|
e445a26d5d | ||
|
|
f523325c0a | ||
|
|
55cb602a71 | ||
|
|
904b2aafe7 | ||
|
|
3dee6a9cb4 | ||
|
|
bd113b124e | ||
|
|
580039a23c | ||
|
|
2472ef8c98 | ||
|
|
020fb1cd09 | ||
|
|
3cbebb6d71 | ||
|
|
138a64c5fb | ||
|
|
efd76e3e20 | ||
|
|
2b562c80b9 | ||
|
|
f9ab3e7029 | ||
|
|
fdc30fd2c2 | ||
|
|
d2b40660ad | ||
|
|
c545cffec0 | ||
|
|
479719fdcc | ||
|
|
8a3f938392 | ||
|
|
0ccf9ad96f | ||
|
|
a41d292fc1 | ||
|
|
aacebcabb5 | ||
|
|
17c6ef7527 | ||
|
|
b252f13210 | ||
|
|
64360b3598 | ||
|
|
0acb0ab226 | ||
|
|
d32e219d7e | ||
|
|
a1029dc0ba | ||
|
|
eef50a759d | ||
|
|
2bad0f4799 | ||
|
|
9756d33664 | ||
|
|
1ea50757c6 | ||
|
|
26e550fe6c | ||
|
|
69c129595e | ||
|
|
3f79415e02 | ||
|
|
8747cd4682 | ||
|
|
dd9e96c3e7 | ||
|
|
1c93388de7 | ||
|
|
7a87034f0e | ||
|
|
9e4db51dd7 | ||
|
|
5382cb60b0 | ||
|
|
d6b2760de5 | ||
|
|
2ee89b8c72 | ||
|
|
802da709f0 | ||
|
|
836346909f | ||
|
|
8ec5c2abc3 | ||
|
|
cc953efd58 | ||
|
|
857b9cbaea | ||
|
|
4551093fe7 | ||
|
|
69afe1a203 | ||
|
|
f5600afa31 | ||
|
|
3f0a471484 | ||
|
|
bc0e2cfc14 | ||
|
|
3e9d2d6b8f | ||
|
|
3b48825fe6 | ||
|
|
5e4e5cbaa7 | ||
|
|
255b8047b7 | ||
|
|
87edaa5bed | ||
|
|
8a58f018a7 | ||
|
|
e39be09c97 | ||
|
|
007b4aa6c1 | ||
|
|
cc2a4dbfdd |
@@ -25,3 +25,4 @@ exclude_patterns:
|
|||||||
- "packages/typegen/src"
|
- "packages/typegen/src"
|
||||||
- "packages/types/src/interfaces/"
|
- "packages/types/src/interfaces/"
|
||||||
- "packages/types/src/augment/"
|
- "packages/types/src/augment/"
|
||||||
|
- "packages/types-known/src/upgrades/e2e/"
|
||||||
|
|||||||
@@ -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@master
|
- uses: jacogr/action-approve@9d6ce78d26f23ad29d009d034822cf773f2cb50e
|
||||||
with:
|
with:
|
||||||
authors: jacogr
|
authors: jacogr
|
||||||
labels: -auto
|
labels: -auto
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ jobs:
|
|||||||
merge:
|
merge:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: jacogr/action-merge@master
|
- uses: jacogr/action-merge@3b4b49af8a8644bf5cbb5409ee236abe04eeb1b0
|
||||||
with:
|
with:
|
||||||
checks: build,lint,test
|
checks: build,lint,test
|
||||||
labels: -auto
|
labels: -auto
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
YARN_ENABLE_SCRIPTS: false
|
YARN_ENABLE_SCRIPTS: false
|
||||||
steps:
|
steps:
|
||||||
- uses: dessant/lock-threads@v2
|
- uses: dessant/lock-threads@f1a42f0f44eb83361d617a014663e1a76cf282d2
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GH_PAT_BOT }}
|
github-token: ${{ secrets.GH_PAT_BOT }}
|
||||||
issue-lock-inactive-days: '7'
|
issue-lock-inactive-days: '7'
|
||||||
|
|||||||
@@ -11,13 +11,12 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
YARN_ENABLE_SCRIPTS: false
|
YARN_ENABLE_SCRIPTS: false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e
|
||||||
- uses: denoland/setup-deno@v1
|
- uses: denoland/setup-deno@004814556e37c54a2f6e31384c9e18e983317366
|
||||||
with:
|
with:
|
||||||
deno-version: vx.x.x
|
deno-version: vx.x.x
|
||||||
- name: ${{ matrix.step }}
|
- name: ${{ matrix.step }}
|
||||||
if: always()
|
if: always()
|
||||||
continue-on-error: true
|
|
||||||
run: |
|
run: |
|
||||||
yarn install --immutable | grep -v 'YN0013'
|
yarn install --immutable | grep -v 'YN0013'
|
||||||
yarn ${{ matrix.step }}
|
yarn ${{ matrix.step }}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ jobs:
|
|||||||
GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT }}
|
GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT }}
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.GH_PAT }}
|
token: ${{ secrets.GH_PAT }}
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
YARN_ENABLE_SCRIPTS: false
|
YARN_ENABLE_SCRIPTS: false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e
|
||||||
- uses: returntocorp/semgrep-action@v1
|
- uses: returntocorp/semgrep-action@aeafd770072c4f48798b991e3449592bddc2c435
|
||||||
with:
|
with:
|
||||||
auditOn: push
|
auditOn: push
|
||||||
publishToken: ${{ secrets.SEMGREP_APP_TOKEN }}
|
publishToken: ${{ secrets.SEMGREP_APP_TOKEN }}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
YARN_ENABLE_SCRIPTS: false
|
YARN_ENABLE_SCRIPTS: false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@v3
|
- uses: actions/stale@98ed4cb500039dbcccf4bd9bedada4d0187f2757
|
||||||
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 21 days with no activity and is not labelled as an enhancement. It will be closed in 7 days.'
|
||||||
|
|||||||
@@ -1,5 +1,94 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 9.4.1 Sep 17, 2022
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Update `@substrate/connect` to latest (Thanks to https://github.com/wirednkod)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Cater for v1.5 Weight JSON representation (via RPC)
|
||||||
|
- Polkadot 9270, Kusama 9280 & Westend 9290 upgrade blocks
|
||||||
|
- Update to latest Substrate, Polkadot & Kusama metadata
|
||||||
|
|
||||||
|
|
||||||
|
## 9.3.3 Sep 6, 2022
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Ensure JS reserved words are aliassed in types (Thanks to https://github.com/dqbd)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Fix and adjust tests for `AccountId{32, 33}`
|
||||||
|
|
||||||
|
|
||||||
|
## 9.3.2 Sep 4, 2022
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Cater for v1.5 Weight types (structure to inner value)
|
||||||
|
- Westend 9280 & Kusama 9271 upgrade blocks
|
||||||
|
- Update to latest Substrate, Polkadot & Kusama metadata
|
||||||
|
|
||||||
|
|
||||||
|
## 9.3.1 Sep 3, 2022
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Support for ink! v4 metadata
|
||||||
|
- Adjust pool runtime call `pendingRewards` return type
|
||||||
|
- Support for `AccountId33` (raw/compressed 33-byte ecdsa)
|
||||||
|
- Update to latest Substrate, Polkadot & Kusama metadata
|
||||||
|
|
||||||
|
|
||||||
|
## 9.2.4 Aug 27, 2022
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Remove extra error logging in internal rpc-core Observable
|
||||||
|
- Allow for embebbed `Enum` in `Struct` typegen (no `lookupName`)
|
||||||
|
|
||||||
|
|
||||||
|
## 9.2.3 Aug 21, 2022
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Update `@substrate/connect` to latest (Thanks to https://github.com/wirednkod)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Adjust `StakingLedger` with fallback for Kusama 1050 (2 different structures on-chain)
|
||||||
|
- Remove `TryRuntime` state call definitions (only off-chain usage)
|
||||||
|
- Update to latest Substrate, Polkadot & Kusama metadata
|
||||||
|
|
||||||
|
|
||||||
|
## 9.2.2 Aug 16, 2022
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Replace `rpc.payment.queryInfo` usage with `call.transactionPaymentApi.queryInfo`
|
||||||
|
- Ensure that `api.call.*` is decorated on historic blocks
|
||||||
|
|
||||||
|
|
||||||
|
## 9.2.1 Aug 13, 2022
|
||||||
|
|
||||||
|
- **Important** If using `import { WellKnownChain } from '@polkadot/rpc-provider'` it is recommended that you rather use `ScProvider.WellKnownChain` (the import may be dropped in a future major version)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Don't assume non-empty path specifiers on portable variant/composites
|
||||||
|
- Explicit param length checks for all generic portable overrides
|
||||||
|
- Re-export `ScProvider` in `@polkadot/api`, aligning with `{Http, Ws}Provider`
|
||||||
|
- Expose `WellKnownChain` as static on `ScProvider.WellKnownChain`
|
||||||
|
- Checks for non-available interface types & runtime/rpc definitions
|
||||||
|
- Ensure `.entries/.keys` arguments is less than map-entry query
|
||||||
|
- Add Polkadot 9260 upgrade block
|
||||||
|
- Add Westend 9271 upgrade block
|
||||||
|
- Update to latest Substrate metadata
|
||||||
|
|
||||||
|
|
||||||
## 9.1.1 Aug 6, 2022
|
## 9.1.1 Aug 6, 2022
|
||||||
|
|
||||||
Contributed:
|
Contributed:
|
||||||
|
|||||||
+3
-2
@@ -1,4 +1,4 @@
|
|||||||
3177 Jaco 9.1.1 (#5139)
|
3229 Jaco 9.4.1 (#5225)
|
||||||
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)
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
15 Jeremías Díaz feat(types): add correct tuple type to storage key (#3054)
|
15 Jeremías Díaz feat(types): add correct tuple type to storage key (#3054)
|
||||||
11 Ian He HttpProvider support clone() (#3949)
|
11 Ian He HttpProvider support clone() (#3949)
|
||||||
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)
|
||||||
8 Nikos Kontakis Bump substrate connect to 0.7.10; Fixes #5120 (#5123)
|
10 Nikos Kontakis Bump substrate connect to 0.7.12 (#5214)
|
||||||
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)
|
||||||
4 Alex D Use derive customAccount and customLocks for balance overrides (#3248)
|
4 Alex D Use derive customAccount and customLocks for balance overrides (#3248)
|
||||||
@@ -55,6 +55,7 @@
|
|||||||
1 Daniel Maricic Fixed typo in README (#2402)
|
1 Daniel Maricic Fixed typo in README (#2402)
|
||||||
1 Daniel Savu fix: Generate custom type definitions (#4224)
|
1 Daniel Savu fix: Generate custom type definitions (#4224)
|
||||||
1 David Don't log full error (#2952)
|
1 David Don't log full error (#2952)
|
||||||
|
1 David Duong Avoid reserved words during named enum fields augmentation (#5203)
|
||||||
1 Denis Tsai realign AccountKey20Junction to polkadot xcm's Junction enum (#3770)
|
1 Denis Tsai realign AccountKey20Junction to polkadot xcm's Junction enum (#3770)
|
||||||
1 djuanito.eth Update fees to current constants (#2320)
|
1 djuanito.eth Update fees to current constants (#2320)
|
||||||
1 Drew Stone Update evm definitions to include vicinity (#2279)
|
1 Drew Stone Update evm definitions to include vicinity (#2279)
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"imports": {
|
||||||
|
"https://esm.sh/v90/@types/bn.js@~5.2/index.d.ts": "https://esm.sh/v90/@types/bn.js@5.1.0/index.d.ts"
|
||||||
|
}
|
||||||
|
}
|
||||||
+10
-8
@@ -11,10 +11,10 @@
|
|||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.1.1",
|
"version": "9.4.1",
|
||||||
"versions": {
|
"versions": {
|
||||||
"git": "9.1.1",
|
"git": "9.4.1",
|
||||||
"npm": "9.1.1"
|
"npm": "9.4.1"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
@@ -23,8 +23,10 @@
|
|||||||
"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:extra": "(cd packages/typegen && copyfiles scripts/* build)",
|
||||||
"build:interfaces": "polkadot-types-internal-interfaces",
|
"build:interfaces": "polkadot-types-internal-interfaces",
|
||||||
|
"build:metadata": "yarn build:interfaces && yarn test:one 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",
|
||||||
"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",
|
||||||
@@ -34,15 +36,15 @@
|
|||||||
"test:one": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --detectOpenHandles --forceExit"
|
"test:one": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --detectOpenHandles --forceExit"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.18.10",
|
"@babel/core": "^7.19.1",
|
||||||
"@babel/register": "^7.18.9",
|
"@babel/register": "^7.18.9",
|
||||||
"@babel/runtime": "^7.18.9",
|
"@babel/runtime": "^7.19.0",
|
||||||
"@polkadot/dev": "^0.67.88",
|
"@polkadot/dev": "^0.67.130",
|
||||||
"@polkadot/typegen": "workspace:packages/typegen",
|
"@polkadot/typegen": "workspace:packages/typegen",
|
||||||
"@types/jest": "^28.1.6",
|
"@types/jest": "^29.0.3",
|
||||||
"copyfiles": "^2.4.1"
|
"copyfiles": "^2.4.1"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"typescript": "^4.7.4"
|
"typescript": "^4.8.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,18 +20,18 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.1.1",
|
"version": "9.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.18.9",
|
"@babel/runtime": "^7.19.0",
|
||||||
"@polkadot/api-base": "9.1.1",
|
"@polkadot/api-base": "9.4.1",
|
||||||
"@polkadot/rpc-augment": "9.1.1",
|
"@polkadot/rpc-augment": "9.4.1",
|
||||||
"@polkadot/types": "9.1.1",
|
"@polkadot/types": "9.4.1",
|
||||||
"@polkadot/types-augment": "9.1.1",
|
"@polkadot/types-augment": "9.4.1",
|
||||||
"@polkadot/types-codec": "9.1.1",
|
"@polkadot/types-codec": "9.4.1",
|
||||||
"@polkadot/util": "^10.1.3"
|
"@polkadot/util": "^10.1.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/types-support": "9.1.1"
|
"@polkadot/types-support": "9.4.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import '@polkadot/api-base/types/consts';
|
|||||||
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
||||||
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { Codec } from '@polkadot/types-codec/types';
|
import type { Codec } from '@polkadot/types-codec/types';
|
||||||
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
import type { Perbill, Percent, Permill, Weight } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
|
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
||||||
|
|
||||||
@@ -258,6 +258,9 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* take place over multiple blocks.
|
* take place over multiple blocks.
|
||||||
**/
|
**/
|
||||||
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
||||||
|
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
||||||
|
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
||||||
|
minerMaxWeight: Weight & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The priority of the unsigned transaction submitted in the unsigned-phase
|
* The priority of the unsigned transaction submitted in the unsigned-phase
|
||||||
**/
|
**/
|
||||||
@@ -302,7 +305,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* this pallet), then [`MinerConfig::solution_weight`] is used to compare against
|
* this pallet), then [`MinerConfig::solution_weight`] is used to compare against
|
||||||
* this value.
|
* this value.
|
||||||
**/
|
**/
|
||||||
signedMaxWeight: u64 & AugmentedConst<ApiType>;
|
signedMaxWeight: Weight & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Duration of the signed phase.
|
* Duration of the signed phase.
|
||||||
**/
|
**/
|
||||||
@@ -506,6 +509,21 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* Number of runners_up to keep.
|
* Number of runners_up to keep.
|
||||||
**/
|
**/
|
||||||
desiredRunnersUp: u32 & AugmentedConst<ApiType>;
|
desiredRunnersUp: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum number of candidates in a phragmen election.
|
||||||
|
*
|
||||||
|
* Warning: The election happens onchain, and this value will determine
|
||||||
|
* the size of the election. When this limit is reached no more
|
||||||
|
* candidates are accepted in the election.
|
||||||
|
**/
|
||||||
|
maxCandidates: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum number of voters to allow in a phragmen election.
|
||||||
|
*
|
||||||
|
* Warning: This impacts the size of the election which is run onchain.
|
||||||
|
* When the limit is reached the new voters are ignored.
|
||||||
|
**/
|
||||||
|
maxVoters: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Identifier for the elections-phragmen pallet's lock
|
* Identifier for the elections-phragmen pallet's lock
|
||||||
**/
|
**/
|
||||||
@@ -635,7 +653,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* The maximum weight that may be scheduled per block for any dispatchables of less
|
* The maximum weight that may be scheduled per block for any dispatchables of less
|
||||||
* priority than `schedule::HARD_DEADLINE`.
|
* priority than `schedule::HARD_DEADLINE`.
|
||||||
**/
|
**/
|
||||||
maximumWeight: u64 & AugmentedConst<ApiType>;
|
maximumWeight: Weight & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The maximum number of scheduled calls in the queue for a single block.
|
* The maximum number of scheduled calls in the queue for a single block.
|
||||||
* Not strictly enforced, but used for weight estimation.
|
* Not strictly enforced, but used for weight estimation.
|
||||||
@@ -757,9 +775,9 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
/**
|
/**
|
||||||
* The weight of runtime database operations the runtime can invoke.
|
* The weight of runtime database operations the runtime can invoke.
|
||||||
**/
|
**/
|
||||||
dbWeight: FrameSupportWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
|
dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The designated SS85 prefix of this chain.
|
* The designated SS58 prefix of this chain.
|
||||||
*
|
*
|
||||||
* This replaces the "ss58Format" property declared in the chain spec. Reason is
|
* This replaces the "ss58Format" property declared in the chain spec. Reason is
|
||||||
* that the runtime should know about the prefix in order to make use of it as
|
* that the runtime should know about the prefix in order to make use of it as
|
||||||
|
|||||||
@@ -752,6 +752,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The target is invalid.
|
* The target is invalid.
|
||||||
**/
|
**/
|
||||||
InvalidTarget: AugmentedError<ApiType>;
|
InvalidTarget: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The provided judgement was for a different identity.
|
||||||
|
**/
|
||||||
|
JudgementForDifferentIdentity: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Judgement given.
|
* Judgement given.
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -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, Weight } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, KusamaRuntimeProxyType, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchDispatchInfo, FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||||
|
|
||||||
@@ -338,10 +338,15 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
};
|
};
|
||||||
electionProviderMultiPhase: {
|
electionProviderMultiPhase: {
|
||||||
/**
|
/**
|
||||||
* The election has been finalized, with `Some` of the given computation, or else if the
|
* An election failed.
|
||||||
* election failed, `None`.
|
*
|
||||||
|
* Not much can be said about which computes failed in the process.
|
||||||
**/
|
**/
|
||||||
ElectionFinalized: AugmentedEvent<ApiType, [electionCompute: Option<PalletElectionProviderMultiPhaseElectionCompute>], { electionCompute: Option<PalletElectionProviderMultiPhaseElectionCompute> }>;
|
ElectionFailed: AugmentedEvent<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* The election has been finalized, with the given computation and score.
|
||||||
|
**/
|
||||||
|
ElectionFinalized: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore], { compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore }>;
|
||||||
/**
|
/**
|
||||||
* An account has been rewarded for their signed submission being finalized.
|
* An account has been rewarded for their signed submission being finalized.
|
||||||
**/
|
**/
|
||||||
@@ -362,7 +367,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* The `bool` is `true` when a previous solution was ejected to make room for this one.
|
* The `bool` is `true` when a previous solution was ejected to make room for this one.
|
||||||
**/
|
**/
|
||||||
SolutionStored: AugmentedEvent<ApiType, [electionCompute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool], { electionCompute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool }>;
|
SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool], { compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool }>;
|
||||||
/**
|
/**
|
||||||
* The unsigned phase of the given round has started.
|
* The unsigned phase of the given round has started.
|
||||||
**/
|
**/
|
||||||
@@ -1031,11 +1036,11 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* An extrinsic failed.
|
* An extrinsic failed.
|
||||||
**/
|
**/
|
||||||
ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportWeightsDispatchInfo], { dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportWeightsDispatchInfo }>;
|
ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportDispatchDispatchInfo], { dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportDispatchDispatchInfo }>;
|
||||||
/**
|
/**
|
||||||
* An extrinsic completed successfully.
|
* An extrinsic completed successfully.
|
||||||
**/
|
**/
|
||||||
ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo: FrameSupportWeightsDispatchInfo], { dispatchInfo: FrameSupportWeightsDispatchInfo }>;
|
ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo: FrameSupportDispatchDispatchInfo], { dispatchInfo: FrameSupportDispatchDispatchInfo }>;
|
||||||
/**
|
/**
|
||||||
* An account was reaped.
|
* An account was reaped.
|
||||||
**/
|
**/
|
||||||
@@ -1213,14 +1218,14 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ para, id, overweight_index, required \]
|
* \[ para, id, overweight_index, required \]
|
||||||
**/
|
**/
|
||||||
OverweightEnqueued: AugmentedEvent<ApiType, [u32, U8aFixed, u64, u64]>;
|
OverweightEnqueued: AugmentedEvent<ApiType, [u32, U8aFixed, u64, Weight]>;
|
||||||
/**
|
/**
|
||||||
* Upward message from the overweight queue was executed with the given actual weight
|
* Upward message from the overweight queue was executed with the given actual weight
|
||||||
* used.
|
* used.
|
||||||
*
|
*
|
||||||
* \[ overweight_index, used \]
|
* \[ overweight_index, used \]
|
||||||
**/
|
**/
|
||||||
OverweightServiced: AugmentedEvent<ApiType, [u64, u64]>;
|
OverweightServiced: AugmentedEvent<ApiType, [u64, Weight]>;
|
||||||
/**
|
/**
|
||||||
* Upward message is unsupported version of XCM.
|
* Upward message is unsupported version of XCM.
|
||||||
* \[ id \]
|
* \[ id \]
|
||||||
@@ -1235,7 +1240,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* The weight limit for handling upward messages was reached.
|
* The weight limit for handling upward messages was reached.
|
||||||
* \[ id, remaining, required \]
|
* \[ id, remaining, required \]
|
||||||
**/
|
**/
|
||||||
WeightExhausted: AugmentedEvent<ApiType, [U8aFixed, u64, u64]>;
|
WeightExhausted: AugmentedEvent<ApiType, [U8aFixed, Weight, Weight]>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
@@ -1363,7 +1368,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ id, pallet index, call index, actual weight, max budgeted weight \]
|
* \[ id, pallet index, call index, actual weight, max budgeted weight \]
|
||||||
**/
|
**/
|
||||||
NotifyOverweight: AugmentedEvent<ApiType, [u64, u8, u8, u64, u64]>;
|
NotifyOverweight: AugmentedEvent<ApiType, [u64, u8, u8, Weight, Weight]>;
|
||||||
/**
|
/**
|
||||||
* A given location which had a version change subscription was dropped owing to an error
|
* A given location which had a version change subscription was dropped owing to an error
|
||||||
* migrating the location to our new XCM format.
|
* migrating the location to our new XCM format.
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, W
|
|||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, 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, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, 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 { 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>;
|
||||||
@@ -1739,7 +1739,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* The current weight for the block.
|
* The current weight for the block.
|
||||||
**/
|
**/
|
||||||
blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportWeightsPerDispatchClassU64>, []> & QueryableStorageEntry<ApiType, []>;
|
blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportDispatchPerDispatchClassWeight>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Digest of the current block, also part of the block header.
|
* Digest of the current block, also part of the block header.
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -7,7 +7,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, bool, u32 } from '@polkadot/types-codec';
|
import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, 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 { ValidatorSet } from '@polkadot/types/interfaces/beefy';
|
||||||
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
||||||
@@ -17,10 +17,9 @@ 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 { NpApiError } 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, Hash, Header, Index, KeyTypeId, Slot, ValidatorId } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId } 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';
|
||||||
@@ -212,7 +211,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
/**
|
/**
|
||||||
* Returns the pending rewards for the given member.
|
* Returns the pending rewards for the given member.
|
||||||
**/
|
**/
|
||||||
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Result<Balance, NpApiError>>>;
|
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
||||||
/**
|
/**
|
||||||
* Generic call
|
* Generic call
|
||||||
**/
|
**/
|
||||||
@@ -349,5 +348,20 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
|
/** 0xf3ff14d5ab527059/1 */
|
||||||
|
transactionPaymentCallApi: {
|
||||||
|
/**
|
||||||
|
* The call fee details
|
||||||
|
**/
|
||||||
|
queryCallFeeDetails: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
|
||||||
|
/**
|
||||||
|
* The call info
|
||||||
|
**/
|
||||||
|
queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
||||||
|
/**
|
||||||
|
* Generic call
|
||||||
|
**/
|
||||||
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
|
};
|
||||||
} // AugmentedCalls
|
} // AugmentedCalls
|
||||||
} // declare module
|
} // declare module
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import type { Data } from '@polkadot/types';
|
|||||||
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill, Weight } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportScheduleMaybeHashed, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
import type { FrameSupportScheduleMaybeHashed, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||||
@@ -754,11 +754,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Sets the maximum amount of weight any individual upward message may consume.
|
* Sets the maximum amount of weight any individual upward message may consume.
|
||||||
**/
|
**/
|
||||||
setUmpMaxIndividualWeight: AugmentedSubmittable<(updated: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
|
setUmpMaxIndividualWeight: AugmentedSubmittable<(updated: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Weight]>;
|
||||||
/**
|
/**
|
||||||
* Sets the soft limit for the phase of dispatching dispatchable upward messages.
|
* Sets the soft limit for the phase of dispatching dispatchable upward messages.
|
||||||
**/
|
**/
|
||||||
setUmpServiceTotalWeight: AugmentedSubmittable<(updated: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
|
setUmpServiceTotalWeight: AugmentedSubmittable<(updated: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Weight]>;
|
||||||
/**
|
/**
|
||||||
* Set the validation upgrade cooldown.
|
* Set the validation upgrade cooldown.
|
||||||
**/
|
**/
|
||||||
@@ -811,7 +811,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - up to 3 events
|
* - up to 3 events
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<Weight> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<Weight>, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
||||||
* state.
|
* state.
|
||||||
@@ -1083,7 +1083,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight: `O(R)` where R is the number of referendums the voter delegating to has
|
* Weight: `O(R)` where R is the number of referendums the voter delegating to has
|
||||||
* voted on. Weight is charged as if maximum votes.
|
* voted on. Weight is charged as if maximum votes.
|
||||||
**/
|
**/
|
||||||
delegate: AugmentedSubmittable<(to: AccountId32 | string | Uint8Array, conviction: PalletDemocracyConviction | 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x' | number | Uint8Array, balance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, PalletDemocracyConviction, u128]>;
|
delegate: AugmentedSubmittable<(to: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, conviction: PalletDemocracyConviction | 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x' | number | Uint8Array, balance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletDemocracyConviction, u128]>;
|
||||||
/**
|
/**
|
||||||
* Schedule an emergency cancellation of a referendum. Cannot happen twice to the same
|
* Schedule an emergency cancellation of a referendum. Cannot happen twice to the same
|
||||||
* referendum.
|
* referendum.
|
||||||
@@ -1243,7 +1243,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on.
|
* Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on.
|
||||||
* Weight is calculated for the maximum number of vote.
|
* Weight is calculated for the maximum number of vote.
|
||||||
**/
|
**/
|
||||||
removeOtherVote: AugmentedSubmittable<(target: AccountId32 | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
removeOtherVote: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32]>;
|
||||||
/**
|
/**
|
||||||
* Remove a vote for a referendum.
|
* Remove a vote for a referendum.
|
||||||
*
|
*
|
||||||
@@ -1311,7 +1311,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Weight: `O(R)` with R number of vote of target.
|
* Weight: `O(R)` with R number of vote of target.
|
||||||
**/
|
**/
|
||||||
unlock: AugmentedSubmittable<(target: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
unlock: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Veto and blacklist the external proposal hash.
|
* Veto and blacklist the external proposal hash.
|
||||||
*
|
*
|
||||||
@@ -1586,7 +1586,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - One event.
|
* - One event.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
addRegistrar: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
addRegistrar: AugmentedSubmittable<(account: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Add the given account to the sender's subs.
|
* Add the given account to the sender's subs.
|
||||||
*
|
*
|
||||||
@@ -1670,6 +1670,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `target`: the account whose identity the judgement is upon. This must be an account
|
* - `target`: the account whose identity the judgement is upon. This must be an account
|
||||||
* with a registered identity.
|
* with a registered identity.
|
||||||
* - `judgement`: the judgement of the registrar of index `reg_index` about `target`.
|
* - `judgement`: the judgement of the registrar of index `reg_index` about `target`.
|
||||||
|
* - `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided.
|
||||||
*
|
*
|
||||||
* Emits `JudgementGiven` if successful.
|
* Emits `JudgementGiven` if successful.
|
||||||
*
|
*
|
||||||
@@ -1681,7 +1682,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - One event.
|
* - One event.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
provideJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, judgement: PalletIdentityJudgement | { Unknown: any } | { FeePaid: any } | { Reasonable: any } | { KnownGood: any } | { OutOfDate: any } | { LowQuality: any } | { Erroneous: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, PalletIdentityJudgement]>;
|
provideJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, judgement: PalletIdentityJudgement | { Unknown: any } | { FeePaid: any } | { Reasonable: any } | { KnownGood: any } | { OutOfDate: any } | { LowQuality: any } | { Erroneous: any } | string | Uint8Array, identity: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, PalletIdentityJudgement, H256]>;
|
||||||
/**
|
/**
|
||||||
* Remove the sender as a sub-account.
|
* Remove the sender as a sub-account.
|
||||||
*
|
*
|
||||||
@@ -1753,7 +1754,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Benchmark: 8.823 + R * 0.32 µs (min squares analysis)
|
* - Benchmark: 8.823 + R * 0.32 µs (min squares analysis)
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, AccountId32]>;
|
setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Set the fee required for a judgement to be requested from a registrar.
|
* Set the fee required for a judgement to be requested from a registrar.
|
||||||
*
|
*
|
||||||
@@ -1900,7 +1901,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Writes: Indices Accounts, System Account (original owner)
|
* - Writes: Indices Accounts, System Account (original owner)
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
forceTransfer: AugmentedSubmittable<(updated: AccountId32 | string | Uint8Array, index: u32 | AnyNumber | Uint8Array, freeze: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32, bool]>;
|
forceTransfer: AugmentedSubmittable<(updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, index: u32 | AnyNumber | Uint8Array, freeze: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32, bool]>;
|
||||||
/**
|
/**
|
||||||
* Free up an index owned by the sender.
|
* Free up an index owned by the sender.
|
||||||
*
|
*
|
||||||
@@ -1965,7 +1966,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Writes: Indices Accounts, System Account (recipient)
|
* - Writes: Indices Accounts, System Account (recipient)
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
transfer: AugmentedSubmittable<(updated: AccountId32 | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
transfer: AugmentedSubmittable<(updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -2021,7 +2022,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Write: Multisig Storage, [Caller Account]
|
* - Write: Multisig Storage, [Caller Account]
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, callHash: U8aFixed | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, u64]>;
|
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, callHash: U8aFixed | string | Uint8Array, maxWeight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, Weight]>;
|
||||||
/**
|
/**
|
||||||
* Register approval for a dispatch to be made from a deterministic composite account if
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
||||||
* approved by a total of `threshold - 1` of `other_signatories`.
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
||||||
@@ -2069,7 +2070,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Plus Call Weight
|
* - Plus Call Weight
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, u64]>;
|
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, Weight]>;
|
||||||
/**
|
/**
|
||||||
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
||||||
*
|
*
|
||||||
@@ -2171,7 +2172,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* In addition to `amount`, the caller will transfer the existential deposit; so the caller
|
* In addition to `amount`, the caller will transfer the existential deposit; so the caller
|
||||||
* needs at have at least `amount + existential_deposit` transferrable.
|
* needs at have at least `amount + existential_deposit` transferrable.
|
||||||
**/
|
**/
|
||||||
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: AccountId32 | string | Uint8Array, nominator: AccountId32 | string | Uint8Array, stateToggler: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId32, AccountId32, AccountId32]>;
|
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
||||||
* pools account and immediately increases the pools bond.
|
* pools account and immediately increases the pools bond.
|
||||||
@@ -2267,7 +2268,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* there are too many unlocking chunks, the result of this call will likely be the
|
* there are too many unlocking chunks, the result of this call will likely be the
|
||||||
* `NoMoreChunks` error from the staking system.
|
* `NoMoreChunks` error from the staking system.
|
||||||
**/
|
**/
|
||||||
unbond: AugmentedSubmittable<(memberAccount: AccountId32 | string | Uint8Array, unbondingPoints: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Compact<u128>]>;
|
unbond: AugmentedSubmittable<(memberAccount: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, unbondingPoints: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
||||||
/**
|
/**
|
||||||
* Update the roles of the pool.
|
* Update the roles of the pool.
|
||||||
*
|
*
|
||||||
@@ -2299,7 +2300,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* If the target is the depositor, the pool will be destroyed.
|
* If the target is the depositor, the pool will be destroyed.
|
||||||
**/
|
**/
|
||||||
withdrawUnbonded: AugmentedSubmittable<(memberAccount: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
withdrawUnbonded: AugmentedSubmittable<(memberAccount: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -2550,7 +2551,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight is a function of the number of proxies the user has (P).
|
* Weight is a function of the number of proxies the user has (P).
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
addProxy: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, KusamaRuntimeProxyType, u32]>;
|
addProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, KusamaRuntimeProxyType, u32]>;
|
||||||
/**
|
/**
|
||||||
* Publish the hash of a proxy-call that will be made in the future.
|
* Publish the hash of a proxy-call that will be made in the future.
|
||||||
*
|
*
|
||||||
@@ -2574,7 +2575,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - P: the number of proxies the user has.
|
* - P: the number of proxies the user has.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
announce: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, H256]>;
|
announce: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, H256]>;
|
||||||
/**
|
/**
|
||||||
* Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and
|
* Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and
|
||||||
* initialize it with a proxy of `proxy_type` for `origin` sender.
|
* initialize it with a proxy of `proxy_type` for `origin` sender.
|
||||||
@@ -2623,7 +2624,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight is a function of the number of proxies the user has (P).
|
* Weight is a function of the number of proxies the user has (P).
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
killAnonymous: AugmentedSubmittable<(spawner: AccountId32 | string | Uint8Array, proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, KusamaRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
killAnonymous: AugmentedSubmittable<(spawner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, KusamaRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Dispatch the given `call` from an account that the sender is authorised for through
|
* Dispatch the given `call` from an account that the sender is authorised for through
|
||||||
* `add_proxy`.
|
* `add_proxy`.
|
||||||
@@ -2641,7 +2642,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight is a function of the number of proxies the user has (P).
|
* Weight is a function of the number of proxies the user has (P).
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<KusamaRuntimeProxyType> | null | Uint8Array | KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<KusamaRuntimeProxyType>, Call]>;
|
proxy: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<KusamaRuntimeProxyType> | null | Uint8Array | KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<KusamaRuntimeProxyType>, Call]>;
|
||||||
/**
|
/**
|
||||||
* Dispatch the given `call` from an account that the sender is authorized for through
|
* Dispatch the given `call` from an account that the sender is authorized for through
|
||||||
* `add_proxy`.
|
* `add_proxy`.
|
||||||
@@ -2661,7 +2662,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - P: the number of proxies the user has.
|
* - P: the number of proxies the user has.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<KusamaRuntimeProxyType> | null | Uint8Array | KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<KusamaRuntimeProxyType>, Call]>;
|
proxyAnnounced: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<KusamaRuntimeProxyType> | null | Uint8Array | KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Option<KusamaRuntimeProxyType>, Call]>;
|
||||||
/**
|
/**
|
||||||
* Remove the given announcement of a delegate.
|
* Remove the given announcement of a delegate.
|
||||||
*
|
*
|
||||||
@@ -2680,7 +2681,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - P: the number of proxies the user has.
|
* - P: the number of proxies the user has.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
rejectAnnouncement: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, H256]>;
|
rejectAnnouncement: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, H256]>;
|
||||||
/**
|
/**
|
||||||
* Remove a given announcement.
|
* Remove a given announcement.
|
||||||
*
|
*
|
||||||
@@ -2699,7 +2700,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - P: the number of proxies the user has.
|
* - P: the number of proxies the user has.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
removeAnnouncement: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, H256]>;
|
removeAnnouncement: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, H256]>;
|
||||||
/**
|
/**
|
||||||
* Unregister all proxy accounts for the sender.
|
* Unregister all proxy accounts for the sender.
|
||||||
*
|
*
|
||||||
@@ -2726,7 +2727,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight is a function of the number of proxies the user has (P).
|
* Weight is a function of the number of proxies the user has (P).
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
removeProxy: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, KusamaRuntimeProxyType, u32]>;
|
removeProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, KusamaRuntimeProxyType, u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -2743,7 +2744,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `account`: The recovered account you want to make a call on-behalf-of.
|
* - `account`: The recovered account you want to make a call on-behalf-of.
|
||||||
* - `call`: The call you want to make with the recovered account.
|
* - `call`: The call you want to make with the recovered account.
|
||||||
**/
|
**/
|
||||||
asRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Call]>;
|
asRecovered: AugmentedSubmittable<(account: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Call]>;
|
||||||
/**
|
/**
|
||||||
* Cancel the ability to use `as_recovered` for `account`.
|
* Cancel the ability to use `as_recovered` for `account`.
|
||||||
*
|
*
|
||||||
@@ -2753,7 +2754,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Parameters:
|
* Parameters:
|
||||||
* - `account`: The recovered account you are able to call on-behalf-of.
|
* - `account`: The recovered account you are able to call on-behalf-of.
|
||||||
**/
|
**/
|
||||||
cancelRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
cancelRecovered: AugmentedSubmittable<(account: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Allow a successful rescuer to claim their recovered account.
|
* Allow a successful rescuer to claim their recovered account.
|
||||||
*
|
*
|
||||||
@@ -2765,7 +2766,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `account`: The lost account that you want to claim has been successfully recovered by
|
* - `account`: The lost account that you want to claim has been successfully recovered by
|
||||||
* you.
|
* you.
|
||||||
**/
|
**/
|
||||||
claimRecovery: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
claimRecovery: AugmentedSubmittable<(account: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* As the controller of a recoverable account, close an active recovery
|
* As the controller of a recoverable account, close an active recovery
|
||||||
* process for your account.
|
* process for your account.
|
||||||
@@ -2779,7 +2780,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Parameters:
|
* Parameters:
|
||||||
* - `rescuer`: The account trying to rescue this recoverable account.
|
* - `rescuer`: The account trying to rescue this recoverable account.
|
||||||
**/
|
**/
|
||||||
closeRecovery: AugmentedSubmittable<(rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
closeRecovery: AugmentedSubmittable<(rescuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Create a recovery configuration for your account. This makes your account recoverable.
|
* Create a recovery configuration for your account. This makes your account recoverable.
|
||||||
*
|
*
|
||||||
@@ -2812,7 +2813,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `account`: The lost account that you want to recover. This account needs to be
|
* - `account`: The lost account that you want to recover. This account needs to be
|
||||||
* recoverable (i.e. have a recovery configuration).
|
* recoverable (i.e. have a recovery configuration).
|
||||||
**/
|
**/
|
||||||
initiateRecovery: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
initiateRecovery: AugmentedSubmittable<(account: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Remove the recovery process for your account. Recovered accounts are still accessible.
|
* Remove the recovery process for your account. Recovered accounts are still accessible.
|
||||||
*
|
*
|
||||||
@@ -2837,7 +2838,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `lost`: The "lost account" to be recovered.
|
* - `lost`: The "lost account" to be recovered.
|
||||||
* - `rescuer`: The "rescuer account" which can call as the lost account.
|
* - `rescuer`: The "rescuer account" which can call as the lost account.
|
||||||
**/
|
**/
|
||||||
setRecovered: AugmentedSubmittable<(lost: AccountId32 | string | Uint8Array, rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
|
setRecovered: AugmentedSubmittable<(lost: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, rescuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Allow a "friend" of a recoverable account to vouch for an active recovery
|
* Allow a "friend" of a recoverable account to vouch for an active recovery
|
||||||
* process for that account.
|
* process for that account.
|
||||||
@@ -2852,7 +2853,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* The combination of these two parameters must point to an active recovery
|
* The combination of these two parameters must point to an active recovery
|
||||||
* process.
|
* process.
|
||||||
**/
|
**/
|
||||||
vouchRecovery: AugmentedSubmittable<(lost: AccountId32 | string | Uint8Array, rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
|
vouchRecovery: AugmentedSubmittable<(lost: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, rescuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -3121,7 +3122,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Total Complexity: O(1)
|
* Total Complexity: O(1)
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
found: AugmentedSubmittable<(founder: AccountId32 | string | Uint8Array, maxMembers: u32 | AnyNumber | Uint8Array, rules: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32, Bytes]>;
|
found: AugmentedSubmittable<(founder: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, maxMembers: u32 | AnyNumber | Uint8Array, rules: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32, Bytes]>;
|
||||||
/**
|
/**
|
||||||
* Allow suspended judgement origin to make judgement on a suspended candidate.
|
* Allow suspended judgement origin to make judgement on a suspended candidate.
|
||||||
*
|
*
|
||||||
@@ -3164,7 +3165,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Total Complexity: O(M + logM + B + X)
|
* Total Complexity: O(M + logM + B + X)
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
judgeSuspendedCandidate: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, judgement: PalletSocietyJudgement | 'Rebid' | 'Reject' | 'Approve' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, PalletSocietyJudgement]>;
|
judgeSuspendedCandidate: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, judgement: PalletSocietyJudgement | 'Rebid' | 'Reject' | 'Approve' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletSocietyJudgement]>;
|
||||||
/**
|
/**
|
||||||
* Allow suspension judgement origin to make judgement on a suspended member.
|
* Allow suspension judgement origin to make judgement on a suspended member.
|
||||||
*
|
*
|
||||||
@@ -3195,7 +3196,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Total Complexity: O(M + logM + B)
|
* Total Complexity: O(M + logM + B)
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
judgeSuspendedMember: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, forgive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, bool]>;
|
judgeSuspendedMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forgive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
|
||||||
/**
|
/**
|
||||||
* Transfer the first matured payout for the sender and remove it from the records.
|
* Transfer the first matured payout for the sender and remove it from the records.
|
||||||
*
|
*
|
||||||
@@ -3364,7 +3365,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Total Complexity: O(M + B + C + logM + logB + X)
|
* Total Complexity: O(M + B + C + logM + logB + X)
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
vouch: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, tip: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u128, u128]>;
|
vouch: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, tip: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128, u128]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -3876,7 +3877,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - up to 3 events
|
* - up to 3 events
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<Weight> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<Weight>, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
||||||
* state.
|
* state.
|
||||||
@@ -4002,7 +4003,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* May only be called from `T::AddOrigin`.
|
* May only be called from `T::AddOrigin`.
|
||||||
**/
|
**/
|
||||||
addMember: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
addMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Swap out the sending member for some other key `new`.
|
* Swap out the sending member for some other key `new`.
|
||||||
*
|
*
|
||||||
@@ -4010,7 +4011,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Prime membership is passed from the origin account to `new`, if extant.
|
* Prime membership is passed from the origin account to `new`, if extant.
|
||||||
**/
|
**/
|
||||||
changeKey: AugmentedSubmittable<(updated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
changeKey: AugmentedSubmittable<(updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Remove the prime member if it exists.
|
* Remove the prime member if it exists.
|
||||||
*
|
*
|
||||||
@@ -4022,7 +4023,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* May only be called from `T::RemoveOrigin`.
|
* May only be called from `T::RemoveOrigin`.
|
||||||
**/
|
**/
|
||||||
removeMember: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
removeMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Change the membership to a new set, disregarding the existing membership. Be nice and
|
* Change the membership to a new set, disregarding the existing membership. Be nice and
|
||||||
* pass `members` pre-sorted.
|
* pass `members` pre-sorted.
|
||||||
@@ -4035,7 +4036,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* May only be called from `T::PrimeOrigin`.
|
* May only be called from `T::PrimeOrigin`.
|
||||||
**/
|
**/
|
||||||
setPrime: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
setPrime: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Swap out one member `remove` for another `add`.
|
* Swap out one member `remove` for another `add`.
|
||||||
*
|
*
|
||||||
@@ -4043,7 +4044,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Prime membership is *not* passed from `remove` to `add`, if extant.
|
* Prime membership is *not* passed from `remove` to `add`, if extant.
|
||||||
**/
|
**/
|
||||||
swapMember: AugmentedSubmittable<(remove: AccountId32 | string | Uint8Array, add: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
|
swapMember: AugmentedSubmittable<(remove: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, add: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -4115,7 +4116,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - DbWrites: `Reasons`, `Tips`
|
* - DbWrites: `Reasons`, `Tips`
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
reportAwesome: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, AccountId32]>;
|
reportAwesome: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Retract a prior tip-report from `report_awesome`, and cancel the process of tipping.
|
* Retract a prior tip-report from `report_awesome`, and cancel the process of tipping.
|
||||||
*
|
*
|
||||||
@@ -4204,7 +4205,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - DbWrites: `Reasons`, `Tips`
|
* - DbWrites: `Reasons`, `Tips`
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
tipNew: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: AccountId32 | string | Uint8Array, tipValue: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, AccountId32, Compact<u128>]>;
|
tipNew: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, tipValue: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, MultiAddress, Compact<u128>]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -4297,7 +4298,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Events:
|
* Events:
|
||||||
* - `OverweightServiced`: On success.
|
* - `OverweightServiced`: On success.
|
||||||
**/
|
**/
|
||||||
serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64]>;
|
serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, Weight]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -4510,7 +4511,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - both nodes are within the same bag,
|
* - both nodes are within the same bag,
|
||||||
* - and `origin` has a greater `Score` than `lighter`.
|
* - and `origin` has a greater `Score` than `lighter`.
|
||||||
**/
|
**/
|
||||||
putInFrontOf: AugmentedSubmittable<(lighter: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
putInFrontOf: AugmentedSubmittable<(lighter: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Declare that some `dislocated` account has, through rewards or penalties, sufficiently
|
* Declare that some `dislocated` account has, through rewards or penalties, sufficiently
|
||||||
* changed its score that it should properly fall into a different bag than its current
|
* changed its score that it should properly fall into a different bag than its current
|
||||||
@@ -4523,7 +4524,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* If `dislocated` does not exists, it returns an error.
|
* If `dislocated` does not exists, it returns an error.
|
||||||
**/
|
**/
|
||||||
rebag: AugmentedSubmittable<(dislocated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
rebag: AugmentedSubmittable<(dislocated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -4543,7 +4544,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* NOTE: A successful return to this does *not* imply that the `msg` was executed successfully
|
* NOTE: A successful return to this does *not* imply that the `msg` was executed successfully
|
||||||
* to completion; only that *some* of it was executed.
|
* to completion; only that *some* of it was executed.
|
||||||
**/
|
**/
|
||||||
execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V0: any } | { V1: any } | { V2: any } | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, u64]>;
|
execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V0: any } | { V1: any } | { V2: any } | string | Uint8Array, maxWeight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, Weight]>;
|
||||||
/**
|
/**
|
||||||
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
||||||
* version a destination can accept is unknown).
|
* version a destination can accept is unknown).
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.1.1' };
|
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.4.1' };
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import '@polkadot/api-base/types/consts';
|
|||||||
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
||||||
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { Codec } from '@polkadot/types-codec/types';
|
import type { Codec } from '@polkadot/types-codec/types';
|
||||||
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
import type { Perbill, Percent, Permill, Weight } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
|
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
||||||
|
|
||||||
@@ -258,6 +258,9 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* take place over multiple blocks.
|
* take place over multiple blocks.
|
||||||
**/
|
**/
|
||||||
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
||||||
|
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
||||||
|
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
||||||
|
minerMaxWeight: Weight & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The priority of the unsigned transaction submitted in the unsigned-phase
|
* The priority of the unsigned transaction submitted in the unsigned-phase
|
||||||
**/
|
**/
|
||||||
@@ -302,7 +305,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* this pallet), then [`MinerConfig::solution_weight`] is used to compare against
|
* this pallet), then [`MinerConfig::solution_weight`] is used to compare against
|
||||||
* this value.
|
* this value.
|
||||||
**/
|
**/
|
||||||
signedMaxWeight: u64 & AugmentedConst<ApiType>;
|
signedMaxWeight: Weight & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Duration of the signed phase.
|
* Duration of the signed phase.
|
||||||
**/
|
**/
|
||||||
@@ -412,6 +415,31 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
|
nominationPools: {
|
||||||
|
/**
|
||||||
|
* The maximum pool points-to-balance ratio that an `open` pool can have.
|
||||||
|
*
|
||||||
|
* This is important in the event slashing takes place and the pool's points-to-balance
|
||||||
|
* ratio becomes disproportional.
|
||||||
|
*
|
||||||
|
* Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations
|
||||||
|
* are a function of number of points, and by setting this value to e.g. 10, you ensure
|
||||||
|
* that the total number of points in the system are at most 10 times the total_issuance of
|
||||||
|
* the chain, in the absolute worse case.
|
||||||
|
*
|
||||||
|
* For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1.
|
||||||
|
* Such a scenario would also be the equivalent of the pool being 90% slashed.
|
||||||
|
**/
|
||||||
|
maxPointsToBalance: u8 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The nomination pool's pallet id.
|
||||||
|
**/
|
||||||
|
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic const
|
||||||
|
**/
|
||||||
|
[key: string]: Codec;
|
||||||
|
};
|
||||||
paras: {
|
paras: {
|
||||||
unsignedPriority: u64 & AugmentedConst<ApiType>;
|
unsignedPriority: u64 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -432,6 +460,21 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* Number of runners_up to keep.
|
* Number of runners_up to keep.
|
||||||
**/
|
**/
|
||||||
desiredRunnersUp: u32 & AugmentedConst<ApiType>;
|
desiredRunnersUp: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum number of candidates in a phragmen election.
|
||||||
|
*
|
||||||
|
* Warning: The election happens onchain, and this value will determine
|
||||||
|
* the size of the election. When this limit is reached no more
|
||||||
|
* candidates are accepted in the election.
|
||||||
|
**/
|
||||||
|
maxCandidates: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum number of voters to allow in a phragmen election.
|
||||||
|
*
|
||||||
|
* Warning: This impacts the size of the election which is run onchain.
|
||||||
|
* When the limit is reached the new voters are ignored.
|
||||||
|
**/
|
||||||
|
maxVoters: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Identifier for the elections-phragmen pallet's lock
|
* Identifier for the elections-phragmen pallet's lock
|
||||||
**/
|
**/
|
||||||
@@ -521,7 +564,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* The maximum weight that may be scheduled per block for any dispatchables of less
|
* The maximum weight that may be scheduled per block for any dispatchables of less
|
||||||
* priority than `schedule::HARD_DEADLINE`.
|
* priority than `schedule::HARD_DEADLINE`.
|
||||||
**/
|
**/
|
||||||
maximumWeight: u64 & AugmentedConst<ApiType>;
|
maximumWeight: Weight & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The maximum number of scheduled calls in the queue for a single block.
|
* The maximum number of scheduled calls in the queue for a single block.
|
||||||
* Not strictly enforced, but used for weight estimation.
|
* Not strictly enforced, but used for weight estimation.
|
||||||
@@ -599,9 +642,9 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
/**
|
/**
|
||||||
* The weight of runtime database operations the runtime can invoke.
|
* The weight of runtime database operations the runtime can invoke.
|
||||||
**/
|
**/
|
||||||
dbWeight: FrameSupportWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
|
dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The designated SS85 prefix of this chain.
|
* The designated SS58 prefix of this chain.
|
||||||
*
|
*
|
||||||
* This replaces the "ss58Format" property declared in the chain spec. Reason is
|
* This replaces the "ss58Format" property declared in the chain spec. Reason is
|
||||||
* that the runtime should know about the prefix in order to make use of it as
|
* that the runtime should know about the prefix in order to make use of it as
|
||||||
|
|||||||
@@ -713,6 +713,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The target is invalid.
|
* The target is invalid.
|
||||||
**/
|
**/
|
||||||
InvalidTarget: AugmentedError<ApiType>;
|
InvalidTarget: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The provided judgement was for a different identity.
|
||||||
|
**/
|
||||||
|
JudgementForDifferentIdentity: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Judgement given.
|
* Judgement given.
|
||||||
**/
|
**/
|
||||||
@@ -860,6 +864,104 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
|
nominationPools: {
|
||||||
|
/**
|
||||||
|
* An account is already delegating in another pool. An account may only belong to one
|
||||||
|
* pool at a time.
|
||||||
|
**/
|
||||||
|
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The pools state cannot be changed.
|
||||||
|
**/
|
||||||
|
CanNotChangeState: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* None of the funds can be withdrawn yet because the bonding duration has not passed.
|
||||||
|
**/
|
||||||
|
CannotWithdrawAny: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Some error occurred that should never happen. This should be reported to the
|
||||||
|
* maintainers.
|
||||||
|
**/
|
||||||
|
Defensive: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The caller does not have adequate permissions.
|
||||||
|
**/
|
||||||
|
DoesNotHavePermission: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The member is fully unbonded (and thus cannot access the bonded and reward pool
|
||||||
|
* anymore to, for example, collect rewards).
|
||||||
|
**/
|
||||||
|
FullyUnbonding: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Too many members in the pool or system.
|
||||||
|
**/
|
||||||
|
MaxPoolMembers: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The system is maxed out on pools.
|
||||||
|
**/
|
||||||
|
MaxPools: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The member cannot unbond further chunks due to reaching the limit.
|
||||||
|
**/
|
||||||
|
MaxUnbondingLimit: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Metadata exceeds [`Config::MaxMetadataLen`]
|
||||||
|
**/
|
||||||
|
MetadataExceedsMaxLen: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The amount does not meet the minimum bond to either join or create a pool.
|
||||||
|
*
|
||||||
|
* The depositor can never unbond to a value less than
|
||||||
|
* `Pallet::depositor_min_bond`. The caller does not have nominating
|
||||||
|
* permissions for the pool. Members can never unbond to a value below `MinJoinBond`.
|
||||||
|
**/
|
||||||
|
MinimumBondNotMet: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for
|
||||||
|
* other members to be permissionlessly unbonded.
|
||||||
|
**/
|
||||||
|
NotDestroying: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Either a) the caller cannot make a valid kick or b) the pool is not destroying.
|
||||||
|
**/
|
||||||
|
NotKickerOrDestroying: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The caller does not have nominating permissions for the pool.
|
||||||
|
**/
|
||||||
|
NotNominator: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The pool is not open to join
|
||||||
|
**/
|
||||||
|
NotOpen: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The transaction could not be executed due to overflow risk for the pool.
|
||||||
|
**/
|
||||||
|
OverflowRisk: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Partial unbonding now allowed permissionlessly.
|
||||||
|
**/
|
||||||
|
PartialUnbondNotAllowedPermissionlessly: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* An account is not a member.
|
||||||
|
**/
|
||||||
|
PoolMemberNotFound: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* A (bonded) pool id does not exist.
|
||||||
|
**/
|
||||||
|
PoolNotFound: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* A reward pool does not exist. In all cases this is a system logic error.
|
||||||
|
**/
|
||||||
|
RewardPoolNotFound: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* A sub pool does not exist.
|
||||||
|
**/
|
||||||
|
SubPoolsNotFound: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic error
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedError<ApiType>;
|
||||||
|
};
|
||||||
paraInclusion: {
|
paraInclusion: {
|
||||||
/**
|
/**
|
||||||
* Bitfield consists of zeros only.
|
* Bitfield consists of zeros only.
|
||||||
|
|||||||
@@ -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, Weight } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchDispatchInfo, FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||||
|
|
||||||
@@ -338,10 +338,15 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
};
|
};
|
||||||
electionProviderMultiPhase: {
|
electionProviderMultiPhase: {
|
||||||
/**
|
/**
|
||||||
* The election has been finalized, with `Some` of the given computation, or else if the
|
* An election failed.
|
||||||
* election failed, `None`.
|
*
|
||||||
|
* Not much can be said about which computes failed in the process.
|
||||||
**/
|
**/
|
||||||
ElectionFinalized: AugmentedEvent<ApiType, [electionCompute: Option<PalletElectionProviderMultiPhaseElectionCompute>], { electionCompute: Option<PalletElectionProviderMultiPhaseElectionCompute> }>;
|
ElectionFailed: AugmentedEvent<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* The election has been finalized, with the given computation and score.
|
||||||
|
**/
|
||||||
|
ElectionFinalized: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore], { compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore }>;
|
||||||
/**
|
/**
|
||||||
* An account has been rewarded for their signed submission being finalized.
|
* An account has been rewarded for their signed submission being finalized.
|
||||||
**/
|
**/
|
||||||
@@ -362,7 +367,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* The `bool` is `true` when a previous solution was ejected to make room for this one.
|
* The `bool` is `true` when a previous solution was ejected to make room for this one.
|
||||||
**/
|
**/
|
||||||
SolutionStored: AugmentedEvent<ApiType, [electionCompute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool], { electionCompute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool }>;
|
SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool], { compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool }>;
|
||||||
/**
|
/**
|
||||||
* The unsigned phase of the given round has started.
|
* The unsigned phase of the given round has started.
|
||||||
**/
|
**/
|
||||||
@@ -519,6 +524,74 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
};
|
};
|
||||||
|
nominationPools: {
|
||||||
|
/**
|
||||||
|
* A member has became bonded in a pool.
|
||||||
|
**/
|
||||||
|
Bonded: AugmentedEvent<ApiType, [member: AccountId32, poolId: u32, bonded: u128, joined: bool], { member: AccountId32, poolId: u32, bonded: u128, joined: bool }>;
|
||||||
|
/**
|
||||||
|
* A pool has been created.
|
||||||
|
**/
|
||||||
|
Created: AugmentedEvent<ApiType, [depositor: AccountId32, poolId: u32], { depositor: AccountId32, poolId: u32 }>;
|
||||||
|
/**
|
||||||
|
* A pool has been destroyed.
|
||||||
|
**/
|
||||||
|
Destroyed: AugmentedEvent<ApiType, [poolId: u32], { poolId: u32 }>;
|
||||||
|
/**
|
||||||
|
* A member has been removed from a pool.
|
||||||
|
*
|
||||||
|
* The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked).
|
||||||
|
**/
|
||||||
|
MemberRemoved: AugmentedEvent<ApiType, [poolId: u32, member: AccountId32], { poolId: u32, member: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* A payout has been made to a member.
|
||||||
|
**/
|
||||||
|
PaidOut: AugmentedEvent<ApiType, [member: AccountId32, poolId: u32, payout: u128], { member: AccountId32, poolId: u32, payout: u128 }>;
|
||||||
|
/**
|
||||||
|
* The active balance of pool `pool_id` has been slashed to `balance`.
|
||||||
|
**/
|
||||||
|
PoolSlashed: AugmentedEvent<ApiType, [poolId: u32, balance: u128], { poolId: u32, balance: u128 }>;
|
||||||
|
/**
|
||||||
|
* The roles of a pool have been updated to the given new roles. Note that the depositor
|
||||||
|
* can never change.
|
||||||
|
**/
|
||||||
|
RolesUpdated: AugmentedEvent<ApiType, [root: Option<AccountId32>, stateToggler: Option<AccountId32>, nominator: Option<AccountId32>], { root: Option<AccountId32>, stateToggler: Option<AccountId32>, nominator: Option<AccountId32> }>;
|
||||||
|
/**
|
||||||
|
* The state of a pool has changed
|
||||||
|
**/
|
||||||
|
StateChanged: AugmentedEvent<ApiType, [poolId: u32, newState: PalletNominationPoolsPoolState], { poolId: u32, newState: PalletNominationPoolsPoolState }>;
|
||||||
|
/**
|
||||||
|
* A member has unbonded from their pool.
|
||||||
|
*
|
||||||
|
* - `balance` is the corresponding balance of the number of points that has been
|
||||||
|
* requested to be unbonded (the argument of the `unbond` transaction) from the bonded
|
||||||
|
* pool.
|
||||||
|
* - `points` is the number of points that are issued as a result of `balance` being
|
||||||
|
* dissolved into the corresponding unbonding pool.
|
||||||
|
* - `era` is the era in which the balance will be unbonded.
|
||||||
|
* In the absence of slashing, these values will match. In the presence of slashing, the
|
||||||
|
* number of points that are issued in the unbonding pool will be less than the amount
|
||||||
|
* requested to be unbonded.
|
||||||
|
**/
|
||||||
|
Unbonded: AugmentedEvent<ApiType, [member: AccountId32, poolId: u32, balance: u128, points: u128, era: u32], { member: AccountId32, poolId: u32, balance: u128, points: u128, era: u32 }>;
|
||||||
|
/**
|
||||||
|
* The unbond pool at `era` of pool `pool_id` has been slashed to `balance`.
|
||||||
|
**/
|
||||||
|
UnbondingPoolSlashed: AugmentedEvent<ApiType, [poolId: u32, era: u32, balance: u128], { poolId: u32, era: u32, balance: u128 }>;
|
||||||
|
/**
|
||||||
|
* A member has withdrawn from their pool.
|
||||||
|
*
|
||||||
|
* The given number of `points` have been dissolved in return of `balance`.
|
||||||
|
*
|
||||||
|
* Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance
|
||||||
|
* will be 1.
|
||||||
|
**/
|
||||||
|
Withdrawn: AugmentedEvent<ApiType, [member: AccountId32, poolId: u32, balance: u128, points: u128], { member: AccountId32, poolId: u32, balance: u128, points: u128 }>;
|
||||||
|
/**
|
||||||
|
* Generic event
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
|
};
|
||||||
offences: {
|
offences: {
|
||||||
/**
|
/**
|
||||||
* There is an offence reported of the given `kind` happened at the `session_index` and
|
* There is an offence reported of the given `kind` happened at the `session_index` and
|
||||||
@@ -838,11 +911,11 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* An extrinsic failed.
|
* An extrinsic failed.
|
||||||
**/
|
**/
|
||||||
ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportWeightsDispatchInfo], { dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportWeightsDispatchInfo }>;
|
ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportDispatchDispatchInfo], { dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportDispatchDispatchInfo }>;
|
||||||
/**
|
/**
|
||||||
* An extrinsic completed successfully.
|
* An extrinsic completed successfully.
|
||||||
**/
|
**/
|
||||||
ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo: FrameSupportWeightsDispatchInfo], { dispatchInfo: FrameSupportWeightsDispatchInfo }>;
|
ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo: FrameSupportDispatchDispatchInfo], { dispatchInfo: FrameSupportDispatchDispatchInfo }>;
|
||||||
/**
|
/**
|
||||||
* An account was reaped.
|
* An account was reaped.
|
||||||
**/
|
**/
|
||||||
@@ -1020,14 +1093,14 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ para, id, overweight_index, required \]
|
* \[ para, id, overweight_index, required \]
|
||||||
**/
|
**/
|
||||||
OverweightEnqueued: AugmentedEvent<ApiType, [u32, U8aFixed, u64, u64]>;
|
OverweightEnqueued: AugmentedEvent<ApiType, [u32, U8aFixed, u64, Weight]>;
|
||||||
/**
|
/**
|
||||||
* Upward message from the overweight queue was executed with the given actual weight
|
* Upward message from the overweight queue was executed with the given actual weight
|
||||||
* used.
|
* used.
|
||||||
*
|
*
|
||||||
* \[ overweight_index, used \]
|
* \[ overweight_index, used \]
|
||||||
**/
|
**/
|
||||||
OverweightServiced: AugmentedEvent<ApiType, [u64, u64]>;
|
OverweightServiced: AugmentedEvent<ApiType, [u64, Weight]>;
|
||||||
/**
|
/**
|
||||||
* Upward message is unsupported version of XCM.
|
* Upward message is unsupported version of XCM.
|
||||||
* \[ id \]
|
* \[ id \]
|
||||||
@@ -1042,7 +1115,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* The weight limit for handling upward messages was reached.
|
* The weight limit for handling upward messages was reached.
|
||||||
* \[ id, remaining, required \]
|
* \[ id, remaining, required \]
|
||||||
**/
|
**/
|
||||||
WeightExhausted: AugmentedEvent<ApiType, [U8aFixed, u64, u64]>;
|
WeightExhausted: AugmentedEvent<ApiType, [U8aFixed, Weight, Weight]>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
@@ -1170,7 +1243,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ id, pallet index, call index, actual weight, max budgeted weight \]
|
* \[ id, pallet index, call index, actual weight, max budgeted weight \]
|
||||||
**/
|
**/
|
||||||
NotifyOverweight: AugmentedEvent<ApiType, [u64, u8, u8, u64, u64]>;
|
NotifyOverweight: AugmentedEvent<ApiType, [u64, u8, u8, Weight, Weight]>;
|
||||||
/**
|
/**
|
||||||
* A given location which had a version change subscription was dropped owing to an error
|
* A given location which had a version change subscription was dropped owing to an error
|
||||||
* migrating the location to our new XCM format.
|
* migrating the location to our new XCM format.
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, W
|
|||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduledV3, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, 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, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduledV3, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, 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 { 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>;
|
||||||
@@ -773,6 +773,98 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
|
nominationPools: {
|
||||||
|
/**
|
||||||
|
* Storage for bonded pools.
|
||||||
|
**/
|
||||||
|
bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* Counter for the related counted storage map
|
||||||
|
**/
|
||||||
|
counterForBondedPools: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Counter for the related counted storage map
|
||||||
|
**/
|
||||||
|
counterForMetadata: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Counter for the related counted storage map
|
||||||
|
**/
|
||||||
|
counterForPoolMembers: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Counter for the related counted storage map
|
||||||
|
**/
|
||||||
|
counterForReversePoolIdLookup: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Counter for the related counted storage map
|
||||||
|
**/
|
||||||
|
counterForRewardPools: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Counter for the related counted storage map
|
||||||
|
**/
|
||||||
|
counterForSubPoolsStorage: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Ever increasing number of all pools created so far.
|
||||||
|
**/
|
||||||
|
lastPoolId: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Maximum number of members that can exist in the system. If `None`, then the count
|
||||||
|
* members are not bound on a system wide basis.
|
||||||
|
**/
|
||||||
|
maxPoolMembers: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Maximum number of members that may belong to pool. If `None`, then the count of
|
||||||
|
* members is not bound on a per pool basis.
|
||||||
|
**/
|
||||||
|
maxPoolMembersPerPool: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Maximum number of nomination pools that can exist. If `None`, then an unbounded number of
|
||||||
|
* pools can exist.
|
||||||
|
**/
|
||||||
|
maxPools: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Metadata for the pool.
|
||||||
|
**/
|
||||||
|
metadata: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* Minimum bond required to create a pool.
|
||||||
|
*
|
||||||
|
* This is the amount that the depositor must put as their initial stake in the pool, as an
|
||||||
|
* indication of "skin in the game".
|
||||||
|
*
|
||||||
|
* This is the value that will always exist in the staking ledger of the pool bonded account
|
||||||
|
* while all other accounts leave.
|
||||||
|
**/
|
||||||
|
minCreateBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Minimum amount to bond to join a pool.
|
||||||
|
**/
|
||||||
|
minJoinBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Active members.
|
||||||
|
**/
|
||||||
|
poolMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletNominationPoolsPoolMember>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* A reverse lookup from the pool's account id to its id.
|
||||||
|
*
|
||||||
|
* This is only used for slashing. In all other instances, the pool id is used, and the
|
||||||
|
* accounts are deterministically derived from it.
|
||||||
|
**/
|
||||||
|
reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* Reward pools. This is where there rewards for each pool accumulate. When a members payout
|
||||||
|
* is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
|
||||||
|
**/
|
||||||
|
rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,
|
||||||
|
* hence the name sub-pools. Keyed by the bonded pools account.
|
||||||
|
**/
|
||||||
|
subPoolsStorage: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsSubPools>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* Generic query
|
||||||
|
**/
|
||||||
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
|
};
|
||||||
offences: {
|
offences: {
|
||||||
/**
|
/**
|
||||||
* A vector of reports of the same kind that happened at the same time slot.
|
* A vector of reports of the same kind that happened at the same time slot.
|
||||||
@@ -1527,7 +1619,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* The current weight for the block.
|
* The current weight for the block.
|
||||||
**/
|
**/
|
||||||
blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportWeightsPerDispatchClassU64>, []> & QueryableStorageEntry<ApiType, []>;
|
blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportDispatchPerDispatchClassWeight>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Digest of the current block, also part of the block header.
|
* Digest of the current block, also part of the block header.
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -7,7 +7,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, bool, u32 } from '@polkadot/types-codec';
|
import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, 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 { ValidatorSet } from '@polkadot/types/interfaces/beefy';
|
||||||
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
||||||
@@ -19,7 +19,7 @@ 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 { 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, Block, Hash, Header, Index, KeyTypeId, Slot, ValidatorId } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId } 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';
|
||||||
@@ -206,6 +206,17 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
|
/** 0x17a6bc0d0062aeb3/1 */
|
||||||
|
nominationPoolsApi: {
|
||||||
|
/**
|
||||||
|
* Returns the pending rewards for the given member.
|
||||||
|
**/
|
||||||
|
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
||||||
|
/**
|
||||||
|
* Generic call
|
||||||
|
**/
|
||||||
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
|
};
|
||||||
/** 0xf78b278be53f454c/2 */
|
/** 0xf78b278be53f454c/2 */
|
||||||
offchainWorkerApi: {
|
offchainWorkerApi: {
|
||||||
/**
|
/**
|
||||||
@@ -337,5 +348,20 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
|
/** 0xf3ff14d5ab527059/1 */
|
||||||
|
transactionPaymentCallApi: {
|
||||||
|
/**
|
||||||
|
* The call fee details
|
||||||
|
**/
|
||||||
|
queryCallFeeDetails: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
|
||||||
|
/**
|
||||||
|
* The call info
|
||||||
|
**/
|
||||||
|
queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
||||||
|
/**
|
||||||
|
* Generic call
|
||||||
|
**/
|
||||||
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
|
};
|
||||||
} // AugmentedCalls
|
} // AugmentedCalls
|
||||||
} // declare module
|
} // declare module
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import type { Data } from '@polkadot/types';
|
|||||||
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Weight } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportScheduleMaybeHashed, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
import type { FrameSupportScheduleMaybeHashed, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||||
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
||||||
@@ -754,11 +754,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Sets the maximum amount of weight any individual upward message may consume.
|
* Sets the maximum amount of weight any individual upward message may consume.
|
||||||
**/
|
**/
|
||||||
setUmpMaxIndividualWeight: AugmentedSubmittable<(updated: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
|
setUmpMaxIndividualWeight: AugmentedSubmittable<(updated: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Weight]>;
|
||||||
/**
|
/**
|
||||||
* Sets the soft limit for the phase of dispatching dispatchable upward messages.
|
* Sets the soft limit for the phase of dispatching dispatchable upward messages.
|
||||||
**/
|
**/
|
||||||
setUmpServiceTotalWeight: AugmentedSubmittable<(updated: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
|
setUmpServiceTotalWeight: AugmentedSubmittable<(updated: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Weight]>;
|
||||||
/**
|
/**
|
||||||
* Set the validation upgrade cooldown.
|
* Set the validation upgrade cooldown.
|
||||||
**/
|
**/
|
||||||
@@ -811,7 +811,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - up to 3 events
|
* - up to 3 events
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<Weight> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<Weight>, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
||||||
* state.
|
* state.
|
||||||
@@ -1083,7 +1083,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight: `O(R)` where R is the number of referendums the voter delegating to has
|
* Weight: `O(R)` where R is the number of referendums the voter delegating to has
|
||||||
* voted on. Weight is charged as if maximum votes.
|
* voted on. Weight is charged as if maximum votes.
|
||||||
**/
|
**/
|
||||||
delegate: AugmentedSubmittable<(to: AccountId32 | string | Uint8Array, conviction: PalletDemocracyConviction | 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x' | number | Uint8Array, balance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, PalletDemocracyConviction, u128]>;
|
delegate: AugmentedSubmittable<(to: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, conviction: PalletDemocracyConviction | 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x' | number | Uint8Array, balance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletDemocracyConviction, u128]>;
|
||||||
/**
|
/**
|
||||||
* Schedule an emergency cancellation of a referendum. Cannot happen twice to the same
|
* Schedule an emergency cancellation of a referendum. Cannot happen twice to the same
|
||||||
* referendum.
|
* referendum.
|
||||||
@@ -1243,7 +1243,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on.
|
* Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on.
|
||||||
* Weight is calculated for the maximum number of vote.
|
* Weight is calculated for the maximum number of vote.
|
||||||
**/
|
**/
|
||||||
removeOtherVote: AugmentedSubmittable<(target: AccountId32 | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
removeOtherVote: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32]>;
|
||||||
/**
|
/**
|
||||||
* Remove a vote for a referendum.
|
* Remove a vote for a referendum.
|
||||||
*
|
*
|
||||||
@@ -1311,7 +1311,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Weight: `O(R)` with R number of vote of target.
|
* Weight: `O(R)` with R number of vote of target.
|
||||||
**/
|
**/
|
||||||
unlock: AugmentedSubmittable<(target: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
unlock: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Veto and blacklist the external proposal hash.
|
* Veto and blacklist the external proposal hash.
|
||||||
*
|
*
|
||||||
@@ -1535,7 +1535,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - One event.
|
* - One event.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
addRegistrar: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
addRegistrar: AugmentedSubmittable<(account: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Add the given account to the sender's subs.
|
* Add the given account to the sender's subs.
|
||||||
*
|
*
|
||||||
@@ -1619,6 +1619,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `target`: the account whose identity the judgement is upon. This must be an account
|
* - `target`: the account whose identity the judgement is upon. This must be an account
|
||||||
* with a registered identity.
|
* with a registered identity.
|
||||||
* - `judgement`: the judgement of the registrar of index `reg_index` about `target`.
|
* - `judgement`: the judgement of the registrar of index `reg_index` about `target`.
|
||||||
|
* - `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided.
|
||||||
*
|
*
|
||||||
* Emits `JudgementGiven` if successful.
|
* Emits `JudgementGiven` if successful.
|
||||||
*
|
*
|
||||||
@@ -1630,7 +1631,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - One event.
|
* - One event.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
provideJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, judgement: PalletIdentityJudgement | { Unknown: any } | { FeePaid: any } | { Reasonable: any } | { KnownGood: any } | { OutOfDate: any } | { LowQuality: any } | { Erroneous: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, PalletIdentityJudgement]>;
|
provideJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, judgement: PalletIdentityJudgement | { Unknown: any } | { FeePaid: any } | { Reasonable: any } | { KnownGood: any } | { OutOfDate: any } | { LowQuality: any } | { Erroneous: any } | string | Uint8Array, identity: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, PalletIdentityJudgement, H256]>;
|
||||||
/**
|
/**
|
||||||
* Remove the sender as a sub-account.
|
* Remove the sender as a sub-account.
|
||||||
*
|
*
|
||||||
@@ -1702,7 +1703,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Benchmark: 8.823 + R * 0.32 µs (min squares analysis)
|
* - Benchmark: 8.823 + R * 0.32 µs (min squares analysis)
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, AccountId32]>;
|
setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Set the fee required for a judgement to be requested from a registrar.
|
* Set the fee required for a judgement to be requested from a registrar.
|
||||||
*
|
*
|
||||||
@@ -1849,7 +1850,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Writes: Indices Accounts, System Account (original owner)
|
* - Writes: Indices Accounts, System Account (original owner)
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
forceTransfer: AugmentedSubmittable<(updated: AccountId32 | string | Uint8Array, index: u32 | AnyNumber | Uint8Array, freeze: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32, bool]>;
|
forceTransfer: AugmentedSubmittable<(updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, index: u32 | AnyNumber | Uint8Array, freeze: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32, bool]>;
|
||||||
/**
|
/**
|
||||||
* Free up an index owned by the sender.
|
* Free up an index owned by the sender.
|
||||||
*
|
*
|
||||||
@@ -1914,7 +1915,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Writes: Indices Accounts, System Account (recipient)
|
* - Writes: Indices Accounts, System Account (recipient)
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
transfer: AugmentedSubmittable<(updated: AccountId32 | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
transfer: AugmentedSubmittable<(updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -1970,7 +1971,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Write: Multisig Storage, [Caller Account]
|
* - Write: Multisig Storage, [Caller Account]
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, callHash: U8aFixed | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, u64]>;
|
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, callHash: U8aFixed | string | Uint8Array, maxWeight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, Weight]>;
|
||||||
/**
|
/**
|
||||||
* Register approval for a dispatch to be made from a deterministic composite account if
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
||||||
* approved by a total of `threshold - 1` of `other_signatories`.
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
||||||
@@ -2018,7 +2019,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Plus Call Weight
|
* - Plus Call Weight
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, u64]>;
|
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, Weight]>;
|
||||||
/**
|
/**
|
||||||
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
||||||
*
|
*
|
||||||
@@ -2072,6 +2073,188 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
|
nominationPools: {
|
||||||
|
/**
|
||||||
|
* Bond `extra` more funds from `origin` into the pool to which they already belong.
|
||||||
|
*
|
||||||
|
* Additional funds can come from either the free balance of the account, of from the
|
||||||
|
* accumulated rewards, see [`BondExtra`].
|
||||||
|
*
|
||||||
|
* Bonding extra funds implies an automatic payout of all pending rewards as well.
|
||||||
|
**/
|
||||||
|
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | { FreeBalance: any } | { Rewards: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
|
||||||
|
/**
|
||||||
|
* Chill on behalf of the pool.
|
||||||
|
*
|
||||||
|
* The dispatch origin of this call must be signed by the pool nominator or the pool
|
||||||
|
* root role, same as [`Pallet::nominate`].
|
||||||
|
*
|
||||||
|
* This directly forward the call to the staking pallet, on behalf of the pool bonded
|
||||||
|
* account.
|
||||||
|
**/
|
||||||
|
chill: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
|
/**
|
||||||
|
* A bonded member can use this to claim their payout based on the rewards that the pool
|
||||||
|
* has accumulated since their last claimed payout (OR since joining if this is there first
|
||||||
|
* time claiming rewards). The payout will be transferred to the member's account.
|
||||||
|
*
|
||||||
|
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
||||||
|
* members in the pools stake. Rewards do not "expire".
|
||||||
|
**/
|
||||||
|
claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
|
/**
|
||||||
|
* Create a new delegation pool.
|
||||||
|
*
|
||||||
|
* # Arguments
|
||||||
|
*
|
||||||
|
* * `amount` - The amount of funds to delegate to the pool. This also acts of a sort of
|
||||||
|
* deposit since the pools creator cannot fully unbond funds until the pool is being
|
||||||
|
* destroyed.
|
||||||
|
* * `index` - A disambiguation index for creating the account. Likely only useful when
|
||||||
|
* creating multiple pools in the same extrinsic.
|
||||||
|
* * `root` - The account to set as [`PoolRoles::root`].
|
||||||
|
* * `nominator` - The account to set as the [`PoolRoles::nominator`].
|
||||||
|
* * `state_toggler` - The account to set as the [`PoolRoles::state_toggler`].
|
||||||
|
*
|
||||||
|
* # Note
|
||||||
|
*
|
||||||
|
* In addition to `amount`, the caller will transfer the existential deposit; so the caller
|
||||||
|
* needs at have at least `amount + existential_deposit` transferrable.
|
||||||
|
**/
|
||||||
|
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress]>;
|
||||||
|
/**
|
||||||
|
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
||||||
|
* pools account and immediately increases the pools bond.
|
||||||
|
*
|
||||||
|
* # Note
|
||||||
|
*
|
||||||
|
* * An account can only be a member of a single pool.
|
||||||
|
* * An account cannot join the same pool multiple times.
|
||||||
|
* * This call will *not* dust the member account, so the member must have at least
|
||||||
|
* `existential deposit + amount` in their account.
|
||||||
|
* * Only a pool with [`PoolState::Open`] can be joined
|
||||||
|
**/
|
||||||
|
join: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
|
||||||
|
/**
|
||||||
|
* Nominate on behalf of the pool.
|
||||||
|
*
|
||||||
|
* The dispatch origin of this call must be signed by the pool nominator or the pool
|
||||||
|
* root role.
|
||||||
|
*
|
||||||
|
* This directly forward the call to the staking pallet, on behalf of the pool bonded
|
||||||
|
* account.
|
||||||
|
**/
|
||||||
|
nominate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, validators: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<AccountId32>]>;
|
||||||
|
/**
|
||||||
|
* Call `withdraw_unbonded` for the pools account. This call can be made by any account.
|
||||||
|
*
|
||||||
|
* This is useful if their are too many unlocking chunks to call `unbond`, and some
|
||||||
|
* can be cleared by withdrawing. In the case there are too many unlocking chunks, the user
|
||||||
|
* would probably see an error like `NoMoreChunks` emitted from the staking system when
|
||||||
|
* they attempt to unbond.
|
||||||
|
**/
|
||||||
|
poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
||||||
|
/**
|
||||||
|
* Update configurations for the nomination pools. The origin for this call must be
|
||||||
|
* Root.
|
||||||
|
*
|
||||||
|
* # Arguments
|
||||||
|
*
|
||||||
|
* * `min_join_bond` - Set [`MinJoinBond`].
|
||||||
|
* * `min_create_bond` - Set [`MinCreateBond`].
|
||||||
|
* * `max_pools` - Set [`MaxPools`].
|
||||||
|
* * `max_members` - Set [`MaxPoolMembers`].
|
||||||
|
* * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`].
|
||||||
|
**/
|
||||||
|
setConfigs: AugmentedSubmittable<(minJoinBond: PalletNominationPoolsConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, minCreateBond: PalletNominationPoolsConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxPools: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxMembers: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxMembersPerPool: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32]>;
|
||||||
|
/**
|
||||||
|
* Set a new metadata for the pool.
|
||||||
|
*
|
||||||
|
* The dispatch origin of this call must be signed by the state toggler, or the root role
|
||||||
|
* of the pool.
|
||||||
|
**/
|
||||||
|
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
||||||
|
/**
|
||||||
|
* Set a new state for the pool.
|
||||||
|
*
|
||||||
|
* If a pool is already in the `Destroying` state, then under no condition can its state
|
||||||
|
* change again.
|
||||||
|
*
|
||||||
|
* The dispatch origin of this call must be either:
|
||||||
|
*
|
||||||
|
* 1. signed by the state toggler, or the root role of the pool,
|
||||||
|
* 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
|
||||||
|
* then the state of the pool can be permissionlessly changed to `Destroying`.
|
||||||
|
**/
|
||||||
|
setState: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, state: PalletNominationPoolsPoolState | 'Open' | 'Blocked' | 'Destroying' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsPoolState]>;
|
||||||
|
/**
|
||||||
|
* Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It
|
||||||
|
* implicitly collects the rewards one last time, since not doing so would mean some
|
||||||
|
* rewards would be forfeited.
|
||||||
|
*
|
||||||
|
* Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
|
||||||
|
* account).
|
||||||
|
*
|
||||||
|
* # Conditions for a permissionless dispatch.
|
||||||
|
*
|
||||||
|
* * The pool is blocked and the caller is either the root or state-toggler. This is
|
||||||
|
* refereed to as a kick.
|
||||||
|
* * The pool is destroying and the member is not the depositor.
|
||||||
|
* * The pool is destroying, the member is the depositor and no other members are in the
|
||||||
|
* pool.
|
||||||
|
*
|
||||||
|
* ## Conditions for permissioned dispatch (i.e. the caller is also the
|
||||||
|
* `member_account`):
|
||||||
|
*
|
||||||
|
* * The caller is not the depositor.
|
||||||
|
* * The caller is the depositor, the pool is destroying and no other members are in the
|
||||||
|
* pool.
|
||||||
|
*
|
||||||
|
* # Note
|
||||||
|
*
|
||||||
|
* If there are too many unlocking chunks to unbond with the pool account,
|
||||||
|
* [`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks. If
|
||||||
|
* there are too many unlocking chunks, the result of this call will likely be the
|
||||||
|
* `NoMoreChunks` error from the staking system.
|
||||||
|
**/
|
||||||
|
unbond: AugmentedSubmittable<(memberAccount: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, unbondingPoints: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
||||||
|
/**
|
||||||
|
* Update the roles of the pool.
|
||||||
|
*
|
||||||
|
* The root is the only entity that can change any of the roles, including itself,
|
||||||
|
* excluding the depositor, who can never change.
|
||||||
|
*
|
||||||
|
* It emits an event, notifying UIs of the role change. This event is quite relevant to
|
||||||
|
* most pool members and they should be informed of changes to pool roles.
|
||||||
|
**/
|
||||||
|
updateRoles: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newRoot: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, newNominator: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, newStateToggler: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32]>;
|
||||||
|
/**
|
||||||
|
* Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an
|
||||||
|
* error is returned.
|
||||||
|
*
|
||||||
|
* Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
|
||||||
|
* account).
|
||||||
|
*
|
||||||
|
* # Conditions for a permissionless dispatch
|
||||||
|
*
|
||||||
|
* * The pool is in destroy mode and the target is not the depositor.
|
||||||
|
* * The target is the depositor and they are the only member in the sub pools.
|
||||||
|
* * The pool is blocked and the caller is either the root or state-toggler.
|
||||||
|
*
|
||||||
|
* # Conditions for permissioned dispatch
|
||||||
|
*
|
||||||
|
* * The caller is the target and they are not the depositor.
|
||||||
|
*
|
||||||
|
* # Note
|
||||||
|
*
|
||||||
|
* If the target is the depositor, the pool will be destroyed.
|
||||||
|
**/
|
||||||
|
withdrawUnbonded: AugmentedSubmittable<(memberAccount: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32]>;
|
||||||
|
/**
|
||||||
|
* Generic tx
|
||||||
|
**/
|
||||||
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
|
};
|
||||||
paraInclusion: {
|
paraInclusion: {
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
@@ -2317,7 +2500,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight is a function of the number of proxies the user has (P).
|
* Weight is a function of the number of proxies the user has (P).
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
addProxy: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, PolkadotRuntimeProxyType, u32]>;
|
addProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
|
||||||
/**
|
/**
|
||||||
* Publish the hash of a proxy-call that will be made in the future.
|
* Publish the hash of a proxy-call that will be made in the future.
|
||||||
*
|
*
|
||||||
@@ -2341,7 +2524,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - P: the number of proxies the user has.
|
* - P: the number of proxies the user has.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
announce: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, H256]>;
|
announce: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, H256]>;
|
||||||
/**
|
/**
|
||||||
* Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and
|
* Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and
|
||||||
* initialize it with a proxy of `proxy_type` for `origin` sender.
|
* initialize it with a proxy of `proxy_type` for `origin` sender.
|
||||||
@@ -2390,7 +2573,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight is a function of the number of proxies the user has (P).
|
* Weight is a function of the number of proxies the user has (P).
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
killAnonymous: AugmentedSubmittable<(spawner: AccountId32 | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, PolkadotRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
killAnonymous: AugmentedSubmittable<(spawner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Dispatch the given `call` from an account that the sender is authorised for through
|
* Dispatch the given `call` from an account that the sender is authorised for through
|
||||||
* `add_proxy`.
|
* `add_proxy`.
|
||||||
@@ -2408,7 +2591,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight is a function of the number of proxies the user has (P).
|
* Weight is a function of the number of proxies the user has (P).
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<PolkadotRuntimeProxyType>, Call]>;
|
proxy: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
|
||||||
/**
|
/**
|
||||||
* Dispatch the given `call` from an account that the sender is authorized for through
|
* Dispatch the given `call` from an account that the sender is authorized for through
|
||||||
* `add_proxy`.
|
* `add_proxy`.
|
||||||
@@ -2428,7 +2611,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - P: the number of proxies the user has.
|
* - P: the number of proxies the user has.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<PolkadotRuntimeProxyType>, Call]>;
|
proxyAnnounced: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
|
||||||
/**
|
/**
|
||||||
* Remove the given announcement of a delegate.
|
* Remove the given announcement of a delegate.
|
||||||
*
|
*
|
||||||
@@ -2447,7 +2630,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - P: the number of proxies the user has.
|
* - P: the number of proxies the user has.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
rejectAnnouncement: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, H256]>;
|
rejectAnnouncement: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, H256]>;
|
||||||
/**
|
/**
|
||||||
* Remove a given announcement.
|
* Remove a given announcement.
|
||||||
*
|
*
|
||||||
@@ -2466,7 +2649,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - P: the number of proxies the user has.
|
* - P: the number of proxies the user has.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
removeAnnouncement: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, H256]>;
|
removeAnnouncement: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, H256]>;
|
||||||
/**
|
/**
|
||||||
* Unregister all proxy accounts for the sender.
|
* Unregister all proxy accounts for the sender.
|
||||||
*
|
*
|
||||||
@@ -2493,7 +2676,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight is a function of the number of proxies the user has (P).
|
* Weight is a function of the number of proxies the user has (P).
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
removeProxy: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, PolkadotRuntimeProxyType, u32]>;
|
removeProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -3190,7 +3373,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - up to 3 events
|
* - up to 3 events
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<Weight> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<Weight>, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
||||||
* state.
|
* state.
|
||||||
@@ -3316,7 +3499,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* May only be called from `T::AddOrigin`.
|
* May only be called from `T::AddOrigin`.
|
||||||
**/
|
**/
|
||||||
addMember: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
addMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Swap out the sending member for some other key `new`.
|
* Swap out the sending member for some other key `new`.
|
||||||
*
|
*
|
||||||
@@ -3324,7 +3507,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Prime membership is passed from the origin account to `new`, if extant.
|
* Prime membership is passed from the origin account to `new`, if extant.
|
||||||
**/
|
**/
|
||||||
changeKey: AugmentedSubmittable<(updated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
changeKey: AugmentedSubmittable<(updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Remove the prime member if it exists.
|
* Remove the prime member if it exists.
|
||||||
*
|
*
|
||||||
@@ -3336,7 +3519,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* May only be called from `T::RemoveOrigin`.
|
* May only be called from `T::RemoveOrigin`.
|
||||||
**/
|
**/
|
||||||
removeMember: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
removeMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Change the membership to a new set, disregarding the existing membership. Be nice and
|
* Change the membership to a new set, disregarding the existing membership. Be nice and
|
||||||
* pass `members` pre-sorted.
|
* pass `members` pre-sorted.
|
||||||
@@ -3349,7 +3532,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* May only be called from `T::PrimeOrigin`.
|
* May only be called from `T::PrimeOrigin`.
|
||||||
**/
|
**/
|
||||||
setPrime: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
setPrime: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Swap out one member `remove` for another `add`.
|
* Swap out one member `remove` for another `add`.
|
||||||
*
|
*
|
||||||
@@ -3357,7 +3540,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Prime membership is *not* passed from `remove` to `add`, if extant.
|
* Prime membership is *not* passed from `remove` to `add`, if extant.
|
||||||
**/
|
**/
|
||||||
swapMember: AugmentedSubmittable<(remove: AccountId32 | string | Uint8Array, add: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
|
swapMember: AugmentedSubmittable<(remove: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, add: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -3429,7 +3612,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - DbWrites: `Reasons`, `Tips`
|
* - DbWrites: `Reasons`, `Tips`
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
reportAwesome: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, AccountId32]>;
|
reportAwesome: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Retract a prior tip-report from `report_awesome`, and cancel the process of tipping.
|
* Retract a prior tip-report from `report_awesome`, and cancel the process of tipping.
|
||||||
*
|
*
|
||||||
@@ -3518,7 +3701,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - DbWrites: `Reasons`, `Tips`
|
* - DbWrites: `Reasons`, `Tips`
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
tipNew: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: AccountId32 | string | Uint8Array, tipValue: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, AccountId32, Compact<u128>]>;
|
tipNew: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, tipValue: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, MultiAddress, Compact<u128>]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -3611,7 +3794,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Events:
|
* Events:
|
||||||
* - `OverweightServiced`: On success.
|
* - `OverweightServiced`: On success.
|
||||||
**/
|
**/
|
||||||
serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64]>;
|
serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, Weight]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -3824,7 +4007,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - both nodes are within the same bag,
|
* - both nodes are within the same bag,
|
||||||
* - and `origin` has a greater `Score` than `lighter`.
|
* - and `origin` has a greater `Score` than `lighter`.
|
||||||
**/
|
**/
|
||||||
putInFrontOf: AugmentedSubmittable<(lighter: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
putInFrontOf: AugmentedSubmittable<(lighter: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Declare that some `dislocated` account has, through rewards or penalties, sufficiently
|
* Declare that some `dislocated` account has, through rewards or penalties, sufficiently
|
||||||
* changed its score that it should properly fall into a different bag than its current
|
* changed its score that it should properly fall into a different bag than its current
|
||||||
@@ -3837,7 +4020,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* If `dislocated` does not exists, it returns an error.
|
* If `dislocated` does not exists, it returns an error.
|
||||||
**/
|
**/
|
||||||
rebag: AugmentedSubmittable<(dislocated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
rebag: AugmentedSubmittable<(dislocated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -3857,7 +4040,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* NOTE: A successful return to this does *not* imply that the `msg` was executed successfully
|
* NOTE: A successful return to this does *not* imply that the `msg` was executed successfully
|
||||||
* to completion; only that *some* of it was executed.
|
* to completion; only that *some* of it was executed.
|
||||||
**/
|
**/
|
||||||
execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V0: any } | { V1: any } | { V2: any } | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, u64]>;
|
execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V0: any } | { V1: any } | { V2: any } | string | Uint8Array, maxWeight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, Weight]>;
|
||||||
/**
|
/**
|
||||||
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
||||||
* version a destination can accept is unknown).
|
* version a destination can accept is unknown).
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import '@polkadot/api-base/types/consts';
|
|||||||
|
|
||||||
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
||||||
import type { 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 } 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, Weight } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
|
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
||||||
|
|
||||||
@@ -263,7 +263,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
*
|
*
|
||||||
* This is only relevant for parachains. Set to zero in case of a standalone chain.
|
* This is only relevant for parachains. Set to zero in case of a standalone chain.
|
||||||
**/
|
**/
|
||||||
contractAccessWeight: u64 & AugmentedConst<ApiType>;
|
contractAccessWeight: Weight & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The maximum number of contracts that can be pending for deletion.
|
* The maximum number of contracts that can be pending for deletion.
|
||||||
*
|
*
|
||||||
@@ -290,7 +290,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* weight that is left for transactions. See [`Self::DeletionQueueDepth`] for more
|
* weight that is left for transactions. See [`Self::DeletionQueueDepth`] for more
|
||||||
* information about the deletion queue.
|
* information about the deletion queue.
|
||||||
**/
|
**/
|
||||||
deletionWeightLimit: u64 & AugmentedConst<ApiType>;
|
deletionWeightLimit: Weight & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The amount of balance a caller has to pay for each byte of storage.
|
* The amount of balance a caller has to pay for each byte of storage.
|
||||||
*
|
*
|
||||||
@@ -419,6 +419,9 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* take place over multiple blocks.
|
* take place over multiple blocks.
|
||||||
**/
|
**/
|
||||||
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
||||||
|
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
||||||
|
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
||||||
|
minerMaxWeight: Weight & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The priority of the unsigned transaction submitted in the unsigned-phase
|
* The priority of the unsigned transaction submitted in the unsigned-phase
|
||||||
**/
|
**/
|
||||||
@@ -463,7 +466,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* this pallet), then [`MinerConfig::solution_weight`] is used to compare against
|
* this pallet), then [`MinerConfig::solution_weight`] is used to compare against
|
||||||
* this value.
|
* this value.
|
||||||
**/
|
**/
|
||||||
signedMaxWeight: u64 & AugmentedConst<ApiType>;
|
signedMaxWeight: Weight & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Duration of the signed phase.
|
* Duration of the signed phase.
|
||||||
**/
|
**/
|
||||||
@@ -494,6 +497,21 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* Number of runners_up to keep.
|
* Number of runners_up to keep.
|
||||||
**/
|
**/
|
||||||
desiredRunnersUp: u32 & AugmentedConst<ApiType>;
|
desiredRunnersUp: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum number of candidates in a phragmen election.
|
||||||
|
*
|
||||||
|
* Warning: The election happens onchain, and this value will determine
|
||||||
|
* the size of the election. When this limit is reached no more
|
||||||
|
* candidates are accepted in the election.
|
||||||
|
**/
|
||||||
|
maxCandidates: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum number of voters to allow in a phragmen election.
|
||||||
|
*
|
||||||
|
* Warning: This impacts the size of the election which is run onchain.
|
||||||
|
* When the limit is reached the new voters are ignored.
|
||||||
|
**/
|
||||||
|
maxVoters: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Identifier for the elections-phragmen pallet's lock
|
* Identifier for the elections-phragmen pallet's lock
|
||||||
**/
|
**/
|
||||||
@@ -764,6 +782,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* The minimum amount to be used as a deposit for a public referendum proposal.
|
* The minimum amount to be used as a deposit for a public referendum proposal.
|
||||||
**/
|
**/
|
||||||
submissionDeposit: u128 & AugmentedConst<ApiType>;
|
submissionDeposit: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Information concerning the different referendum tracks.
|
||||||
|
**/
|
||||||
|
tracks: Vec<ITuple<[u16, PalletReferendaTrackInfo]>> & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The number of blocks after submission that a referendum must begin being decided by.
|
* The number of blocks after submission that a referendum must begin being decided by.
|
||||||
* Once this passes, then anyone may cancel the referendum.
|
* Once this passes, then anyone may cancel the referendum.
|
||||||
@@ -829,6 +851,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* The minimum amount to be used as a deposit for a public referendum proposal.
|
* The minimum amount to be used as a deposit for a public referendum proposal.
|
||||||
**/
|
**/
|
||||||
submissionDeposit: u128 & AugmentedConst<ApiType>;
|
submissionDeposit: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Information concerning the different referendum tracks.
|
||||||
|
**/
|
||||||
|
tracks: Vec<ITuple<[u16, PalletReferendaTrackInfo]>> & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The number of blocks after submission that a referendum must begin being decided by.
|
* The number of blocks after submission that a referendum must begin being decided by.
|
||||||
* Once this passes, then anyone may cancel the referendum.
|
* Once this passes, then anyone may cancel the referendum.
|
||||||
@@ -844,7 +870,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* The maximum weight that may be scheduled per block for any dispatchables of less
|
* The maximum weight that may be scheduled per block for any dispatchables of less
|
||||||
* priority than `schedule::HARD_DEADLINE`.
|
* priority than `schedule::HARD_DEADLINE`.
|
||||||
**/
|
**/
|
||||||
maximumWeight: u64 & AugmentedConst<ApiType>;
|
maximumWeight: Weight & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The maximum number of scheduled calls in the queue for a single block.
|
* The maximum number of scheduled calls in the queue for a single block.
|
||||||
* Not strictly enforced, but used for weight estimation.
|
* Not strictly enforced, but used for weight estimation.
|
||||||
@@ -982,9 +1008,9 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
/**
|
/**
|
||||||
* The weight of runtime database operations the runtime can invoke.
|
* The weight of runtime database operations the runtime can invoke.
|
||||||
**/
|
**/
|
||||||
dbWeight: FrameSupportWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
|
dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The designated SS85 prefix of this chain.
|
* The designated SS58 prefix of this chain.
|
||||||
*
|
*
|
||||||
* This replaces the "ss58Format" property declared in the chain spec. Reason is
|
* This replaces the "ss58Format" property declared in the chain spec. Reason is
|
||||||
* that the runtime should know about the prefix in order to make use of it as
|
* that the runtime should know about the prefix in order to make use of it as
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
AccountNonGrata: AugmentedError<ApiType>;
|
AccountNonGrata: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The founders/fellows/allies have already been initialized.
|
* The Alliance has been initialized, therefore cannot be initialized again.
|
||||||
**/
|
**/
|
||||||
AllianceAlreadyInitialized: AugmentedError<ApiType>;
|
AllianceAlreadyInitialized: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -33,10 +33,22 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Account is already a member.
|
* Account is already a member.
|
||||||
**/
|
**/
|
||||||
AlreadyMember: AugmentedError<ApiType>;
|
AlreadyMember: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Account already gave retirement notice
|
||||||
|
**/
|
||||||
|
AlreadyRetiring: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Item is already listed as unscrupulous.
|
* Item is already listed as unscrupulous.
|
||||||
**/
|
**/
|
||||||
AlreadyUnscrupulous: AugmentedError<ApiType>;
|
AlreadyUnscrupulous: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Invalid witness data given.
|
||||||
|
**/
|
||||||
|
BadWitness: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Founders must be provided to initialize the Alliance.
|
||||||
|
**/
|
||||||
|
FoundersMissing: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Balance is insufficient for the required deposit.
|
* Balance is insufficient for the required deposit.
|
||||||
**/
|
**/
|
||||||
@@ -73,6 +85,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Account does not have voting rights.
|
* Account does not have voting rights.
|
||||||
**/
|
**/
|
||||||
NoVotingRights: AugmentedError<ApiType>;
|
NoVotingRights: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Account did not give a retirement notice required to retire.
|
||||||
|
**/
|
||||||
|
RetirementNoticeNotGiven: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Retirement period has not passed.
|
||||||
|
**/
|
||||||
|
RetirementPeriodNotPassed: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Length of website URL exceeds `MaxWebsiteUrlLength`.
|
* Length of website URL exceeds `MaxWebsiteUrlLength`.
|
||||||
**/
|
**/
|
||||||
@@ -89,10 +109,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The number of unscrupulous items exceeds `MaxUnscrupulousItems`.
|
* The number of unscrupulous items exceeds `MaxUnscrupulousItems`.
|
||||||
**/
|
**/
|
||||||
TooManyUnscrupulousItems: AugmentedError<ApiType>;
|
TooManyUnscrupulousItems: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* This member is up for being kicked from the Alliance and cannot perform this operation.
|
|
||||||
**/
|
|
||||||
UpForKicking: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* The account's identity has no good judgement.
|
* The account's identity has no good judgement.
|
||||||
**/
|
**/
|
||||||
@@ -984,6 +1000,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The target is invalid.
|
* The target is invalid.
|
||||||
**/
|
**/
|
||||||
InvalidTarget: AugmentedError<ApiType>;
|
InvalidTarget: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The provided judgement was for a different identity.
|
||||||
|
**/
|
||||||
|
JudgementForDifferentIdentity: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Judgement given.
|
* Judgement given.
|
||||||
**/
|
**/
|
||||||
@@ -1791,7 +1811,11 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
};
|
};
|
||||||
stateTrieMigration: {
|
stateTrieMigration: {
|
||||||
/**
|
/**
|
||||||
* bad witness data provided.
|
* Bad child root provided.
|
||||||
|
**/
|
||||||
|
BadChildRoot: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Bad witness data provided.
|
||||||
**/
|
**/
|
||||||
BadWitness: AugmentedError<ApiType>;
|
BadWitness: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -1805,7 +1829,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
KeyTooLong: AugmentedError<ApiType>;
|
KeyTooLong: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* max signed limits not respected.
|
* Max signed limits not respected.
|
||||||
**/
|
**/
|
||||||
MaxSignedLimits: AugmentedError<ApiType>;
|
MaxSignedLimits: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -1816,10 +1840,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Signed migration is not allowed because the maximum limit is not set yet.
|
* Signed migration is not allowed because the maximum limit is not set yet.
|
||||||
**/
|
**/
|
||||||
SignedMigrationNotAllowed: AugmentedError<ApiType>;
|
SignedMigrationNotAllowed: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* upper bound of size is exceeded,
|
|
||||||
**/
|
|
||||||
SizeUpperBoundExceeded: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Generic error
|
* Generic error
|
||||||
**/
|
**/
|
||||||
@@ -2085,12 +2105,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The provided max supply is less to the amount of items a collection already has.
|
* The provided max supply is less to the amount of items a collection already has.
|
||||||
**/
|
**/
|
||||||
MaxSupplyTooSmall: AugmentedError<ApiType>;
|
MaxSupplyTooSmall: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* The `CollectionId` in `NextCollectionId` is not being used.
|
|
||||||
*
|
|
||||||
* This means that you can directly proceed to call `create`.
|
|
||||||
**/
|
|
||||||
NextIdNotUsed: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* There is no delegate approved.
|
* There is no delegate approved.
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -9,13 +9,17 @@ 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 } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPostDispatchInfo, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportScheduleLookupError, 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';
|
||||||
|
|
||||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||||
|
|
||||||
declare module '@polkadot/api-base/types/events' {
|
declare module '@polkadot/api-base/types/events' {
|
||||||
interface AugmentedEvents<ApiType extends ApiTypes> {
|
interface AugmentedEvents<ApiType extends ApiTypes> {
|
||||||
alliance: {
|
alliance: {
|
||||||
|
/**
|
||||||
|
* Alliance disbanded. Includes number deleted members and unreserved deposits.
|
||||||
|
**/
|
||||||
|
AllianceDisbanded: AugmentedEvent<ApiType, [votingMembers: u32, allyMembers: u32, unreserved: u32], { votingMembers: u32, allyMembers: u32, unreserved: u32 }>;
|
||||||
/**
|
/**
|
||||||
* An ally has been elevated to Fellow.
|
* An ally has been elevated to Fellow.
|
||||||
**/
|
**/
|
||||||
@@ -36,6 +40,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A member has retired with its deposit unreserved.
|
* A member has retired with its deposit unreserved.
|
||||||
**/
|
**/
|
||||||
MemberRetired: AugmentedEvent<ApiType, [member: AccountId32, unreserved: Option<u128>], { member: AccountId32, unreserved: Option<u128> }>;
|
MemberRetired: AugmentedEvent<ApiType, [member: AccountId32, unreserved: Option<u128>], { member: AccountId32, unreserved: Option<u128> }>;
|
||||||
|
/**
|
||||||
|
* A member gave retirement notice and their retirement period started.
|
||||||
|
**/
|
||||||
|
MemberRetirementPeriodStarted: AugmentedEvent<ApiType, [member: AccountId32], { member: AccountId32 }>;
|
||||||
/**
|
/**
|
||||||
* Some accounts have been initialized as members (founders/fellows/allies).
|
* Some accounts have been initialized as members (founders/fellows/allies).
|
||||||
**/
|
**/
|
||||||
@@ -306,6 +314,16 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
[key: string]: AugmentedEvent<ApiType>;
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
};
|
};
|
||||||
contracts: {
|
contracts: {
|
||||||
|
/**
|
||||||
|
* A contract was called either by a plain account or another contract.
|
||||||
|
*
|
||||||
|
* # Note
|
||||||
|
*
|
||||||
|
* Please keep in mind that like all events this is only emitted for successful
|
||||||
|
* calls. This is because on failure all storage changes including events are
|
||||||
|
* rolled back.
|
||||||
|
**/
|
||||||
|
Called: AugmentedEvent<ApiType, [caller: AccountId32, contract: AccountId32], { caller: AccountId32, contract: AccountId32 }>;
|
||||||
/**
|
/**
|
||||||
* A code with the specified hash was removed.
|
* A code with the specified hash was removed.
|
||||||
**/
|
**/
|
||||||
@@ -322,6 +340,16 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A custom event emitted by the contract.
|
* A custom event emitted by the contract.
|
||||||
**/
|
**/
|
||||||
ContractEmitted: AugmentedEvent<ApiType, [contract: AccountId32, data: Bytes], { contract: AccountId32, data: Bytes }>;
|
ContractEmitted: AugmentedEvent<ApiType, [contract: AccountId32, data: Bytes], { contract: AccountId32, data: Bytes }>;
|
||||||
|
/**
|
||||||
|
* A contract delegate called a code hash.
|
||||||
|
*
|
||||||
|
* # Note
|
||||||
|
*
|
||||||
|
* Please keep in mind that like all events this is only emitted for successful
|
||||||
|
* calls. This is because on failure all storage changes including events are
|
||||||
|
* rolled back.
|
||||||
|
**/
|
||||||
|
DelegateCalled: AugmentedEvent<ApiType, [contract: AccountId32, codeHash: H256], { contract: AccountId32, codeHash: H256 }>;
|
||||||
/**
|
/**
|
||||||
* Contract deployed by address at the specified address.
|
* Contract deployed by address at the specified address.
|
||||||
**/
|
**/
|
||||||
@@ -478,10 +506,15 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
};
|
};
|
||||||
electionProviderMultiPhase: {
|
electionProviderMultiPhase: {
|
||||||
/**
|
/**
|
||||||
* The election has been finalized, with `Some` of the given computation, or else if the
|
* An election failed.
|
||||||
* election failed, `None`.
|
*
|
||||||
|
* Not much can be said about which computes failed in the process.
|
||||||
**/
|
**/
|
||||||
ElectionFinalized: AugmentedEvent<ApiType, [electionCompute: Option<PalletElectionProviderMultiPhaseElectionCompute>], { electionCompute: Option<PalletElectionProviderMultiPhaseElectionCompute> }>;
|
ElectionFailed: AugmentedEvent<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* The election has been finalized, with the given computation and score.
|
||||||
|
**/
|
||||||
|
ElectionFinalized: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore], { compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore }>;
|
||||||
/**
|
/**
|
||||||
* An account has been rewarded for their signed submission being finalized.
|
* An account has been rewarded for their signed submission being finalized.
|
||||||
**/
|
**/
|
||||||
@@ -502,7 +535,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* The `bool` is `true` when a previous solution was ejected to make room for this one.
|
* The `bool` is `true` when a previous solution was ejected to make room for this one.
|
||||||
**/
|
**/
|
||||||
SolutionStored: AugmentedEvent<ApiType, [electionCompute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool], { electionCompute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool }>;
|
SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool], { compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool }>;
|
||||||
/**
|
/**
|
||||||
* The unsigned phase of the given round has started.
|
* The unsigned phase of the given round has started.
|
||||||
**/
|
**/
|
||||||
@@ -1195,7 +1228,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* Migration got halted due to an error or miss-configuration.
|
* Migration got halted due to an error or miss-configuration.
|
||||||
**/
|
**/
|
||||||
Halted: AugmentedEvent<ApiType, []>;
|
Halted: AugmentedEvent<ApiType, [error: PalletStateTrieMigrationError], { error: PalletStateTrieMigrationError }>;
|
||||||
/**
|
/**
|
||||||
* Given number of `(top, child)` keys were migrated respectively, with the given
|
* Given number of `(top, child)` keys were migrated respectively, with the given
|
||||||
* `compute`.
|
* `compute`.
|
||||||
@@ -1236,11 +1269,11 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* An extrinsic failed.
|
* An extrinsic failed.
|
||||||
**/
|
**/
|
||||||
ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportWeightsDispatchInfo], { dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportWeightsDispatchInfo }>;
|
ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportDispatchDispatchInfo], { dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportDispatchDispatchInfo }>;
|
||||||
/**
|
/**
|
||||||
* An extrinsic completed successfully.
|
* An extrinsic completed successfully.
|
||||||
**/
|
**/
|
||||||
ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo: FrameSupportWeightsDispatchInfo], { dispatchInfo: FrameSupportWeightsDispatchInfo }>;
|
ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo: FrameSupportDispatchDispatchInfo], { dispatchInfo: FrameSupportDispatchDispatchInfo }>;
|
||||||
/**
|
/**
|
||||||
* An account was reaped.
|
* An account was reaped.
|
||||||
**/
|
**/
|
||||||
@@ -1504,10 +1537,6 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* New metadata has been set for an item.
|
* New metadata has been set for an item.
|
||||||
**/
|
**/
|
||||||
MetadataSet: AugmentedEvent<ApiType, [collection: u32, item: u32, data: Bytes, isFrozen: bool], { collection: u32, item: u32, data: Bytes, isFrozen: bool }>;
|
MetadataSet: AugmentedEvent<ApiType, [collection: u32, item: u32, data: Bytes, isFrozen: bool], { collection: u32, item: u32, data: Bytes, isFrozen: bool }>;
|
||||||
/**
|
|
||||||
* Event gets emmited when the `NextCollectionId` gets incremented.
|
|
||||||
**/
|
|
||||||
NextCollectionIdIncremented: AugmentedEvent<ApiType, [nextId: u32], { nextId: u32 }>;
|
|
||||||
/**
|
/**
|
||||||
* The owner changed.
|
* The owner changed.
|
||||||
**/
|
**/
|
||||||
@@ -1585,7 +1614,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
};
|
};
|
||||||
whitelist: {
|
whitelist: {
|
||||||
CallWhitelisted: AugmentedEvent<ApiType, [callHash: H256], { callHash: H256 }>;
|
CallWhitelisted: AugmentedEvent<ApiType, [callHash: H256], { callHash: H256 }>;
|
||||||
WhitelistedCallDispatched: AugmentedEvent<ApiType, [callHash: H256, result: Result<FrameSupportWeightsPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo>], { callHash: H256, result: Result<FrameSupportWeightsPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo> }>;
|
WhitelistedCallDispatched: AugmentedEvent<ApiType, [callHash: H256, result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo>], { callHash: H256, result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo> }>;
|
||||||
WhitelistedCallRemoved: AugmentedEvent<ApiType, [callHash: H256], { callHash: H256 }>;
|
WhitelistedCallRemoved: AugmentedEvent<ApiType, [callHash: H256], { callHash: H256 }>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import type { Data } from '@polkadot/types';
|
|||||||
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, 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 { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduledV3, 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, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduledV3, 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 { 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,12 @@ 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' | number | Uint8Array) => Observable<Vec<AccountId32>>, [PalletAllianceMemberRole]> & QueryableStorageEntry<ApiType, [PalletAllianceMemberRole]>;
|
members: AugmentedQuery<ApiType, (arg: PalletAllianceMemberRole | 'Founder' | '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
|
||||||
|
* period stored as a future block number.
|
||||||
|
**/
|
||||||
|
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.
|
* Founders and fellows can propose a new rule with a super-majority.
|
||||||
@@ -47,11 +52,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The current list of websites deemed unscrupulous.
|
* The current list of websites deemed unscrupulous.
|
||||||
**/
|
**/
|
||||||
unscrupulousWebsites: AugmentedQuery<ApiType, () => Observable<Vec<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
|
unscrupulousWebsites: AugmentedQuery<ApiType, () => Observable<Vec<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
|
||||||
* A set of members that are (potentially) being kicked out. They cannot retire until the
|
|
||||||
* motion is settled.
|
|
||||||
**/
|
|
||||||
upForKicking: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<bool>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -1537,7 +1537,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* The current weight for the block.
|
* The current weight for the block.
|
||||||
**/
|
**/
|
||||||
blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportWeightsPerDispatchClassU64>, []> & QueryableStorageEntry<ApiType, []>;
|
blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportDispatchPerDispatchClassWeight>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Digest of the current block, also part of the block header.
|
* Digest of the current block, also part of the block header.
|
||||||
**/
|
**/
|
||||||
@@ -1779,11 +1779,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Price of an asset instance.
|
* Price of an asset instance.
|
||||||
**/
|
**/
|
||||||
itemPriceOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[u128, Option<AccountId32>]>>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
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 by 1 whenever a new collection is created.
|
|
||||||
**/
|
|
||||||
nextCollectionId: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
||||||
/**
|
/**
|
||||||
* The collection, if any, of which an account is willing to take ownership.
|
* The collection, if any, of which an account is willing to take ownership.
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -7,7 +7,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, u64 } from '@polkadot/types-codec';
|
import type { Bytes, Null, Option, Result, Vec, u32, u64 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, 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 { 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,9 +17,8 @@ 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 { NpApiError } 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, Hash, Header, Index, KeyTypeId, Slot } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot } 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';
|
||||||
@@ -222,7 +221,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
/**
|
/**
|
||||||
* Returns the pending rewards for the given member.
|
* Returns the pending rewards for the given member.
|
||||||
**/
|
**/
|
||||||
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Result<Balance, NpApiError>>>;
|
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
||||||
/**
|
/**
|
||||||
* Generic call
|
* Generic call
|
||||||
**/
|
**/
|
||||||
@@ -280,5 +279,20 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
|
/** 0xf3ff14d5ab527059/1 */
|
||||||
|
transactionPaymentCallApi: {
|
||||||
|
/**
|
||||||
|
* The call fee details
|
||||||
|
**/
|
||||||
|
queryCallFeeDetails: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
|
||||||
|
/**
|
||||||
|
* The call info
|
||||||
|
**/
|
||||||
|
queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
||||||
|
/**
|
||||||
|
* Generic call
|
||||||
|
**/
|
||||||
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
|
};
|
||||||
} // AugmentedCalls
|
} // AugmentedCalls
|
||||||
} // declare module
|
} // declare module
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableE
|
|||||||
import type { Data } from '@polkadot/types';
|
import type { Data } from '@polkadot/types';
|
||||||
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill, Weight } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportScheduleDispatchTime, FrameSupportScheduleMaybeHashed, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
|
import type { FrameSupportScheduleDispatchTime, FrameSupportScheduleMaybeHashed, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||||
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
||||||
@@ -32,15 +32,28 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Requires the sender to be a founder or fellow.
|
* Requires the sender to be a founder or fellow.
|
||||||
**/
|
**/
|
||||||
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<Weight> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<Weight>, Compact<u32>]>;
|
||||||
|
/**
|
||||||
|
* Disband the Alliance, remove all active members and unreserve deposits.
|
||||||
|
*
|
||||||
|
* Witness data must be set.
|
||||||
|
**/
|
||||||
|
disband: AugmentedSubmittable<(witness: PalletAllianceDisbandWitness | { votingMembers?: any; allyMembers?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletAllianceDisbandWitness]>;
|
||||||
/**
|
/**
|
||||||
* Elevate an ally to fellow.
|
* Elevate an ally to fellow.
|
||||||
**/
|
**/
|
||||||
elevateAlly: AugmentedSubmittable<(ally: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
elevateAlly: AugmentedSubmittable<(ally: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Initialize the founders, fellows, and allies.
|
* As a member, give a retirement notice and start a retirement period required to pass in
|
||||||
|
* order to retire.
|
||||||
|
**/
|
||||||
|
giveRetirementNotice: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
|
/**
|
||||||
|
* Initialize the Alliance, onboard founders, fellows, and allies.
|
||||||
*
|
*
|
||||||
* This should only be called once, and must be called by the Root origin.
|
* Founders must be not empty.
|
||||||
|
* The Alliance must be empty.
|
||||||
|
* Must be called by the Root origin.
|
||||||
**/
|
**/
|
||||||
initMembers: AugmentedSubmittable<(founders: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], fellows: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], allies: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Vec<AccountId32>, Vec<AccountId32>]>;
|
initMembers: AugmentedSubmittable<(founders: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], fellows: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], allies: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Vec<AccountId32>, Vec<AccountId32>]>;
|
||||||
/**
|
/**
|
||||||
@@ -72,6 +85,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
removeUnscrupulousItems: AugmentedSubmittable<(items: Vec<PalletAllianceUnscrupulousItem> | (PalletAllianceUnscrupulousItem | { AccountId: any } | { Website: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<PalletAllianceUnscrupulousItem>]>;
|
removeUnscrupulousItems: AugmentedSubmittable<(items: Vec<PalletAllianceUnscrupulousItem> | (PalletAllianceUnscrupulousItem | { AccountId: any } | { Website: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<PalletAllianceUnscrupulousItem>]>;
|
||||||
/**
|
/**
|
||||||
* As a member, retire from the alliance and unreserve the deposit.
|
* As a member, retire from the alliance and unreserve the deposit.
|
||||||
|
* This can only be done once you have `give_retirement_notice` and it has expired.
|
||||||
**/
|
**/
|
||||||
retire: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
retire: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
/**
|
/**
|
||||||
@@ -131,7 +145,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - up to 3 events
|
* - up to 3 events
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<Weight> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<Weight>, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
||||||
* state.
|
* state.
|
||||||
@@ -737,7 +751,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - both nodes are within the same bag,
|
* - both nodes are within the same bag,
|
||||||
* - and `origin` has a greater `Score` than `lighter`.
|
* - and `origin` has a greater `Score` than `lighter`.
|
||||||
**/
|
**/
|
||||||
putInFrontOf: AugmentedSubmittable<(lighter: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
putInFrontOf: AugmentedSubmittable<(lighter: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Declare that some `dislocated` account has, through rewards or penalties, sufficiently
|
* Declare that some `dislocated` account has, through rewards or penalties, sufficiently
|
||||||
* changed its score that it should properly fall into a different bag than its current
|
* changed its score that it should properly fall into a different bag than its current
|
||||||
@@ -750,7 +764,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* If `dislocated` does not exists, it returns an error.
|
* If `dislocated` does not exists, it returns an error.
|
||||||
**/
|
**/
|
||||||
rebag: AugmentedSubmittable<(dislocated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
rebag: AugmentedSubmittable<(dislocated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -1159,7 +1173,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* * If no account exists and the call value is not less than `existential_deposit`,
|
* * If no account exists and the call value is not less than `existential_deposit`,
|
||||||
* a regular account will be created and any value will be transferred.
|
* a regular account will be created and any value will be transferred.
|
||||||
**/
|
**/
|
||||||
call: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u64>, Option<Compact<u128>>, Bytes]>;
|
call: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<Weight> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<Weight>, Option<Compact<u128>>, Bytes]>;
|
||||||
/**
|
/**
|
||||||
* Instantiates a contract from a previously deployed wasm binary.
|
* Instantiates a contract from a previously deployed wasm binary.
|
||||||
*
|
*
|
||||||
@@ -1167,7 +1181,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
|
* code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
|
||||||
* must be supplied.
|
* must be supplied.
|
||||||
**/
|
**/
|
||||||
instantiate: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, Compact<u64>, Option<Compact<u128>>, H256, Bytes, Bytes]>;
|
instantiate: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<Weight> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, Compact<Weight>, Option<Compact<u128>>, H256, Bytes, Bytes]>;
|
||||||
/**
|
/**
|
||||||
* Instantiates a new contract from the supplied `code` optionally transferring
|
* Instantiates a new contract from the supplied `code` optionally transferring
|
||||||
* some balance.
|
* some balance.
|
||||||
@@ -1196,7 +1210,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - The `value` is transferred to the new account.
|
* - The `value` is transferred to the new account.
|
||||||
* - The `deploy` function is executed in the context of the newly-created account.
|
* - The `deploy` function is executed in the context of the newly-created account.
|
||||||
**/
|
**/
|
||||||
instantiateWithCode: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, Compact<u64>, Option<Compact<u128>>, Bytes, Bytes, Bytes]>;
|
instantiateWithCode: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<Weight> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, Compact<Weight>, Option<Compact<u128>>, Bytes, Bytes, Bytes]>;
|
||||||
/**
|
/**
|
||||||
* Remove the code stored under `code_hash` and refund the deposit to its owner.
|
* Remove the code stored under `code_hash` and refund the deposit to its owner.
|
||||||
*
|
*
|
||||||
@@ -1267,7 +1281,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight: `O(R)` where R is the number of polls the voter delegating to has
|
* Weight: `O(R)` where R is the number of polls the voter delegating to has
|
||||||
* voted on. Weight is initially charged as if maximum votes, but is refunded later.
|
* voted on. Weight is initially charged as if maximum votes, but is refunded later.
|
||||||
**/
|
**/
|
||||||
delegate: AugmentedSubmittable<(clazz: u16 | AnyNumber | Uint8Array, to: AccountId32 | string | Uint8Array, conviction: PalletConvictionVotingConviction | 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x' | number | Uint8Array, balance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, AccountId32, PalletConvictionVotingConviction, u128]>;
|
delegate: AugmentedSubmittable<(clazz: u16 | AnyNumber | Uint8Array, to: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, conviction: PalletConvictionVotingConviction | 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x' | number | Uint8Array, balance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, MultiAddress, PalletConvictionVotingConviction, u128]>;
|
||||||
/**
|
/**
|
||||||
* Remove a vote for a poll.
|
* Remove a vote for a poll.
|
||||||
*
|
*
|
||||||
@@ -1286,7 +1300,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight: `O(R + log R)` where R is the number of polls that `target` has voted on.
|
* Weight: `O(R + log R)` where R is the number of polls that `target` has voted on.
|
||||||
* Weight is calculated for the maximum number of vote.
|
* Weight is calculated for the maximum number of vote.
|
||||||
**/
|
**/
|
||||||
removeOtherVote: AugmentedSubmittable<(target: AccountId32 | string | Uint8Array, clazz: u16 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u16, u32]>;
|
removeOtherVote: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, clazz: u16 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u16, u32]>;
|
||||||
/**
|
/**
|
||||||
* Remove a vote for a poll.
|
* Remove a vote for a poll.
|
||||||
*
|
*
|
||||||
@@ -1347,7 +1361,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Weight: `O(R)` with R number of vote of target.
|
* Weight: `O(R)` with R number of vote of target.
|
||||||
**/
|
**/
|
||||||
unlock: AugmentedSubmittable<(clazz: u16 | AnyNumber | Uint8Array, target: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, AccountId32]>;
|
unlock: AugmentedSubmittable<(clazz: u16 | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Vote in a poll. If `vote.is_aye()`, the vote is to enact the proposal;
|
* Vote in a poll. If `vote.is_aye()`, the vote is to enact the proposal;
|
||||||
* otherwise it is a vote to keep the status quo.
|
* otherwise it is a vote to keep the status quo.
|
||||||
@@ -1400,7 +1414,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - up to 3 events
|
* - up to 3 events
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<Weight> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<Weight>, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
||||||
* state.
|
* state.
|
||||||
@@ -1599,7 +1613,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight: `O(R)` where R is the number of referendums the voter delegating to has
|
* Weight: `O(R)` where R is the number of referendums the voter delegating to has
|
||||||
* voted on. Weight is charged as if maximum votes.
|
* voted on. Weight is charged as if maximum votes.
|
||||||
**/
|
**/
|
||||||
delegate: AugmentedSubmittable<(to: AccountId32 | string | Uint8Array, conviction: PalletDemocracyConviction | 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x' | number | Uint8Array, balance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, PalletDemocracyConviction, u128]>;
|
delegate: AugmentedSubmittable<(to: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, conviction: PalletDemocracyConviction | 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x' | number | Uint8Array, balance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletDemocracyConviction, u128]>;
|
||||||
/**
|
/**
|
||||||
* Schedule an emergency cancellation of a referendum. Cannot happen twice to the same
|
* Schedule an emergency cancellation of a referendum. Cannot happen twice to the same
|
||||||
* referendum.
|
* referendum.
|
||||||
@@ -1759,7 +1773,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on.
|
* Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on.
|
||||||
* Weight is calculated for the maximum number of vote.
|
* Weight is calculated for the maximum number of vote.
|
||||||
**/
|
**/
|
||||||
removeOtherVote: AugmentedSubmittable<(target: AccountId32 | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
removeOtherVote: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32]>;
|
||||||
/**
|
/**
|
||||||
* Remove a vote for a referendum.
|
* Remove a vote for a referendum.
|
||||||
*
|
*
|
||||||
@@ -1827,7 +1841,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Weight: `O(R)` with R number of vote of target.
|
* Weight: `O(R)` with R number of vote of target.
|
||||||
**/
|
**/
|
||||||
unlock: AugmentedSubmittable<(target: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
unlock: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Veto and blacklist the external proposal hash.
|
* Veto and blacklist the external proposal hash.
|
||||||
*
|
*
|
||||||
@@ -2138,7 +2152,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - One event.
|
* - One event.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
addRegistrar: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
addRegistrar: AugmentedSubmittable<(account: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Add the given account to the sender's subs.
|
* Add the given account to the sender's subs.
|
||||||
*
|
*
|
||||||
@@ -2222,6 +2236,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `target`: the account whose identity the judgement is upon. This must be an account
|
* - `target`: the account whose identity the judgement is upon. This must be an account
|
||||||
* with a registered identity.
|
* with a registered identity.
|
||||||
* - `judgement`: the judgement of the registrar of index `reg_index` about `target`.
|
* - `judgement`: the judgement of the registrar of index `reg_index` about `target`.
|
||||||
|
* - `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided.
|
||||||
*
|
*
|
||||||
* Emits `JudgementGiven` if successful.
|
* Emits `JudgementGiven` if successful.
|
||||||
*
|
*
|
||||||
@@ -2233,7 +2248,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - One event.
|
* - One event.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
provideJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, judgement: PalletIdentityJudgement | { Unknown: any } | { FeePaid: any } | { Reasonable: any } | { KnownGood: any } | { OutOfDate: any } | { LowQuality: any } | { Erroneous: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, PalletIdentityJudgement]>;
|
provideJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, judgement: PalletIdentityJudgement | { Unknown: any } | { FeePaid: any } | { Reasonable: any } | { KnownGood: any } | { OutOfDate: any } | { LowQuality: any } | { Erroneous: any } | string | Uint8Array, identity: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, PalletIdentityJudgement, H256]>;
|
||||||
/**
|
/**
|
||||||
* Remove the sender as a sub-account.
|
* Remove the sender as a sub-account.
|
||||||
*
|
*
|
||||||
@@ -2305,7 +2320,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Benchmark: 8.823 + R * 0.32 µs (min squares analysis)
|
* - Benchmark: 8.823 + R * 0.32 µs (min squares analysis)
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, AccountId32]>;
|
setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Set the fee required for a judgement to be requested from a registrar.
|
* Set the fee required for a judgement to be requested from a registrar.
|
||||||
*
|
*
|
||||||
@@ -2452,7 +2467,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Writes: Indices Accounts, System Account (original owner)
|
* - Writes: Indices Accounts, System Account (original owner)
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
forceTransfer: AugmentedSubmittable<(updated: AccountId32 | string | Uint8Array, index: u32 | AnyNumber | Uint8Array, freeze: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32, bool]>;
|
forceTransfer: AugmentedSubmittable<(updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, index: u32 | AnyNumber | Uint8Array, freeze: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32, bool]>;
|
||||||
/**
|
/**
|
||||||
* Free up an index owned by the sender.
|
* Free up an index owned by the sender.
|
||||||
*
|
*
|
||||||
@@ -2517,7 +2532,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Writes: Indices Accounts, System Account (recipient)
|
* - Writes: Indices Accounts, System Account (recipient)
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
transfer: AugmentedSubmittable<(updated: AccountId32 | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
transfer: AugmentedSubmittable<(updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -2610,7 +2625,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Write: Multisig Storage, [Caller Account]
|
* - Write: Multisig Storage, [Caller Account]
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, callHash: U8aFixed | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, u64]>;
|
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, callHash: U8aFixed | string | Uint8Array, maxWeight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, Weight]>;
|
||||||
/**
|
/**
|
||||||
* Register approval for a dispatch to be made from a deterministic composite account if
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
||||||
* approved by a total of `threshold - 1` of `other_signatories`.
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
||||||
@@ -2658,7 +2673,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Plus Call Weight
|
* - Plus Call Weight
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, u64]>;
|
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, Weight]>;
|
||||||
/**
|
/**
|
||||||
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
||||||
*
|
*
|
||||||
@@ -2760,7 +2775,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* In addition to `amount`, the caller will transfer the existential deposit; so the caller
|
* In addition to `amount`, the caller will transfer the existential deposit; so the caller
|
||||||
* needs at have at least `amount + existential_deposit` transferrable.
|
* needs at have at least `amount + existential_deposit` transferrable.
|
||||||
**/
|
**/
|
||||||
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: AccountId32 | string | Uint8Array, nominator: AccountId32 | string | Uint8Array, stateToggler: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId32, AccountId32, AccountId32]>;
|
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
||||||
* pools account and immediately increases the pools bond.
|
* pools account and immediately increases the pools bond.
|
||||||
@@ -2856,7 +2871,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* there are too many unlocking chunks, the result of this call will likely be the
|
* there are too many unlocking chunks, the result of this call will likely be the
|
||||||
* `NoMoreChunks` error from the staking system.
|
* `NoMoreChunks` error from the staking system.
|
||||||
**/
|
**/
|
||||||
unbond: AugmentedSubmittable<(memberAccount: AccountId32 | string | Uint8Array, unbondingPoints: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Compact<u128>]>;
|
unbond: AugmentedSubmittable<(memberAccount: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, unbondingPoints: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
||||||
/**
|
/**
|
||||||
* Update the roles of the pool.
|
* Update the roles of the pool.
|
||||||
*
|
*
|
||||||
@@ -2888,7 +2903,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* If the target is the depositor, the pool will be destroyed.
|
* If the target is the depositor, the pool will be destroyed.
|
||||||
**/
|
**/
|
||||||
withdrawUnbonded: AugmentedSubmittable<(memberAccount: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
withdrawUnbonded: AugmentedSubmittable<(memberAccount: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -2940,7 +2955,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight is a function of the number of proxies the user has (P).
|
* Weight is a function of the number of proxies the user has (P).
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
addProxy: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, proxyType: KitchensinkRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, KitchensinkRuntimeProxyType, u32]>;
|
addProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: KitchensinkRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, KitchensinkRuntimeProxyType, u32]>;
|
||||||
/**
|
/**
|
||||||
* Publish the hash of a proxy-call that will be made in the future.
|
* Publish the hash of a proxy-call that will be made in the future.
|
||||||
*
|
*
|
||||||
@@ -2964,7 +2979,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - P: the number of proxies the user has.
|
* - P: the number of proxies the user has.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
announce: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, H256]>;
|
announce: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, H256]>;
|
||||||
/**
|
/**
|
||||||
* Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and
|
* Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and
|
||||||
* initialize it with a proxy of `proxy_type` for `origin` sender.
|
* initialize it with a proxy of `proxy_type` for `origin` sender.
|
||||||
@@ -3013,7 +3028,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight is a function of the number of proxies the user has (P).
|
* Weight is a function of the number of proxies the user has (P).
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
killAnonymous: AugmentedSubmittable<(spawner: AccountId32 | string | Uint8Array, proxyType: KitchensinkRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, KitchensinkRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
killAnonymous: AugmentedSubmittable<(spawner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: KitchensinkRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, KitchensinkRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Dispatch the given `call` from an account that the sender is authorised for through
|
* Dispatch the given `call` from an account that the sender is authorised for through
|
||||||
* `add_proxy`.
|
* `add_proxy`.
|
||||||
@@ -3031,7 +3046,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight is a function of the number of proxies the user has (P).
|
* Weight is a function of the number of proxies the user has (P).
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<KitchensinkRuntimeProxyType> | null | Uint8Array | KitchensinkRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<KitchensinkRuntimeProxyType>, Call]>;
|
proxy: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<KitchensinkRuntimeProxyType> | null | Uint8Array | KitchensinkRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<KitchensinkRuntimeProxyType>, Call]>;
|
||||||
/**
|
/**
|
||||||
* Dispatch the given `call` from an account that the sender is authorized for through
|
* Dispatch the given `call` from an account that the sender is authorized for through
|
||||||
* `add_proxy`.
|
* `add_proxy`.
|
||||||
@@ -3051,7 +3066,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - P: the number of proxies the user has.
|
* - P: the number of proxies the user has.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<KitchensinkRuntimeProxyType> | null | Uint8Array | KitchensinkRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<KitchensinkRuntimeProxyType>, Call]>;
|
proxyAnnounced: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<KitchensinkRuntimeProxyType> | null | Uint8Array | KitchensinkRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Option<KitchensinkRuntimeProxyType>, Call]>;
|
||||||
/**
|
/**
|
||||||
* Remove the given announcement of a delegate.
|
* Remove the given announcement of a delegate.
|
||||||
*
|
*
|
||||||
@@ -3070,7 +3085,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - P: the number of proxies the user has.
|
* - P: the number of proxies the user has.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
rejectAnnouncement: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, H256]>;
|
rejectAnnouncement: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, H256]>;
|
||||||
/**
|
/**
|
||||||
* Remove a given announcement.
|
* Remove a given announcement.
|
||||||
*
|
*
|
||||||
@@ -3089,7 +3104,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - P: the number of proxies the user has.
|
* - P: the number of proxies the user has.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
removeAnnouncement: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, H256]>;
|
removeAnnouncement: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, H256]>;
|
||||||
/**
|
/**
|
||||||
* Unregister all proxy accounts for the sender.
|
* Unregister all proxy accounts for the sender.
|
||||||
*
|
*
|
||||||
@@ -3116,7 +3131,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight is a function of the number of proxies the user has (P).
|
* Weight is a function of the number of proxies the user has (P).
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
removeProxy: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, proxyType: KitchensinkRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, KitchensinkRuntimeProxyType, u32]>;
|
removeProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: KitchensinkRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, KitchensinkRuntimeProxyType, u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -3132,7 +3147,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
**/
|
**/
|
||||||
addMember: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
addMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Remove votes from the given poll. It must have ended.
|
* Remove votes from the given poll. It must have ended.
|
||||||
*
|
*
|
||||||
@@ -3155,7 +3170,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Weight: `O(1)`, less if the member's index is highest in its rank.
|
* Weight: `O(1)`, less if the member's index is highest in its rank.
|
||||||
**/
|
**/
|
||||||
demoteMember: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
demoteMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Increment the rank of an existing member by one.
|
* Increment the rank of an existing member by one.
|
||||||
*
|
*
|
||||||
@@ -3164,7 +3179,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
**/
|
**/
|
||||||
promoteMember: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
promoteMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Remove the member entirely.
|
* Remove the member entirely.
|
||||||
*
|
*
|
||||||
@@ -3174,7 +3189,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Weight: `O(min_rank)`.
|
* Weight: `O(min_rank)`.
|
||||||
**/
|
**/
|
||||||
removeMember: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, minRank: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u16]>;
|
removeMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, minRank: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u16]>;
|
||||||
/**
|
/**
|
||||||
* Add an aye or nay vote for the sender to the given proposal.
|
* Add an aye or nay vote for the sender to the given proposal.
|
||||||
*
|
*
|
||||||
@@ -3281,7 +3296,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `account`: The recovered account you want to make a call on-behalf-of.
|
* - `account`: The recovered account you want to make a call on-behalf-of.
|
||||||
* - `call`: The call you want to make with the recovered account.
|
* - `call`: The call you want to make with the recovered account.
|
||||||
**/
|
**/
|
||||||
asRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Call]>;
|
asRecovered: AugmentedSubmittable<(account: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Call]>;
|
||||||
/**
|
/**
|
||||||
* Cancel the ability to use `as_recovered` for `account`.
|
* Cancel the ability to use `as_recovered` for `account`.
|
||||||
*
|
*
|
||||||
@@ -3291,7 +3306,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Parameters:
|
* Parameters:
|
||||||
* - `account`: The recovered account you are able to call on-behalf-of.
|
* - `account`: The recovered account you are able to call on-behalf-of.
|
||||||
**/
|
**/
|
||||||
cancelRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
cancelRecovered: AugmentedSubmittable<(account: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Allow a successful rescuer to claim their recovered account.
|
* Allow a successful rescuer to claim their recovered account.
|
||||||
*
|
*
|
||||||
@@ -3303,7 +3318,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `account`: The lost account that you want to claim has been successfully recovered by
|
* - `account`: The lost account that you want to claim has been successfully recovered by
|
||||||
* you.
|
* you.
|
||||||
**/
|
**/
|
||||||
claimRecovery: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
claimRecovery: AugmentedSubmittable<(account: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* As the controller of a recoverable account, close an active recovery
|
* As the controller of a recoverable account, close an active recovery
|
||||||
* process for your account.
|
* process for your account.
|
||||||
@@ -3317,7 +3332,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Parameters:
|
* Parameters:
|
||||||
* - `rescuer`: The account trying to rescue this recoverable account.
|
* - `rescuer`: The account trying to rescue this recoverable account.
|
||||||
**/
|
**/
|
||||||
closeRecovery: AugmentedSubmittable<(rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
closeRecovery: AugmentedSubmittable<(rescuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Create a recovery configuration for your account. This makes your account recoverable.
|
* Create a recovery configuration for your account. This makes your account recoverable.
|
||||||
*
|
*
|
||||||
@@ -3350,7 +3365,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `account`: The lost account that you want to recover. This account needs to be
|
* - `account`: The lost account that you want to recover. This account needs to be
|
||||||
* recoverable (i.e. have a recovery configuration).
|
* recoverable (i.e. have a recovery configuration).
|
||||||
**/
|
**/
|
||||||
initiateRecovery: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
initiateRecovery: AugmentedSubmittable<(account: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Remove the recovery process for your account. Recovered accounts are still accessible.
|
* Remove the recovery process for your account. Recovered accounts are still accessible.
|
||||||
*
|
*
|
||||||
@@ -3375,7 +3390,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `lost`: The "lost account" to be recovered.
|
* - `lost`: The "lost account" to be recovered.
|
||||||
* - `rescuer`: The "rescuer account" which can call as the lost account.
|
* - `rescuer`: The "rescuer account" which can call as the lost account.
|
||||||
**/
|
**/
|
||||||
setRecovered: AugmentedSubmittable<(lost: AccountId32 | string | Uint8Array, rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
|
setRecovered: AugmentedSubmittable<(lost: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, rescuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Allow a "friend" of a recoverable account to vouch for an active recovery
|
* Allow a "friend" of a recoverable account to vouch for an active recovery
|
||||||
* process for that account.
|
* process for that account.
|
||||||
@@ -3390,7 +3405,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* The combination of these two parameters must point to an active recovery
|
* The combination of these two parameters must point to an active recovery
|
||||||
* process.
|
* process.
|
||||||
**/
|
**/
|
||||||
vouchRecovery: AugmentedSubmittable<(lost: AccountId32 | string | Uint8Array, rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
|
vouchRecovery: AugmentedSubmittable<(lost: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, rescuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -3640,7 +3655,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Total Complexity: O(1)
|
* Total Complexity: O(1)
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
found: AugmentedSubmittable<(founder: AccountId32 | string | Uint8Array, maxMembers: u32 | AnyNumber | Uint8Array, rules: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32, Bytes]>;
|
found: AugmentedSubmittable<(founder: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, maxMembers: u32 | AnyNumber | Uint8Array, rules: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32, Bytes]>;
|
||||||
/**
|
/**
|
||||||
* Allow suspended judgement origin to make judgement on a suspended candidate.
|
* Allow suspended judgement origin to make judgement on a suspended candidate.
|
||||||
*
|
*
|
||||||
@@ -3683,7 +3698,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Total Complexity: O(M + logM + B + X)
|
* Total Complexity: O(M + logM + B + X)
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
judgeSuspendedCandidate: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, judgement: PalletSocietyJudgement | 'Rebid' | 'Reject' | 'Approve' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, PalletSocietyJudgement]>;
|
judgeSuspendedCandidate: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, judgement: PalletSocietyJudgement | 'Rebid' | 'Reject' | 'Approve' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletSocietyJudgement]>;
|
||||||
/**
|
/**
|
||||||
* Allow suspension judgement origin to make judgement on a suspended member.
|
* Allow suspension judgement origin to make judgement on a suspended member.
|
||||||
*
|
*
|
||||||
@@ -3714,7 +3729,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Total Complexity: O(M + logM + B)
|
* Total Complexity: O(M + logM + B)
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
judgeSuspendedMember: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, forgive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, bool]>;
|
judgeSuspendedMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forgive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
|
||||||
/**
|
/**
|
||||||
* Transfer the first matured payout for the sender and remove it from the records.
|
* Transfer the first matured payout for the sender and remove it from the records.
|
||||||
*
|
*
|
||||||
@@ -3883,7 +3898,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Total Complexity: O(M + B + C + logM + logB + X)
|
* Total Complexity: O(M + B + C + logM + logB + X)
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
vouch: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, tip: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u128, u128]>;
|
vouch: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, tip: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128, u128]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -4413,7 +4428,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - The weight of this call is defined by the caller.
|
* - The weight of this call is defined by the caller.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, u64]>;
|
sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Weight]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -4522,7 +4537,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - up to 3 events
|
* - up to 3 events
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<Weight> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<Weight>, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
||||||
* state.
|
* state.
|
||||||
@@ -4648,7 +4663,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* May only be called from `T::AddOrigin`.
|
* May only be called from `T::AddOrigin`.
|
||||||
**/
|
**/
|
||||||
addMember: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
addMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Swap out the sending member for some other key `new`.
|
* Swap out the sending member for some other key `new`.
|
||||||
*
|
*
|
||||||
@@ -4656,7 +4671,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Prime membership is passed from the origin account to `new`, if extant.
|
* Prime membership is passed from the origin account to `new`, if extant.
|
||||||
**/
|
**/
|
||||||
changeKey: AugmentedSubmittable<(updated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
changeKey: AugmentedSubmittable<(updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Remove the prime member if it exists.
|
* Remove the prime member if it exists.
|
||||||
*
|
*
|
||||||
@@ -4668,7 +4683,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* May only be called from `T::RemoveOrigin`.
|
* May only be called from `T::RemoveOrigin`.
|
||||||
**/
|
**/
|
||||||
removeMember: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
removeMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Change the membership to a new set, disregarding the existing membership. Be nice and
|
* Change the membership to a new set, disregarding the existing membership. Be nice and
|
||||||
* pass `members` pre-sorted.
|
* pass `members` pre-sorted.
|
||||||
@@ -4681,7 +4696,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* May only be called from `T::PrimeOrigin`.
|
* May only be called from `T::PrimeOrigin`.
|
||||||
**/
|
**/
|
||||||
setPrime: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
setPrime: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Swap out one member `remove` for another `add`.
|
* Swap out one member `remove` for another `add`.
|
||||||
*
|
*
|
||||||
@@ -4689,7 +4704,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Prime membership is *not* passed from `remove` to `add`, if extant.
|
* Prime membership is *not* passed from `remove` to `add`, if extant.
|
||||||
**/
|
**/
|
||||||
swapMember: AugmentedSubmittable<(remove: AccountId32 | string | Uint8Array, add: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
|
swapMember: AugmentedSubmittable<(remove: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, add: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -4761,7 +4776,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - DbWrites: `Reasons`, `Tips`
|
* - DbWrites: `Reasons`, `Tips`
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
reportAwesome: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, AccountId32]>;
|
reportAwesome: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Retract a prior tip-report from `report_awesome`, and cancel the process of tipping.
|
* Retract a prior tip-report from `report_awesome`, and cancel the process of tipping.
|
||||||
*
|
*
|
||||||
@@ -4850,7 +4865,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - DbWrites: `Reasons`, `Tips`
|
* - DbWrites: `Reasons`, `Tips`
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
tipNew: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: AccountId32 | string | Uint8Array, tipValue: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, AccountId32, Compact<u128>]>;
|
tipNew: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, tipValue: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, MultiAddress, Compact<u128>]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -4968,12 +4983,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Approve an item to be transferred by a delegated third-party account.
|
* Approve an item to be transferred by a delegated third-party account.
|
||||||
*
|
*
|
||||||
* Origin must be Signed and must be the owner of the `item`.
|
* The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be
|
||||||
|
* either the owner of the `item` or the admin of the collection.
|
||||||
*
|
*
|
||||||
* - `collection`: The collection of the item to be approved for delegated transfer.
|
* - `collection`: The collection of the item to be approved for delegated transfer.
|
||||||
* - `item`: The item of the item to be approved for delegated transfer.
|
* - `item`: The item of the item to be approved for delegated transfer.
|
||||||
* - `delegate`: The account to delegate permission to transfer the item.
|
* - `delegate`: The account to delegate permission to transfer the item.
|
||||||
*
|
*
|
||||||
|
* Important NOTE: The `approved` account gets reset after each transfer.
|
||||||
|
*
|
||||||
* Emits `ApprovedTransfer` on success.
|
* Emits `ApprovedTransfer` on success.
|
||||||
*
|
*
|
||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
@@ -5084,6 +5102,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* `ItemDeposit` funds of sender are reserved.
|
* `ItemDeposit` funds of sender are reserved.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
|
* - `collection`: The identifier of the new collection. This must not be currently in use.
|
||||||
* - `admin`: The admin of this collection. The admin is the initial address of each
|
* - `admin`: The admin of this collection. The admin is the initial address of each
|
||||||
* member of the collection's admin team.
|
* member of the collection's admin team.
|
||||||
*
|
*
|
||||||
@@ -5091,7 +5110,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
**/
|
**/
|
||||||
create: AugmentedSubmittable<(admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
create: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Destroy a collection of fungible items.
|
* Destroy a collection of fungible items.
|
||||||
*
|
*
|
||||||
@@ -5119,6 +5138,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Unlike `create`, no funds are reserved.
|
* Unlike `create`, no funds are reserved.
|
||||||
*
|
*
|
||||||
|
* - `collection`: The identifier of the new item. This must not be currently in use.
|
||||||
* - `owner`: The owner of this collection of items. The owner has full superuser
|
* - `owner`: The owner of this collection of items. The owner has full superuser
|
||||||
* permissions
|
* permissions
|
||||||
* over this item, but may later change and configure the permissions using
|
* over this item, but may later change and configure the permissions using
|
||||||
@@ -5128,7 +5148,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
**/
|
**/
|
||||||
forceCreate: AugmentedSubmittable<(owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freeHolding: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
|
forceCreate: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freeHolding: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress, bool]>;
|
||||||
/**
|
/**
|
||||||
* Alter the attributes of a given item.
|
* Alter the attributes of a given item.
|
||||||
*
|
*
|
||||||
@@ -5350,6 +5370,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Move an item from the sender account to another.
|
* Move an item from the sender account to another.
|
||||||
*
|
*
|
||||||
|
* This resets the approved account of the item.
|
||||||
|
*
|
||||||
* Origin must be Signed and the signing account must be either:
|
* Origin must be Signed and the signing account must be either:
|
||||||
* - the Admin of the `collection`;
|
* - the Admin of the `collection`;
|
||||||
* - the Owner of the `item`;
|
* - the Owner of the `item`;
|
||||||
@@ -5379,20 +5401,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
**/
|
**/
|
||||||
transferOwnership: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress]>;
|
transferOwnership: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress]>;
|
||||||
/**
|
|
||||||
* Increments the `CollectionId` stored in `NextCollectionId`.
|
|
||||||
*
|
|
||||||
* This is only callable when the next `CollectionId` is already being
|
|
||||||
* used for some other collection.
|
|
||||||
*
|
|
||||||
* The origin must be Signed and the sender must have sufficient funds
|
|
||||||
* free.
|
|
||||||
*
|
|
||||||
* Emits `NextCollectionIdIncremented` event when successful.
|
|
||||||
*
|
|
||||||
* Weight: `O(1)`
|
|
||||||
**/
|
|
||||||
tryIncrementId: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -5595,7 +5603,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
whitelist: {
|
whitelist: {
|
||||||
dispatchWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array, callWeightWitness: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u64]>;
|
dispatchWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array, callWeightWitness: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Weight]>;
|
||||||
dispatchWhitelistedCallWithPreimage: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
|
dispatchWhitelistedCallWithPreimage: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
|
||||||
removeWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
removeWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
||||||
whitelistCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
whitelistCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
||||||
|
|||||||
@@ -20,13 +20,13 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.1.1",
|
"version": "9.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.18.9",
|
"@babel/runtime": "^7.19.0",
|
||||||
"@polkadot/rpc-core": "9.1.1",
|
"@polkadot/rpc-core": "9.4.1",
|
||||||
"@polkadot/types": "9.1.1",
|
"@polkadot/types": "9.4.1",
|
||||||
"@polkadot/util": "^10.1.3",
|
"@polkadot/util": "^10.1.8",
|
||||||
"rxjs": "^7.5.6"
|
"rxjs": "^7.5.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.1.1' };
|
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.4.1' };
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import type { Registry, Signer } from '@polkadot/types/types';
|
|||||||
|
|
||||||
// A smaller interface of ApiRx, used in derive and in SubmittableExtrinsic
|
// A smaller interface of ApiRx, used in derive and in SubmittableExtrinsic
|
||||||
export interface ApiInterfaceRx {
|
export interface ApiInterfaceRx {
|
||||||
call: QueryableCalls<'rxjs'>,
|
call: QueryableCalls<'rxjs'>;
|
||||||
consts: QueryableConsts<'rxjs'>;
|
consts: QueryableConsts<'rxjs'>;
|
||||||
extrinsicType: number;
|
extrinsicType: number;
|
||||||
genesisHash?: Hash;
|
genesisHash?: Hash;
|
||||||
@@ -19,9 +19,11 @@ export interface ApiInterfaceRx {
|
|||||||
runtimeMetadata: Metadata;
|
runtimeMetadata: Metadata;
|
||||||
runtimeVersion: RuntimeVersion;
|
runtimeVersion: RuntimeVersion;
|
||||||
query: QueryableStorage<'rxjs'>;
|
query: QueryableStorage<'rxjs'>;
|
||||||
queryAt: (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion) => Observable<QueryableStorage<'rxjs'>>;
|
|
||||||
queryMulti: QueryableStorageMulti<'rxjs'>;
|
queryMulti: QueryableStorageMulti<'rxjs'>;
|
||||||
rpc: DecoratedRpc<'rxjs', RpcInterface>;
|
rpc: DecoratedRpc<'rxjs', RpcInterface>;
|
||||||
tx: SubmittableExtrinsics<'rxjs'>;
|
tx: SubmittableExtrinsics<'rxjs'>;
|
||||||
signer?: Signer;
|
signer?: Signer;
|
||||||
|
|
||||||
|
callAt: (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion) => Observable<QueryableCalls<'rxjs'>>;
|
||||||
|
queryAt: (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion) => Observable<QueryableStorage<'rxjs'>>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,20 +20,20 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.1.1",
|
"version": "9.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.18.9",
|
"@babel/runtime": "^7.19.0",
|
||||||
"@polkadot/api": "9.1.1",
|
"@polkadot/api": "9.4.1",
|
||||||
"@polkadot/types": "9.1.1",
|
"@polkadot/types": "9.4.1",
|
||||||
"@polkadot/types-codec": "9.1.1",
|
"@polkadot/types-codec": "9.4.1",
|
||||||
"@polkadot/types-create": "9.1.1",
|
"@polkadot/types-create": "9.4.1",
|
||||||
"@polkadot/util": "^10.1.3",
|
"@polkadot/util": "^10.1.8",
|
||||||
"@polkadot/util-crypto": "^10.1.3",
|
"@polkadot/util-crypto": "^10.1.8",
|
||||||
"rxjs": "^7.5.6"
|
"rxjs": "^7.5.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api-augment": "9.1.1",
|
"@polkadot/api-augment": "9.4.1",
|
||||||
"@polkadot/keyring": "^10.1.3"
|
"@polkadot/keyring": "^10.1.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,9 @@ interface JSONAbi {
|
|||||||
},
|
},
|
||||||
V3: {
|
V3: {
|
||||||
spec: SpecDef;
|
spec: SpecDef;
|
||||||
|
},
|
||||||
|
V4: {
|
||||||
|
spec: SpecDef;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -59,7 +62,7 @@ describe('Abi', (): void => {
|
|||||||
|
|
||||||
it(`initializes from a contract ABI (${abiName})`, (): void => {
|
it(`initializes from a contract ABI (${abiName})`, (): void => {
|
||||||
try {
|
try {
|
||||||
const messageIds = (abi.V3 || abi.V2 || abi.V1 || abi).spec.messages.map(({ label, name }) =>
|
const messageIds = (abi.V4 || abi.V3 || abi.V2 || abi.V1 || abi).spec.messages.map(({ label, name }) =>
|
||||||
label || (
|
label || (
|
||||||
Array.isArray(name)
|
Array.isArray(name)
|
||||||
? name.join('::')
|
? name.join('::')
|
||||||
|
|||||||
@@ -27,12 +27,23 @@ function findMessage <T extends AbiMessage> (list: T[], messageOrId: T | string
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getLatestMeta (registry: Registry, json: Record<string, unknown>): ContractMetadataLatest {
|
function getLatestMeta (registry: Registry, json: Record<string, unknown>): ContractMetadataLatest {
|
||||||
|
// this is for V1, V2, V3
|
||||||
const vx = enumVersions.find((v) => isObject(json[v]));
|
const vx = enumVersions.find((v) => isObject(json[v]));
|
||||||
const metadata = registry.createType('ContractMetadata',
|
|
||||||
|
// this was added in V4
|
||||||
|
const jsonVersion = json.version as string;
|
||||||
|
|
||||||
|
if (!vx && jsonVersion && !enumVersions.find((v) => v === `V${jsonVersion}`)) {
|
||||||
|
throw new Error(`Unable to handle version ${jsonVersion}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
const metadata = registry.createType<ContractMetadata>('ContractMetadata',
|
||||||
vx
|
vx
|
||||||
? { [vx]: json[vx] }
|
? { [vx]: json[vx] }
|
||||||
: { V0: json }
|
: jsonVersion
|
||||||
) as unknown as ContractMetadata;
|
? { [`V${jsonVersion}`]: json }
|
||||||
|
: { V0: json }
|
||||||
|
);
|
||||||
const converter = convertVersions.find(([v]) => metadata[`is${v}`]);
|
const converter = convertVersions.find(([v]) => metadata[`is${v}`]);
|
||||||
|
|
||||||
if (!converter) {
|
if (!converter) {
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
// Copyright 2017-2022 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2022 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { v0ToLatest, v1ToLatest, v2ToLatest, v3ToLatest } from '@polkadot/api-contract/Abi/toLatest';
|
|
||||||
import { TypeRegistry } from '@polkadot/types';
|
import { TypeRegistry } from '@polkadot/types';
|
||||||
|
|
||||||
import abis from '../test/contracts';
|
import abis from '../test/contracts';
|
||||||
|
import { v0ToLatest, v1ToLatest, v2ToLatest, v3ToLatest, v4ToLatest } from './toLatest';
|
||||||
|
|
||||||
describe('v0ToLatest', (): void => {
|
describe('v0ToLatest', (): void => {
|
||||||
const registry = new TypeRegistry();
|
const registry = new TypeRegistry();
|
||||||
@@ -120,3 +120,18 @@ describe('v3ToLatest', (): void => {
|
|||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('v4ToLatest', (): void => {
|
||||||
|
const registry = new TypeRegistry();
|
||||||
|
const contract = registry.createType('ContractMetadata', { V4: abis.ink_v4_flipperContract });
|
||||||
|
const latest = v4ToLatest(registry, contract.asV4);
|
||||||
|
|
||||||
|
it('has the correct constructor flags', (): void => {
|
||||||
|
expect(
|
||||||
|
latest.spec.constructors[0].payable.isTrue
|
||||||
|
).toEqual(false);
|
||||||
|
expect(
|
||||||
|
latest.spec.constructors[1].payable.isTrue
|
||||||
|
).toEqual(false);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|||||||
@@ -1,16 +1,17 @@
|
|||||||
// Copyright 2017-2022 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2022 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { ContractMetadataLatest, ContractMetadataV3 } 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';
|
||||||
import { v1ToV2 } from './toV2';
|
import { v1ToV2 } from './toV2';
|
||||||
import { v2ToV3 } from './toV3';
|
import { v2ToV3 } from './toV3';
|
||||||
|
import { v3ToV4 } from './toV4';
|
||||||
|
|
||||||
// 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> ['V3', 'V2', 'V1'];
|
export const enumVersions = <const> ['V4', 'V3', 'V2', 'V1'];
|
||||||
|
|
||||||
type Versions = typeof enumVersions[number] | 'V0';
|
type Versions = typeof enumVersions[number] | 'V0';
|
||||||
|
|
||||||
@@ -22,15 +23,17 @@ function createConverter <I, O> (next: (registry: Registry, input: O) => Contrac
|
|||||||
next(registry, step(registry, input));
|
next(registry, step(registry, input));
|
||||||
}
|
}
|
||||||
|
|
||||||
export function v3ToLatest (registry: Registry, v3: ContractMetadataV3): ContractMetadataLatest {
|
export function v4ToLatest (registry: Registry, v4: ContractMetadataV4): ContractMetadataLatest {
|
||||||
return v3;
|
return v4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const v3ToLatest = createConverter(v4ToLatest, v3ToV4);
|
||||||
export const v2ToLatest = createConverter(v3ToLatest, v2ToV3);
|
export const v2ToLatest = createConverter(v3ToLatest, v2ToV3);
|
||||||
export const v1ToLatest = createConverter(v2ToLatest, v1ToV2);
|
export const v1ToLatest = createConverter(v2ToLatest, v1ToV2);
|
||||||
export const v0ToLatest = createConverter(v1ToLatest, v0ToV1);
|
export const v0ToLatest = createConverter(v1ToLatest, v0ToV1);
|
||||||
|
|
||||||
export const convertVersions: [Versions, Converter][] = [
|
export const convertVersions: [Versions, Converter][] = [
|
||||||
|
['V4', v4ToLatest],
|
||||||
['V3', v3ToLatest],
|
['V3', v3ToLatest],
|
||||||
['V2', v2ToLatest],
|
['V2', v2ToLatest],
|
||||||
['V1', v1ToLatest],
|
['V1', v1ToLatest],
|
||||||
|
|||||||
@@ -21,6 +21,10 @@ function v0ToV1Names (all: Named[]): unknown[] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function v0ToV1 (registry: Registry, v0: ContractMetadataV0): ContractMetadataV1 {
|
export function v0ToV1 (registry: Registry, v0: ContractMetadataV0): ContractMetadataV1 {
|
||||||
|
if (!v0.metadataVersion.length) {
|
||||||
|
throw new Error('Invalid format for V0 (detected) contract metadata');
|
||||||
|
}
|
||||||
|
|
||||||
return registry.createType('ContractMetadataV1', objectSpread({}, v0, {
|
return registry.createType('ContractMetadataV1', objectSpread({}, v0, {
|
||||||
spec: objectSpread({}, v0.spec, {
|
spec: objectSpread({}, v0.spec, {
|
||||||
constructors: v0ToV1Names(v0.spec.constructors),
|
constructors: v0ToV1Names(v0.spec.constructors),
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/api-contract authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
import type { ContractMetadataV3, ContractMetadataV4 } from '@polkadot/types/interfaces';
|
||||||
|
import type { Registry } from '@polkadot/types/types';
|
||||||
|
|
||||||
|
export function v3ToV4 (registry: Registry, v3: ContractMetadataV3): ContractMetadataV4 {
|
||||||
|
return v3;
|
||||||
|
}
|
||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.1.1' };
|
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.4.1' };
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "bool",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "bool",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 1,
|
||||||
|
"type": "Text",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "VecFixed",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "[u8;32]",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"length": 32,
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Struct",
|
||||||
|
"lookupIndex": 3,
|
||||||
|
"type": "{\"inner\":\"[u8;32]\"}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"name": "inner",
|
||||||
|
"info": "VecFixed",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "[u8;32]",
|
||||||
|
"namespace": "",
|
||||||
|
"length": 32,
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
"typeName": "FixedArray32"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "u128",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 5,
|
||||||
|
"type": "bool",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -6,5 +6,6 @@ import * as v0 from './v0';
|
|||||||
import * as v1 from './v1';
|
import * as v1 from './v1';
|
||||||
import * as v2 from './v2';
|
import * as v2 from './v2';
|
||||||
import * as v3 from './v3';
|
import * as v3 from './v3';
|
||||||
|
import * as v4 from './v4';
|
||||||
|
|
||||||
export default createVersionedExport({ v0, v1, v2, v3 });
|
export default createVersionedExport({ v0, v1, v2, v3, v4 });
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,103 @@
|
|||||||
|
{
|
||||||
|
"source": {
|
||||||
|
"hash": "0xf051c631190ac47f82e280ba763df932210f6e2447978e24cbe0dcc6d6903c7a",
|
||||||
|
"language": "ink! 4.0.0-alpha.1",
|
||||||
|
"compiler": "rustc 1.63.0"
|
||||||
|
},
|
||||||
|
"contract": {
|
||||||
|
"name": "flipper",
|
||||||
|
"version": "4.0.0-alpha.1",
|
||||||
|
"authors": [
|
||||||
|
"Parity Technologies <admin@parity.io>"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"spec": {
|
||||||
|
"constructors": [
|
||||||
|
{
|
||||||
|
"args": [
|
||||||
|
{
|
||||||
|
"label": "init_value",
|
||||||
|
"type": {
|
||||||
|
"displayName": [
|
||||||
|
"bool"
|
||||||
|
],
|
||||||
|
"type": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"docs": [
|
||||||
|
"Creates a new flipper smart contract initialized with the given value."
|
||||||
|
],
|
||||||
|
"label": "new",
|
||||||
|
"payable": false,
|
||||||
|
"selector": "0x9bae9d5e"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"args": [],
|
||||||
|
"docs": [
|
||||||
|
"Creates a new flipper smart contract initialized to `false`."
|
||||||
|
],
|
||||||
|
"label": "default",
|
||||||
|
"payable": false,
|
||||||
|
"selector": "0xed4b9d1b"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"docs": [],
|
||||||
|
"events": [],
|
||||||
|
"messages": [
|
||||||
|
{
|
||||||
|
"args": [],
|
||||||
|
"docs": [
|
||||||
|
" Flips the current value of the Flipper's boolean."
|
||||||
|
],
|
||||||
|
"label": "flip",
|
||||||
|
"mutates": true,
|
||||||
|
"payable": false,
|
||||||
|
"returnType": null,
|
||||||
|
"selector": "0x633aa551"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"args": [],
|
||||||
|
"docs": [
|
||||||
|
" Returns the current value of the Flipper's boolean."
|
||||||
|
],
|
||||||
|
"label": "get",
|
||||||
|
"mutates": false,
|
||||||
|
"payable": false,
|
||||||
|
"returnType": {
|
||||||
|
"displayName": [
|
||||||
|
"bool"
|
||||||
|
],
|
||||||
|
"type": 0
|
||||||
|
},
|
||||||
|
"selector": "0x2f865bd9"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"storage": {
|
||||||
|
"struct": {
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"layout": {
|
||||||
|
"cell": {
|
||||||
|
"key": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"ty": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"name": "value"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"types": [
|
||||||
|
{
|
||||||
|
"id": 0,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"primitive": "bool"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"version": "4"
|
||||||
|
}
|
||||||
Binary file not shown.
@@ -0,0 +1,5 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/api-contract authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
export { default as flipperContract } from './flipper.contract.json' assert { type: 'json' };
|
||||||
|
export { default as flipperMetadata } from './flipper.json' assert { type: 'json' };
|
||||||
@@ -3,5 +3,6 @@
|
|||||||
|
|
||||||
import { createVersionedExport } from '../util';
|
import { createVersionedExport } from '../util';
|
||||||
import * as v0 from './v0';
|
import * as v0 from './v0';
|
||||||
|
import * as v3 from './v3';
|
||||||
|
|
||||||
export default createVersionedExport({ v0 });
|
export default createVersionedExport({ v0, v3 });
|
||||||
|
|||||||
@@ -0,0 +1,550 @@
|
|||||||
|
{
|
||||||
|
"source": {
|
||||||
|
"hash": "",
|
||||||
|
"language": "Ask! 0.4.0",
|
||||||
|
"compiler": "asc 0.19.23"
|
||||||
|
},
|
||||||
|
"contract": {
|
||||||
|
"name": "",
|
||||||
|
"version": "",
|
||||||
|
"authors": []
|
||||||
|
},
|
||||||
|
"V3": {
|
||||||
|
"spec": {
|
||||||
|
"constructors": [
|
||||||
|
{
|
||||||
|
"args": [
|
||||||
|
{
|
||||||
|
"type": {
|
||||||
|
"type": 1,
|
||||||
|
"displayName": [
|
||||||
|
"string"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"label": "name"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": {
|
||||||
|
"type": 1,
|
||||||
|
"displayName": [
|
||||||
|
"string"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"label": "symbol"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"docs": [],
|
||||||
|
"label": "default",
|
||||||
|
"payable": false,
|
||||||
|
"selector": "0xed4b9d1b"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"messages": [
|
||||||
|
{
|
||||||
|
"mutates": true,
|
||||||
|
"payable": true,
|
||||||
|
"args": [
|
||||||
|
{
|
||||||
|
"type": {
|
||||||
|
"type": 3,
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"label": "to"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": {
|
||||||
|
"type": 4,
|
||||||
|
"displayName": [
|
||||||
|
"u128"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"label": "amount"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"docs": [],
|
||||||
|
"label": "mint",
|
||||||
|
"selector": "0xcfdd9aa2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mutates": true,
|
||||||
|
"payable": true,
|
||||||
|
"args": [
|
||||||
|
{
|
||||||
|
"type": {
|
||||||
|
"type": 3,
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"label": "from"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": {
|
||||||
|
"type": 4,
|
||||||
|
"displayName": [
|
||||||
|
"u128"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"label": "amount"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"docs": [],
|
||||||
|
"label": "burn",
|
||||||
|
"selector": "0xb1efc17b"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mutates": false,
|
||||||
|
"payable": false,
|
||||||
|
"args": [],
|
||||||
|
"returnType": {
|
||||||
|
"type": 1,
|
||||||
|
"displayName": [
|
||||||
|
"string"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"docs": [],
|
||||||
|
"label": "name",
|
||||||
|
"selector": "0x3adaf70d"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mutates": false,
|
||||||
|
"payable": false,
|
||||||
|
"args": [],
|
||||||
|
"returnType": {
|
||||||
|
"type": 1,
|
||||||
|
"displayName": [
|
||||||
|
"string"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"docs": [],
|
||||||
|
"label": "symbol",
|
||||||
|
"selector": "0x9bd1933e"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mutates": false,
|
||||||
|
"payable": false,
|
||||||
|
"args": [],
|
||||||
|
"returnType": {
|
||||||
|
"type": 0,
|
||||||
|
"displayName": [
|
||||||
|
"u8"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"docs": [],
|
||||||
|
"label": "decimal",
|
||||||
|
"selector": "0xcc3fec6d"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mutates": false,
|
||||||
|
"payable": false,
|
||||||
|
"args": [],
|
||||||
|
"returnType": {
|
||||||
|
"type": 4,
|
||||||
|
"displayName": [
|
||||||
|
"u128"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"docs": [],
|
||||||
|
"label": "totalSupply",
|
||||||
|
"selector": "0xcae60595"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mutates": false,
|
||||||
|
"payable": false,
|
||||||
|
"args": [
|
||||||
|
{
|
||||||
|
"type": {
|
||||||
|
"type": 3,
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"label": "account"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"returnType": {
|
||||||
|
"type": 4,
|
||||||
|
"displayName": [
|
||||||
|
"u128"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"docs": [],
|
||||||
|
"label": "balanceOf",
|
||||||
|
"selector": "0xf48def67"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mutates": true,
|
||||||
|
"payable": true,
|
||||||
|
"args": [
|
||||||
|
{
|
||||||
|
"type": {
|
||||||
|
"type": 3,
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"label": "recipient"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": {
|
||||||
|
"type": 4,
|
||||||
|
"displayName": [
|
||||||
|
"u128"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"label": "amount"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"returnType": {
|
||||||
|
"type": 5,
|
||||||
|
"displayName": [
|
||||||
|
"bool"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"docs": [],
|
||||||
|
"label": "transfer",
|
||||||
|
"selector": "0x84a15da1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mutates": false,
|
||||||
|
"payable": false,
|
||||||
|
"args": [
|
||||||
|
{
|
||||||
|
"type": {
|
||||||
|
"type": 3,
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"label": "owner"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": {
|
||||||
|
"type": 3,
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"label": "spender"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"returnType": {
|
||||||
|
"type": 4,
|
||||||
|
"displayName": [
|
||||||
|
"u128"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"docs": [],
|
||||||
|
"label": "allowance",
|
||||||
|
"selector": "0x6a00165e"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mutates": true,
|
||||||
|
"payable": true,
|
||||||
|
"args": [
|
||||||
|
{
|
||||||
|
"type": {
|
||||||
|
"type": 3,
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"label": "spender"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": {
|
||||||
|
"type": 4,
|
||||||
|
"displayName": [
|
||||||
|
"u128"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"label": "amount"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"returnType": {
|
||||||
|
"type": 5,
|
||||||
|
"displayName": [
|
||||||
|
"bool"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"docs": [],
|
||||||
|
"label": "approve",
|
||||||
|
"selector": "0x681266a0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mutates": true,
|
||||||
|
"payable": true,
|
||||||
|
"args": [
|
||||||
|
{
|
||||||
|
"type": {
|
||||||
|
"type": 3,
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"label": "sender"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": {
|
||||||
|
"type": 3,
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"label": "recipient"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": {
|
||||||
|
"type": 4,
|
||||||
|
"displayName": [
|
||||||
|
"u128"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"label": "amount"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"returnType": {
|
||||||
|
"type": 5,
|
||||||
|
"displayName": [
|
||||||
|
"bool"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"docs": [],
|
||||||
|
"label": "transferFrom",
|
||||||
|
"selector": "0x02a6e0d5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mutates": true,
|
||||||
|
"payable": true,
|
||||||
|
"args": [
|
||||||
|
{
|
||||||
|
"type": {
|
||||||
|
"type": 3,
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"label": "spender"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": {
|
||||||
|
"type": 4,
|
||||||
|
"displayName": [
|
||||||
|
"u128"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"label": "addedValue"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"returnType": {
|
||||||
|
"type": 5,
|
||||||
|
"displayName": [
|
||||||
|
"bool"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"docs": [],
|
||||||
|
"label": "increaseAllowance",
|
||||||
|
"selector": "0xcb005356"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mutates": true,
|
||||||
|
"payable": true,
|
||||||
|
"args": [
|
||||||
|
{
|
||||||
|
"type": {
|
||||||
|
"type": 3,
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"label": "spender"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": {
|
||||||
|
"type": 4,
|
||||||
|
"displayName": [
|
||||||
|
"u128"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"label": "subtractedValue"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"returnType": {
|
||||||
|
"type": 5,
|
||||||
|
"displayName": [
|
||||||
|
"bool"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"docs": [],
|
||||||
|
"label": "decreaseAllowance",
|
||||||
|
"selector": "0xe19fabb4"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"events": [
|
||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"label": "Transfer",
|
||||||
|
"args": [
|
||||||
|
{
|
||||||
|
"label": "from",
|
||||||
|
"indexed": false,
|
||||||
|
"type": {
|
||||||
|
"type": 3,
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"docs": [
|
||||||
|
""
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "to",
|
||||||
|
"indexed": false,
|
||||||
|
"type": {
|
||||||
|
"type": 3,
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"docs": [
|
||||||
|
""
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "value",
|
||||||
|
"indexed": false,
|
||||||
|
"type": {
|
||||||
|
"type": 4,
|
||||||
|
"displayName": [
|
||||||
|
"u128"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"docs": [
|
||||||
|
""
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"docs": [
|
||||||
|
""
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 2,
|
||||||
|
"label": "Approval",
|
||||||
|
"args": [
|
||||||
|
{
|
||||||
|
"label": "owner",
|
||||||
|
"indexed": false,
|
||||||
|
"type": {
|
||||||
|
"type": 3,
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"docs": [
|
||||||
|
""
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "spender",
|
||||||
|
"indexed": false,
|
||||||
|
"type": {
|
||||||
|
"type": 3,
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"docs": [
|
||||||
|
""
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "value",
|
||||||
|
"indexed": false,
|
||||||
|
"type": {
|
||||||
|
"type": 4,
|
||||||
|
"displayName": [
|
||||||
|
"u128"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"docs": [
|
||||||
|
""
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"docs": [
|
||||||
|
""
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"docs": [
|
||||||
|
""
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"types": [
|
||||||
|
{
|
||||||
|
"id": 0,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"primitive": "u8"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"primitive": "str"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 2,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"array": {
|
||||||
|
"len": 32,
|
||||||
|
"type": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 3,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"composite": {
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"name": "inner",
|
||||||
|
"type": 2,
|
||||||
|
"typeName": "FixedArray32<u8>"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"path": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 4,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"primitive": "u128"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 5,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"primitive": "bool"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/api-contract authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
export { default as ask } from './ask.json' assert { type: 'json' };
|
||||||
@@ -20,25 +20,25 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.1.1",
|
"version": "9.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.18.9",
|
"@babel/runtime": "^7.19.0",
|
||||||
"@polkadot/api": "9.1.1",
|
"@polkadot/api": "9.4.1",
|
||||||
"@polkadot/api-augment": "9.1.1",
|
"@polkadot/api-augment": "9.4.1",
|
||||||
"@polkadot/api-base": "9.1.1",
|
"@polkadot/api-base": "9.4.1",
|
||||||
"@polkadot/rpc-core": "9.1.1",
|
"@polkadot/rpc-core": "9.4.1",
|
||||||
"@polkadot/types": "9.1.1",
|
"@polkadot/types": "9.4.1",
|
||||||
"@polkadot/types-codec": "9.1.1",
|
"@polkadot/types-codec": "9.4.1",
|
||||||
"@polkadot/util": "^10.1.3",
|
"@polkadot/util": "^10.1.8",
|
||||||
"@polkadot/util-crypto": "^10.1.3",
|
"@polkadot/util-crypto": "^10.1.8",
|
||||||
"rxjs": "^7.5.6"
|
"rxjs": "^7.5.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api": "9.1.1",
|
"@polkadot/api": "9.4.1",
|
||||||
"@polkadot/api-augment": "9.1.1",
|
"@polkadot/api-augment": "9.4.1",
|
||||||
"@polkadot/rpc-augment": "9.1.1",
|
"@polkadot/rpc-augment": "9.4.1",
|
||||||
"@polkadot/rpc-provider": "9.1.1",
|
"@polkadot/rpc-provider": "9.4.1",
|
||||||
"@polkadot/types-support": "9.1.1"
|
"@polkadot/types-support": "9.4.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.1.1' };
|
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.4.1' };
|
||||||
|
|||||||
@@ -99,14 +99,14 @@ export const query = firstMemo(
|
|||||||
|
|
||||||
export function queryMulti (instanceId: string, api: DeriveApi): (accountIds: (Uint8Array | string)[], flags: StakingQueryFlags) => Observable<DeriveStakingQuery[]> {
|
export function queryMulti (instanceId: string, api: DeriveApi): (accountIds: (Uint8Array | string)[], flags: StakingQueryFlags) => Observable<DeriveStakingQuery[]> {
|
||||||
return memo(instanceId, (accountIds: (Uint8Array | string)[], flags: StakingQueryFlags): Observable<DeriveStakingQuery[]> =>
|
return memo(instanceId, (accountIds: (Uint8Array | string)[], flags: StakingQueryFlags): Observable<DeriveStakingQuery[]> =>
|
||||||
accountIds.length
|
api.derive.session.indexes().pipe(
|
||||||
? api.derive.session.indexes().pipe(
|
switchMap(({ activeEra }): Observable<DeriveStakingQuery[]> => {
|
||||||
switchMap(({ activeEra }): Observable<DeriveStakingQuery[]> => {
|
const stashIds = accountIds.map((a) => api.registry.createType('AccountId', a));
|
||||||
const stashIds = accountIds.map((accountId) => api.registry.createType('AccountId', accountId));
|
|
||||||
|
|
||||||
return getBatch(api, activeEra, stashIds, flags);
|
return stashIds.length
|
||||||
})
|
? getBatch(api, activeEra, stashIds, flags)
|
||||||
)
|
: of([]);
|
||||||
: of([])
|
})
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
+18
-18
@@ -20,29 +20,29 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.1.1",
|
"version": "9.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.18.9",
|
"@babel/runtime": "^7.19.0",
|
||||||
"@polkadot/api-augment": "9.1.1",
|
"@polkadot/api-augment": "9.4.1",
|
||||||
"@polkadot/api-base": "9.1.1",
|
"@polkadot/api-base": "9.4.1",
|
||||||
"@polkadot/api-derive": "9.1.1",
|
"@polkadot/api-derive": "9.4.1",
|
||||||
"@polkadot/keyring": "^10.1.3",
|
"@polkadot/keyring": "^10.1.8",
|
||||||
"@polkadot/rpc-augment": "9.1.1",
|
"@polkadot/rpc-augment": "9.4.1",
|
||||||
"@polkadot/rpc-core": "9.1.1",
|
"@polkadot/rpc-core": "9.4.1",
|
||||||
"@polkadot/rpc-provider": "9.1.1",
|
"@polkadot/rpc-provider": "9.4.1",
|
||||||
"@polkadot/types": "9.1.1",
|
"@polkadot/types": "9.4.1",
|
||||||
"@polkadot/types-augment": "9.1.1",
|
"@polkadot/types-augment": "9.4.1",
|
||||||
"@polkadot/types-codec": "9.1.1",
|
"@polkadot/types-codec": "9.4.1",
|
||||||
"@polkadot/types-create": "9.1.1",
|
"@polkadot/types-create": "9.4.1",
|
||||||
"@polkadot/types-known": "9.1.1",
|
"@polkadot/types-known": "9.4.1",
|
||||||
"@polkadot/util": "^10.1.3",
|
"@polkadot/util": "^10.1.8",
|
||||||
"@polkadot/util-crypto": "^10.1.3",
|
"@polkadot/util-crypto": "^10.1.8",
|
||||||
"eventemitter3": "^4.0.7",
|
"eventemitter3": "^4.0.7",
|
||||||
"rxjs": "^7.5.6"
|
"rxjs": "^7.5.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api-augment": "9.1.1",
|
"@polkadot/api-augment": "9.4.1",
|
||||||
"@polkadot/types-support": "9.1.1"
|
"@polkadot/types-support": "9.4.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import { BehaviorSubject, combineLatest, from, map, of, switchMap, tap, toArray
|
|||||||
import { getAvailableDerives } from '@polkadot/api-derive';
|
import { getAvailableDerives } from '@polkadot/api-derive';
|
||||||
import { memo, RpcCore } from '@polkadot/rpc-core';
|
import { memo, RpcCore } from '@polkadot/rpc-core';
|
||||||
import { WsProvider } from '@polkadot/rpc-provider';
|
import { WsProvider } from '@polkadot/rpc-provider';
|
||||||
import { expandMetadata, Metadata, typeDefinitions, TypeRegistry } from '@polkadot/types';
|
import { expandMetadata, GenericExtrinsic, Metadata, typeDefinitions, TypeRegistry } from '@polkadot/types';
|
||||||
import { getSpecRuntime } from '@polkadot/types-known';
|
import { getSpecRuntime } from '@polkadot/types-known';
|
||||||
import { arrayChunk, arrayFlatten, assertReturn, BN, compactStripLength, lazyMethod, lazyMethods, logger, nextTick, objectSpread, stringCamelCase, stringUpperFirst, u8aConcatStrict, u8aToHex } from '@polkadot/util';
|
import { arrayChunk, arrayFlatten, assertReturn, BN, compactStripLength, lazyMethod, lazyMethods, logger, nextTick, objectSpread, stringCamelCase, stringUpperFirst, u8aConcatStrict, u8aToHex } from '@polkadot/util';
|
||||||
import { blake2AsHex } from '@polkadot/util-crypto';
|
import { blake2AsHex } from '@polkadot/util-crypto';
|
||||||
@@ -84,7 +84,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
|||||||
|
|
||||||
protected _extrinsics?: SubmittableExtrinsics<ApiType>;
|
protected _extrinsics?: SubmittableExtrinsics<ApiType>;
|
||||||
|
|
||||||
protected _extrinsicType = 4; // latest extrinsic version
|
protected _extrinsicType = GenericExtrinsic.LATEST_EXTRINSIC_VERSION;
|
||||||
|
|
||||||
protected _genesisHash?: Hash;
|
protected _genesisHash?: Hash;
|
||||||
|
|
||||||
@@ -160,6 +160,8 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
|||||||
|
|
||||||
this.#instanceId = `${++instanceCounter}`;
|
this.#instanceId = `${++instanceCounter}`;
|
||||||
this.#registry = options.source?.registry || options.registry || new TypeRegistry();
|
this.#registry = options.source?.registry || options.registry || new TypeRegistry();
|
||||||
|
this._rx.callAt = (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion) =>
|
||||||
|
from(this.at(blockHash, knownVersion)).pipe(map((a) => a.rx.call));
|
||||||
this._rx.queryAt = (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion) =>
|
this._rx.queryAt = (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion) =>
|
||||||
from(this.at(blockHash, knownVersion)).pipe(map((a) => a.rx.query));
|
from(this.at(blockHash, knownVersion)).pipe(map((a) => a.rx.query));
|
||||||
this._rx.registry = this.#registry;
|
this._rx.registry = this.#registry;
|
||||||
@@ -842,21 +844,29 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
|||||||
let valueIdx = 0;
|
let valueIdx = 0;
|
||||||
let valueObs: Observable<Codec[]>;
|
let valueObs: Observable<Codec[]>;
|
||||||
|
|
||||||
|
// if we don't have queue entries yet,
|
||||||
|
// or the current queue has fired (see from below),
|
||||||
|
// or the current queue has the max entries,
|
||||||
|
// then we create a new queue
|
||||||
if (queueIdx === -1 || !queue[queueIdx] || queue[queueIdx][1].length === PAGE_SIZE_Q) {
|
if (queueIdx === -1 || !queue[queueIdx] || queue[queueIdx][1].length === PAGE_SIZE_Q) {
|
||||||
queueIdx++;
|
queueIdx++;
|
||||||
|
|
||||||
valueObs = from(
|
valueObs = from(
|
||||||
// Defer to the next tick - this aligns with nextTick in @polkadot/util,
|
// we delay the execution until the next tick, this allows
|
||||||
// however since we return a value here, we don't re-use what is there
|
// any queries made in this timeframe to be added to the same
|
||||||
Promise
|
// queue for a single query
|
||||||
.resolve()
|
new Promise<[StorageEntry, unknown[]][]>((resolve): void => {
|
||||||
.then((): [StorageEntry, unknown[]][] => {
|
nextTick((): void => {
|
||||||
|
// get all the calls in this instance, resolve with it
|
||||||
|
// and then clear the queue so we don't add more
|
||||||
|
// (anyhting after this will be added to a new queue)
|
||||||
const calls = queue[queueIdx][1];
|
const calls = queue[queueIdx][1];
|
||||||
|
|
||||||
delete queue[queueIdx];
|
delete queue[queueIdx];
|
||||||
|
|
||||||
return calls;
|
resolve(calls);
|
||||||
})
|
});
|
||||||
|
})
|
||||||
).pipe(
|
).pipe(
|
||||||
switchMap((calls) => query(calls))
|
switchMap((calls) => query(calls))
|
||||||
);
|
);
|
||||||
@@ -870,6 +880,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return valueObs.pipe(
|
return valueObs.pipe(
|
||||||
|
// return the single value at this index
|
||||||
map((values) => values[valueIdx])
|
map((values) => values[valueIdx])
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import { cryptoWaitReady } from '@polkadot/util-crypto';
|
|||||||
import { Decorate } from './Decorate';
|
import { Decorate } from './Decorate';
|
||||||
|
|
||||||
const KEEPALIVE_INTERVAL = 10000;
|
const KEEPALIVE_INTERVAL = 10000;
|
||||||
|
const WITH_VERSION_SHORTCUT = false;
|
||||||
|
|
||||||
const l = logger('api/init');
|
const l = logger('api/init');
|
||||||
|
|
||||||
@@ -206,8 +207,13 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
|||||||
// get the runtime version, either on-chain or via an known upgrade history
|
// get the runtime version, either on-chain or via an known upgrade history
|
||||||
const [firstVersion, lastVersion] = getUpgradeVersion(this._genesisHash, header.number);
|
const [firstVersion, lastVersion] = getUpgradeVersion(this._genesisHash, header.number);
|
||||||
const version = this.registry.createType('RuntimeVersionPartial',
|
const version = this.registry.createType('RuntimeVersionPartial',
|
||||||
(firstVersion && (lastVersion || firstVersion.specVersion.eq(this._runtimeVersion.specVersion)))
|
WITH_VERSION_SHORTCUT && (
|
||||||
? { specName: this._runtimeVersion.specName, specVersion: firstVersion.specVersion }
|
firstVersion && (
|
||||||
|
lastVersion ||
|
||||||
|
firstVersion.specVersion.eq(this._runtimeVersion.specVersion)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
? { apis: firstVersion.apis, specName: this._runtimeVersion.specName, specVersion: firstVersion.specVersion }
|
||||||
: await firstValueFrom(this._rpcCore.state.getRuntimeVersion.raw(header.parentHash))
|
: await firstValueFrom(this._rpcCore.state.getRuntimeVersion.raw(header.parentHash))
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
import '@polkadot/rpc-augment';
|
import '@polkadot/rpc-augment';
|
||||||
|
|
||||||
export { Keyring } from '@polkadot/keyring';
|
export { Keyring } from '@polkadot/keyring';
|
||||||
export { WsProvider, HttpProvider } from '@polkadot/rpc-provider';
|
export { HttpProvider, ScProvider, WsProvider } from '@polkadot/rpc-provider';
|
||||||
|
|
||||||
export { packageInfo } from './packageInfo';
|
export { packageInfo } from './packageInfo';
|
||||||
export { SubmittableResult } from './submittable';
|
export { SubmittableResult } from './submittable';
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.1.1' };
|
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.4.1' };
|
||||||
|
|||||||
@@ -102,6 +102,10 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
|||||||
|
|
||||||
// dry run an extrinsic
|
// dry run an extrinsic
|
||||||
public dryRun (account: AddressOrPair, optionsOrHash?: Partial<SignerOptions> | Uint8Array | string): SubmittableDryRunResult<ApiType> {
|
public dryRun (account: AddressOrPair, optionsOrHash?: Partial<SignerOptions> | Uint8Array | string): SubmittableDryRunResult<ApiType> {
|
||||||
|
if (!api.rpc.system || !api.rpc.system.dryRun) {
|
||||||
|
throw new Error('The system.dryRun RPC call is not available in your environment');
|
||||||
|
}
|
||||||
|
|
||||||
if (blockHash || isString(optionsOrHash) || isU8a(optionsOrHash)) {
|
if (blockHash || isString(optionsOrHash) || isU8a(optionsOrHash)) {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
||||||
return decorateMethod(
|
return decorateMethod(
|
||||||
@@ -120,11 +124,21 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
|||||||
|
|
||||||
// calculate the payment info for this transaction (if signed and submitted)
|
// calculate the payment info for this transaction (if signed and submitted)
|
||||||
public paymentInfo (account: AddressOrPair, optionsOrHash?: Partial<SignerOptions> | Uint8Array | string): SubmittablePaymentResult<ApiType> {
|
public paymentInfo (account: AddressOrPair, optionsOrHash?: Partial<SignerOptions> | Uint8Array | string): SubmittablePaymentResult<ApiType> {
|
||||||
|
if (!api.call.transactionPaymentApi || !api.call.transactionPaymentApi.queryInfo) {
|
||||||
|
throw new Error('The transactionPaymentApi.queryInfo runtime call is not available in your environment');
|
||||||
|
}
|
||||||
|
|
||||||
if (blockHash || isString(optionsOrHash) || isU8a(optionsOrHash)) {
|
if (blockHash || isString(optionsOrHash) || isU8a(optionsOrHash)) {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
||||||
return decorateMethod(
|
return decorateMethod(
|
||||||
(): Observable<RuntimeDispatchInfo> =>
|
(): Observable<RuntimeDispatchInfo> =>
|
||||||
api.rpc.payment.queryInfo(this.toHex(), blockHash || optionsOrHash as string)
|
api.callAt(blockHash || optionsOrHash as string).pipe(
|
||||||
|
switchMap((callAt): Observable<RuntimeDispatchInfo> => {
|
||||||
|
const u8a = this.toU8a();
|
||||||
|
|
||||||
|
return callAt.transactionPaymentApi.queryInfo(u8a, u8a.length);
|
||||||
|
})
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -140,12 +154,11 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
|||||||
// setup our options (same way as in signAndSend)
|
// setup our options (same way as in signAndSend)
|
||||||
const eraOptions = makeEraOptions(api, this.registry, allOptions, signingInfo);
|
const eraOptions = makeEraOptions(api, this.registry, allOptions, signingInfo);
|
||||||
const signOptions = makeSignOptions(api, eraOptions, {});
|
const signOptions = makeSignOptions(api, eraOptions, {});
|
||||||
|
const u8a = this.isSigned
|
||||||
|
? api.tx(this).signFake(address, signOptions).toU8a()
|
||||||
|
: this.signFake(address, signOptions).toU8a();
|
||||||
|
|
||||||
return api.rpc.payment.queryInfo(
|
return api.call.transactionPaymentApi.queryInfo(u8a, u8a.length);
|
||||||
this.isSigned
|
|
||||||
? api.tx(this).signFake(address, signOptions).toHex()
|
|
||||||
: this.signFake(address, signOptions).toHex()
|
|
||||||
);
|
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
)();
|
)();
|
||||||
|
|||||||
@@ -20,13 +20,13 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.1.1",
|
"version": "9.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.18.9",
|
"@babel/runtime": "^7.19.0",
|
||||||
"@polkadot/rpc-core": "9.1.1",
|
"@polkadot/rpc-core": "9.4.1",
|
||||||
"@polkadot/types": "9.1.1",
|
"@polkadot/types": "9.4.1",
|
||||||
"@polkadot/types-codec": "9.1.1",
|
"@polkadot/types-codec": "9.4.1",
|
||||||
"@polkadot/util": "^10.1.3"
|
"@polkadot/util": "^10.1.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.1.1' };
|
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.4.1' };
|
||||||
|
|||||||
@@ -20,18 +20,18 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.1.1",
|
"version": "9.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.18.9",
|
"@babel/runtime": "^7.19.0",
|
||||||
"@polkadot/rpc-augment": "9.1.1",
|
"@polkadot/rpc-augment": "9.4.1",
|
||||||
"@polkadot/rpc-provider": "9.1.1",
|
"@polkadot/rpc-provider": "9.4.1",
|
||||||
"@polkadot/types": "9.1.1",
|
"@polkadot/types": "9.4.1",
|
||||||
"@polkadot/util": "^10.1.3",
|
"@polkadot/util": "^10.1.8",
|
||||||
"rxjs": "^7.5.6"
|
"rxjs": "^7.5.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^10.1.3",
|
"@polkadot/keyring": "^10.1.8",
|
||||||
"@polkadot/rpc-augment": "9.1.1"
|
"@polkadot/rpc-augment": "9.4.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.1.1' };
|
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.4.1' };
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import type { Observable } from 'rxjs';
|
|||||||
|
|
||||||
import { catchError, distinctUntilChanged, publishReplay, refCount, tap } from 'rxjs';
|
import { catchError, distinctUntilChanged, publishReplay, refCount, tap } from 'rxjs';
|
||||||
|
|
||||||
import { logger, stringify } from '@polkadot/util';
|
import { stringify } from '@polkadot/util';
|
||||||
|
|
||||||
import { refCountDelay } from './refCountDelay';
|
import { refCountDelay } from './refCountDelay';
|
||||||
|
|
||||||
@@ -17,18 +17,17 @@ interface Options {
|
|||||||
skipTimeout?: boolean;
|
skipTimeout?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
const l = logger('drr');
|
function CMP (a: unknown, b: unknown): boolean {
|
||||||
|
return stringify({ t: a }) === stringify({ t: b });
|
||||||
const CMP = (a: unknown, b: unknown): boolean =>
|
}
|
||||||
stringify({ t: a }) === stringify({ t: b });
|
|
||||||
|
|
||||||
const ERR = (error: Error): Observable<never> => {
|
|
||||||
l.error(error.message);
|
|
||||||
|
|
||||||
|
function ERR (error: Error): Observable<never> {
|
||||||
throw error;
|
throw error;
|
||||||
};
|
}
|
||||||
|
|
||||||
const NOOP = (): void => undefined;
|
function NOOP (): void {
|
||||||
|
// empty
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Shorthand for distinctUntilChanged(), publishReplay(1) and refCount().
|
* Shorthand for distinctUntilChanged(), publishReplay(1) and refCount().
|
||||||
@@ -36,14 +35,16 @@ const NOOP = (): void => undefined;
|
|||||||
* @ignore
|
* @ignore
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
export const drr = ({ delay, skipChange = false, skipTimeout = false }: Options = {}): DrrResult => <T> (source$: Observable<T>): Observable<T> =>
|
export function drr ({ delay, skipChange = false, skipTimeout = false }: Options = {}): DrrResult {
|
||||||
source$.pipe(
|
return <T> (source$: Observable<T>): Observable<T> =>
|
||||||
catchError(ERR),
|
source$.pipe(
|
||||||
skipChange
|
catchError(ERR),
|
||||||
? tap(NOOP)
|
skipChange
|
||||||
: distinctUntilChanged<T>(CMP),
|
? tap(NOOP)
|
||||||
publishReplay(1),
|
: distinctUntilChanged<T>(CMP),
|
||||||
skipTimeout
|
publishReplay(1),
|
||||||
? refCount()
|
skipTimeout
|
||||||
: refCountDelay(delay)
|
? refCount()
|
||||||
);
|
: refCountDelay(delay)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ yarn add @polkadot/rpc-provider
|
|||||||
WebSocket Initialization -
|
WebSocket Initialization -
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
import { WsProvider } from '@polkadot/rpc-provider/ws';
|
import { WsProvider } from '@polkadot/rpc-provider';
|
||||||
|
|
||||||
// this is the actual default endpoint
|
// this is the actual default endpoint
|
||||||
const provider = new WsProvider('ws://127.0.0.1:9944');
|
const provider = new WsProvider('ws://127.0.0.1:9944');
|
||||||
@@ -44,19 +44,23 @@ console.log('latest block Hash', hash);
|
|||||||
|
|
||||||
Instantiating a Provider for the Polkadot Relay Chain:
|
Instantiating a Provider for the Polkadot Relay Chain:
|
||||||
```javascript
|
```javascript
|
||||||
import { ScProvider, WellKnownChain } from '@polkadot/rpc-provider/substrate-connect';
|
import { ScProvider } from '@polkadot/rpc-provider';
|
||||||
|
|
||||||
|
const provider = new ScProvider(ScProvider.WellKnownChain.polkadot);
|
||||||
|
|
||||||
const provider = new ScProvider(WellKnownChain.polkadot);
|
|
||||||
await provider.connect();
|
await provider.connect();
|
||||||
|
|
||||||
const version = await provider.send('chain_getBlockHash', []);
|
const version = await provider.send('chain_getBlockHash', []);
|
||||||
```
|
```
|
||||||
|
|
||||||
Instantiating a Provider for a Polkadot parachain:
|
Instantiating a Provider for a Polkadot parachain:
|
||||||
```javascript
|
```javascript
|
||||||
import { ScProvider, WellKnownChain } from '@polkadot/rpc-provider/substrate-connect';
|
import { ScProvider } from '@polkadot/rpc-provider';
|
||||||
|
|
||||||
const polkadotProvider = new ScProvider(WellKnownChain.polkadot);
|
const polkadotProvider = new ScProvider(ScProvider.WellKnownChain.polkadot);
|
||||||
const parachainProvider = new ScProvider(parachainSpec, polkadotProvider);
|
const parachainProvider = new ScProvider(parachainSpec, polkadotProvider);
|
||||||
|
|
||||||
await parachainProvider.connect();
|
await parachainProvider.connect();
|
||||||
|
|
||||||
const version = await parachainProvider.send('chain_getBlockHash', []);
|
const version = await parachainProvider.send('chain_getBlockHash', []);
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -20,19 +20,19 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.1.1",
|
"version": "9.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.18.9",
|
"@babel/runtime": "^7.19.0",
|
||||||
"@polkadot/keyring": "^10.1.3",
|
"@polkadot/keyring": "^10.1.8",
|
||||||
"@polkadot/types": "9.1.1",
|
"@polkadot/types": "9.4.1",
|
||||||
"@polkadot/types-support": "9.1.1",
|
"@polkadot/types-support": "9.4.1",
|
||||||
"@polkadot/util": "^10.1.3",
|
"@polkadot/util": "^10.1.8",
|
||||||
"@polkadot/util-crypto": "^10.1.3",
|
"@polkadot/util-crypto": "^10.1.8",
|
||||||
"@polkadot/x-fetch": "^10.1.3",
|
"@polkadot/x-fetch": "^10.1.8",
|
||||||
"@polkadot/x-global": "^10.1.3",
|
"@polkadot/x-global": "^10.1.8",
|
||||||
"@polkadot/x-ws": "^10.1.3",
|
"@polkadot/x-ws": "^10.1.8",
|
||||||
"@substrate/connect": "0.7.10",
|
"@substrate/connect": "0.7.13",
|
||||||
"eventemitter3": "^4.0.7",
|
"eventemitter3": "^4.0.7",
|
||||||
"mock-socket": "^9.1.5",
|
"mock-socket": "^9.1.5",
|
||||||
"nock": "^13.2.9"
|
"nock": "^13.2.9"
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.1.1' };
|
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.4.1' };
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import type { JsonRpcResponse, ProviderInterface, ProviderInterfaceCallback, Pro
|
|||||||
import { Chain, createScClient, ScClient, WellKnownChain } from '@substrate/connect';
|
import { Chain, createScClient, ScClient, WellKnownChain } from '@substrate/connect';
|
||||||
import EventEmitter from 'eventemitter3';
|
import EventEmitter from 'eventemitter3';
|
||||||
|
|
||||||
import { isError } from '@polkadot/util';
|
import { isError, objectSpread } from '@polkadot/util';
|
||||||
|
|
||||||
import { RpcCoder } from '../coder';
|
import { RpcCoder } from '../coder';
|
||||||
import { healthChecker } from './Health';
|
import { healthChecker } from './Health';
|
||||||
@@ -36,20 +36,19 @@ const wellKnownChains = new Set(Object.values(WellKnownChain));
|
|||||||
const scClients = new WeakMap<ScProvider, ScClient>();
|
const scClients = new WeakMap<ScProvider, ScClient>();
|
||||||
|
|
||||||
export { WellKnownChain };
|
export { WellKnownChain };
|
||||||
|
|
||||||
export class ScProvider implements ProviderInterface {
|
export class ScProvider implements ProviderInterface {
|
||||||
readonly #coder: RpcCoder = new RpcCoder();
|
readonly #coder: RpcCoder = new RpcCoder();
|
||||||
readonly #spec: string | WellKnownChain;
|
readonly #spec: string | WellKnownChain;
|
||||||
readonly #sharedSandbox?: ScProvider;
|
readonly #sharedSandbox?: ScProvider;
|
||||||
readonly #subscriptions: Map<
|
readonly #subscriptions: Map<string, [ResponseCallback, { unsubscribeMethod: string; id: string | number }]> = new Map();
|
||||||
string,
|
|
||||||
[ResponseCallback, { unsubscribeMethod: string; id: string | number }]
|
|
||||||
> = new Map();
|
|
||||||
|
|
||||||
readonly #requests: Map<number, ResponseCallback> = new Map();
|
readonly #requests: Map<number, ResponseCallback> = new Map();
|
||||||
readonly #eventemitter: EventEmitter = new EventEmitter();
|
readonly #eventemitter: EventEmitter = new EventEmitter();
|
||||||
#chain: Promise<Chain> | null = null;
|
#chain: Promise<Chain> | null = null;
|
||||||
#isChainReady = false;
|
#isChainReady = false;
|
||||||
|
|
||||||
|
static WellKnownChain = WellKnownChain;
|
||||||
|
|
||||||
public constructor (spec: string | WellKnownChain, sharedSandbox?: ScProvider) {
|
public constructor (spec: string | WellKnownChain, sharedSandbox?: ScProvider) {
|
||||||
this.#spec = spec;
|
this.#spec = spec;
|
||||||
this.#sharedSandbox = sharedSandbox;
|
this.#sharedSandbox = sharedSandbox;
|
||||||
@@ -215,15 +214,14 @@ export class ScProvider implements ProviderInterface {
|
|||||||
this.#eventemitter.emit(isReady ? 'connected' : 'disconnected');
|
this.#eventemitter.emit(isReady ? 'connected' : 'disconnected');
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return objectSpread({}, chain, {
|
||||||
...chain,
|
|
||||||
remove: () => {
|
remove: () => {
|
||||||
hc.stop();
|
hc.stop();
|
||||||
chain.remove();
|
chain.remove();
|
||||||
cleanup();
|
cleanup();
|
||||||
},
|
},
|
||||||
sendJsonRpc: hc.sendJsonRpc.bind(hc)
|
sendJsonRpc: hc.sendJsonRpc.bind(hc)
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -252,10 +250,7 @@ export class ScProvider implements ProviderInterface {
|
|||||||
this.#eventemitter.emit('disconnected');
|
this.#eventemitter.emit('disconnected');
|
||||||
}
|
}
|
||||||
|
|
||||||
public on (
|
public on (type: ProviderInterfaceEmitted, sub: ProviderInterfaceEmitCb): () => void {
|
||||||
type: ProviderInterfaceEmitted,
|
|
||||||
sub: ProviderInterfaceEmitCb
|
|
||||||
): () => void {
|
|
||||||
// It's possible. Although, quite unlikely, that by the time that polkadot
|
// It's possible. Although, quite unlikely, that by the time that polkadot
|
||||||
// subscribes to the `connected` event, the Provider is already connected.
|
// subscribes to the `connected` event, the Provider is already connected.
|
||||||
// In that case, we must emit to let the consumer know that we are connected.
|
// In that case, we must emit to let the consumer know that we are connected.
|
||||||
@@ -305,12 +300,7 @@ export class ScProvider implements ProviderInterface {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async subscribe (
|
public async subscribe (type: string, method: string, params: any[], callback: ProviderInterfaceCallback): Promise<number | string> {
|
||||||
type: string,
|
|
||||||
method: string,
|
|
||||||
params: any[],
|
|
||||||
callback: ProviderInterfaceCallback
|
|
||||||
): Promise<number | string> {
|
|
||||||
if (!subscriptionUnsubscriptionMethods.has(method)) {
|
if (!subscriptionUnsubscriptionMethods.has(method)) {
|
||||||
throw new Error(`Unsupported subscribe method: ${method}`);
|
throw new Error(`Unsupported subscribe method: ${method}`);
|
||||||
}
|
}
|
||||||
@@ -337,11 +327,7 @@ export class ScProvider implements ProviderInterface {
|
|||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public unsubscribe (
|
public unsubscribe (type: string, method: string, id: number | string): Promise<boolean> {
|
||||||
type: string,
|
|
||||||
method: string,
|
|
||||||
id: number | string
|
|
||||||
): Promise<boolean> {
|
|
||||||
if (!this.isConnected) {
|
if (!this.isConnected) {
|
||||||
throw new Error('Provider is not connected');
|
throw new Error('Provider is not connected');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.1.1",
|
"version": "9.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
|
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
|
||||||
@@ -30,27 +30,27 @@
|
|||||||
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.cjs"
|
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.cjs"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.18.10",
|
"@babel/core": "^7.19.1",
|
||||||
"@babel/register": "^7.18.9",
|
"@babel/register": "^7.18.9",
|
||||||
"@babel/runtime": "^7.18.9",
|
"@babel/runtime": "^7.19.0",
|
||||||
"@polkadot/api": "9.1.1",
|
"@polkadot/api": "9.4.1",
|
||||||
"@polkadot/api-augment": "9.1.1",
|
"@polkadot/api-augment": "9.4.1",
|
||||||
"@polkadot/rpc-augment": "9.1.1",
|
"@polkadot/rpc-augment": "9.4.1",
|
||||||
"@polkadot/rpc-provider": "9.1.1",
|
"@polkadot/rpc-provider": "9.4.1",
|
||||||
"@polkadot/types": "9.1.1",
|
"@polkadot/types": "9.4.1",
|
||||||
"@polkadot/types-augment": "9.1.1",
|
"@polkadot/types-augment": "9.4.1",
|
||||||
"@polkadot/types-codec": "9.1.1",
|
"@polkadot/types-codec": "9.4.1",
|
||||||
"@polkadot/types-create": "9.1.1",
|
"@polkadot/types-create": "9.4.1",
|
||||||
"@polkadot/types-support": "9.1.1",
|
"@polkadot/types-support": "9.4.1",
|
||||||
"@polkadot/util": "^10.1.3",
|
"@polkadot/util": "^10.1.8",
|
||||||
"@polkadot/util-crypto": "^10.1.3",
|
"@polkadot/util-crypto": "^10.1.8",
|
||||||
"@polkadot/x-ws": "^10.1.3",
|
"@polkadot/x-ws": "^10.1.8",
|
||||||
"handlebars": "^4.7.7",
|
"handlebars": "^4.7.7",
|
||||||
"websocket": "^1.0.34",
|
"websocket": "^1.0.34",
|
||||||
"yargs": "^17.5.1"
|
"yargs": "^17.5.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/websocket": "^1.0.5",
|
"@types/websocket": "^1.0.5",
|
||||||
"@types/yargs": "^17.0.11"
|
"@types/yargs": "^17.0.12"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,48 @@ import { compareName, createImports, formatType, initMeta, readTemplate, setImpo
|
|||||||
const generateForMetaTemplate = Handlebars.compile(readTemplate('events'));
|
const generateForMetaTemplate = Handlebars.compile(readTemplate('events'));
|
||||||
|
|
||||||
// For babel itself we need some extra aliasing
|
// For babel itself we need some extra aliasing
|
||||||
const ALIAS = ['symbol'];
|
// Also avoid reserved words to prevent generating invalid TS
|
||||||
|
// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#reserved_words
|
||||||
|
const ALIAS = [
|
||||||
|
'symbol',
|
||||||
|
'break',
|
||||||
|
'case',
|
||||||
|
'catch',
|
||||||
|
'class',
|
||||||
|
'const',
|
||||||
|
'continue',
|
||||||
|
'debugger',
|
||||||
|
'default',
|
||||||
|
'delete',
|
||||||
|
'do',
|
||||||
|
'else',
|
||||||
|
'export',
|
||||||
|
'extends',
|
||||||
|
'false',
|
||||||
|
'finally',
|
||||||
|
'for',
|
||||||
|
'function',
|
||||||
|
'if',
|
||||||
|
'import',
|
||||||
|
'in',
|
||||||
|
'instanceof',
|
||||||
|
'new',
|
||||||
|
'null',
|
||||||
|
'return',
|
||||||
|
'static',
|
||||||
|
'super',
|
||||||
|
'switch',
|
||||||
|
'this',
|
||||||
|
'throw',
|
||||||
|
'true',
|
||||||
|
'try',
|
||||||
|
'typeof',
|
||||||
|
'var',
|
||||||
|
'void',
|
||||||
|
'while',
|
||||||
|
'with',
|
||||||
|
'yield'
|
||||||
|
];
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
function generateForMeta (meta: Metadata, dest: string, extraTypes: ExtraTypes, isStrict: boolean, customLookupDefinitions?: Definitions): void {
|
function generateForMeta (meta: Metadata, dest: string, extraTypes: ExtraTypes, isStrict: boolean, customLookupDefinitions?: Definitions): void {
|
||||||
|
|||||||
@@ -43,9 +43,10 @@ function tsExport (registry: Registry, definitions: Record<string, ModuleTypes>,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
function tsEnum (registry: Registry, definitions: Record<string, ModuleTypes>, { lookupIndex, name: enumName, sub }: TypeDef, imports: TypeImports): string {
|
function tsEnum (registry: Registry, definitions: Record<string, ModuleTypes>, { lookupIndex, name: enumName, sub }: TypeDef, imports: TypeImports, withShortcut = false): string {
|
||||||
setImports(definitions, imports, ['Enum']);
|
setImports(definitions, imports, ['Enum']);
|
||||||
|
|
||||||
|
const indent = withShortcut ? ' ' : '';
|
||||||
const named = (sub as TypeDef[]).filter(({ name }) => !!name && !name.startsWith('__Unused'));
|
const named = (sub as TypeDef[]).filter(({ name }) => !!name && !name.startsWith('__Unused'));
|
||||||
const keys = named.map((def): string => {
|
const keys = named.map((def): string => {
|
||||||
const { info, lookupName, name = '', type } = def;
|
const { info, lookupName, name = '', type } = def;
|
||||||
@@ -53,7 +54,7 @@ function tsEnum (registry: Registry, definitions: Record<string, ModuleTypes>, {
|
|||||||
const isComplex = [TypeDefInfo.Option, TypeDefInfo.Range, TypeDefInfo.RangeInclusive, TypeDefInfo.Result, TypeDefInfo.Struct, TypeDefInfo.Tuple, TypeDefInfo.Vec, TypeDefInfo.VecFixed].includes(info);
|
const isComplex = [TypeDefInfo.Option, TypeDefInfo.Range, TypeDefInfo.RangeInclusive, TypeDefInfo.Result, TypeDefInfo.Struct, TypeDefInfo.Tuple, TypeDefInfo.Vec, TypeDefInfo.VecFixed].includes(info);
|
||||||
const asGetter = type === 'Null' || info === TypeDefInfo.DoNotConstruct
|
const asGetter = type === 'Null' || info === TypeDefInfo.DoNotConstruct
|
||||||
? ''
|
? ''
|
||||||
: createGetter(definitions, `as${getter}`, lookupName || (isComplex ? formatType(registry, definitions, info === TypeDefInfo.Struct ? def : type, imports, false) : type), imports);
|
: createGetter(definitions, `as${getter}`, lookupName || (isComplex ? formatType(registry, definitions, info === TypeDefInfo.Struct ? def : type, imports, withShortcut) : type), imports);
|
||||||
const isGetter = info === TypeDefInfo.DoNotConstruct
|
const isGetter = info === TypeDefInfo.DoNotConstruct
|
||||||
? ''
|
? ''
|
||||||
: createGetter(definitions, `is${getter}`, 'boolean', imports);
|
: createGetter(definitions, `is${getter}`, 'boolean', imports);
|
||||||
@@ -74,18 +75,18 @@ function tsEnum (registry: Registry, definitions: Record<string, ModuleTypes>, {
|
|||||||
case TypeDefInfo.VecFixed:
|
case TypeDefInfo.VecFixed:
|
||||||
case TypeDefInfo.WrapperKeepOpaque:
|
case TypeDefInfo.WrapperKeepOpaque:
|
||||||
case TypeDefInfo.WrapperOpaque:
|
case TypeDefInfo.WrapperOpaque:
|
||||||
return `${isGetter}${asGetter}`;
|
return `${indent}${isGetter}${indent}${asGetter}`;
|
||||||
|
|
||||||
case TypeDefInfo.DoNotConstruct:
|
case TypeDefInfo.DoNotConstruct:
|
||||||
case TypeDefInfo.Null:
|
case TypeDefInfo.Null:
|
||||||
return `${isGetter}`;
|
return `${indent}${isGetter}`;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new Error(`Enum: ${enumName || 'undefined'}: Unhandled type ${TypeDefInfo[info]}, ${stringify(def)}`);
|
throw new Error(`Enum: ${enumName || 'undefined'}: Unhandled type ${TypeDefInfo[info]}, ${stringify(def)}`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return exportInterface(lookupIndex, enumName, 'Enum', `${keys.join('')} readonly type: ${named.map(({ name = '' }) => `'${stringPascalCase(name.replace(' ', '_'))}'`).join(' | ')};\n`);
|
return exportInterface(lookupIndex, enumName, 'Enum', `${keys.join('')} ${indent}readonly type: ${named.map(({ name = '' }) => `'${stringPascalCase(name.replace(' ', '_'))}'`).join(' | ')};\n`, withShortcut);
|
||||||
}
|
}
|
||||||
|
|
||||||
function tsInt (_: Registry, definitions: Record<string, ModuleTypes>, def: TypeDef, imports: TypeImports, type: 'Int' | 'UInt' = 'Int'): string {
|
function tsInt (_: Registry, definitions: Record<string, ModuleTypes>, def: TypeDef, imports: TypeImports, type: 'Int' | 'UInt' = 'Int'): string {
|
||||||
@@ -176,7 +177,9 @@ function tsStruct (registry: Registry, definitions: Record<string, ModuleTypes>,
|
|||||||
const keys = (sub as TypeDef[]).map((def): string => {
|
const keys = (sub as TypeDef[]).map((def): string => {
|
||||||
const fmtType = def.lookupName && def.name !== def.lookupName
|
const fmtType = def.lookupName && def.name !== def.lookupName
|
||||||
? def.lookupName
|
? def.lookupName
|
||||||
: formatType(registry, definitions, def, imports, false);
|
: def.info === TypeDefInfo.Enum
|
||||||
|
? `${tsEnum(registry, definitions, def, imports, true)} & Enum`
|
||||||
|
: formatType(registry, definitions, def, imports, false);
|
||||||
|
|
||||||
return createGetter(definitions, def.name, fmtType, imports);
|
return createGetter(definitions, def.name, fmtType, imports);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.1.1' };
|
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.4.1' };
|
||||||
|
|||||||
@@ -105,11 +105,13 @@ Handlebars.registerHelper({
|
|||||||
|
|
||||||
// helper to generate a `export interface <Name> extends <Base> {<Body>}
|
// helper to generate a `export interface <Name> extends <Base> {<Body>}
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export function exportInterface (lookupIndex = -1, name = '', base: string, body = ''): string {
|
export function exportInterface (lookupIndex = -1, name = '', base: string, body = '', withShortcut = false): string {
|
||||||
// * @description extends [[${base}]]
|
// * @description extends [[${base}]]
|
||||||
const doc = `/** @name ${name}${lookupIndex !== -1 ? ` (${lookupIndex})` : ''} */\n`;
|
const doc = withShortcut
|
||||||
|
? ''
|
||||||
|
: `/** @name ${name}${lookupIndex !== -1 ? ` (${lookupIndex})` : ''} */\n`;
|
||||||
|
|
||||||
return `${doc}export interface ${name} extends ${base} {${body.length ? '\n' : ''}${body}}`;
|
return `${doc}${withShortcut ? '' : `export interface ${name} extends ${base} `}{${body.length ? '\n' : ''}${body}${withShortcut ? ' ' : ''}}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function singleParamNotation (registry: Registry, wrapper: string, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean): string {
|
function singleParamNotation (registry: Registry, wrapper: string, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean): string {
|
||||||
|
|||||||
@@ -20,12 +20,12 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.1.1",
|
"version": "9.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.18.9",
|
"@babel/runtime": "^7.19.0",
|
||||||
"@polkadot/types": "9.1.1",
|
"@polkadot/types": "9.4.1",
|
||||||
"@polkadot/types-codec": "9.1.1",
|
"@polkadot/types-codec": "9.4.1",
|
||||||
"@polkadot/util": "^10.1.3"
|
"@polkadot/util": "^10.1.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,13 +5,13 @@
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
/**
|
/**
|
||||||
* Lookup80: kusama_runtime::ProxyType
|
* Lookup81: kusama_runtime::ProxyType
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeProxyType: {
|
KusamaRuntimeProxyType: {
|
||||||
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction', 'Society']
|
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction', 'Society']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup261: kusama_runtime::SessionKeys
|
* Lookup263: kusama_runtime::SessionKeys
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeSessionKeys: {
|
KusamaRuntimeSessionKeys: {
|
||||||
grandpa: 'SpFinalityGrandpaAppPublic',
|
grandpa: 'SpFinalityGrandpaAppPublic',
|
||||||
@@ -22,7 +22,7 @@ export default {
|
|||||||
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
|
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup335: kusama_runtime::OriginCaller
|
* Lookup338: kusama_runtime::OriginCaller
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeOriginCaller: {
|
KusamaRuntimeOriginCaller: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -129,7 +129,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup401: kusama_runtime::NposCompactSolution24
|
* Lookup404: kusama_runtime::NposCompactSolution24
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeNposCompactSolution24: {
|
KusamaRuntimeNposCompactSolution24: {
|
||||||
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
|
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
|
||||||
@@ -158,7 +158,7 @@ export default {
|
|||||||
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
|
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup777: kusama_runtime::Runtime
|
* Lookup779: kusama_runtime::Runtime
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeRuntime: 'Null'
|
KusamaRuntimeRuntime: 'Null'
|
||||||
};
|
};
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -10,7 +10,7 @@ import type { ITuple } from '@polkadot/types-codec/types';
|
|||||||
import type { PerU16 } from '@polkadot/types/interfaces/runtime';
|
import type { PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
declare module '@polkadot/types/lookup' {
|
declare module '@polkadot/types/lookup' {
|
||||||
/** @name KusamaRuntimeProxyType (80) */
|
/** @name KusamaRuntimeProxyType (81) */
|
||||||
interface KusamaRuntimeProxyType extends Enum {
|
interface KusamaRuntimeProxyType extends Enum {
|
||||||
readonly isAny: boolean;
|
readonly isAny: boolean;
|
||||||
readonly isNonTransfer: boolean;
|
readonly isNonTransfer: boolean;
|
||||||
@@ -23,7 +23,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society';
|
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeSessionKeys (261) */
|
/** @name KusamaRuntimeSessionKeys (263) */
|
||||||
interface KusamaRuntimeSessionKeys extends Struct {
|
interface KusamaRuntimeSessionKeys extends Struct {
|
||||||
readonly grandpa: SpFinalityGrandpaAppPublic;
|
readonly grandpa: SpFinalityGrandpaAppPublic;
|
||||||
readonly babe: SpConsensusBabeAppPublic;
|
readonly babe: SpConsensusBabeAppPublic;
|
||||||
@@ -33,7 +33,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
|
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeOriginCaller (335) */
|
/** @name KusamaRuntimeOriginCaller (338) */
|
||||||
interface KusamaRuntimeOriginCaller extends Enum {
|
interface KusamaRuntimeOriginCaller extends Enum {
|
||||||
readonly isSystem: boolean;
|
readonly isSystem: boolean;
|
||||||
readonly asSystem: FrameSupportDispatchRawOrigin;
|
readonly asSystem: FrameSupportDispatchRawOrigin;
|
||||||
@@ -49,7 +49,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'ParachainsOrigin' | 'XcmPallet';
|
readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'ParachainsOrigin' | 'XcmPallet';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeNposCompactSolution24 (401) */
|
/** @name KusamaRuntimeNposCompactSolution24 (404) */
|
||||||
interface KusamaRuntimeNposCompactSolution24 extends Struct {
|
interface KusamaRuntimeNposCompactSolution24 extends Struct {
|
||||||
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
|
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
|
||||||
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
|
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
|
||||||
@@ -77,7 +77,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeRuntime (777) */
|
/** @name KusamaRuntimeRuntime (779) */
|
||||||
type KusamaRuntimeRuntime = Null;
|
type KusamaRuntimeRuntime = Null;
|
||||||
|
|
||||||
} // declare module
|
} // declare module
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.1.1' };
|
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.4.1' };
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship';
|
|||||||
import type { AllowedSlots, BabeAuthorityWeight, BabeBlockWeight, BabeEpochConfiguration, BabeEquivocationProof, BabeGenesisConfiguration, BabeGenesisConfigurationV1, BabeWeight, Epoch, EpochAuthorship, MaybeRandomness, MaybeVrf, NextConfigDescriptor, NextConfigDescriptorV1, OpaqueKeyOwnershipProof, Randomness, RawBabePreDigest, RawBabePreDigestCompat, RawBabePreDigestPrimary, RawBabePreDigestPrimaryTo159, RawBabePreDigestSecondaryPlain, RawBabePreDigestSecondaryTo159, RawBabePreDigestSecondaryVRF, RawBabePreDigestTo159, SlotNumber, VrfData, VrfOutput, VrfProof } from '@polkadot/types/interfaces/babe';
|
import type { AllowedSlots, BabeAuthorityWeight, BabeBlockWeight, BabeEpochConfiguration, BabeEquivocationProof, BabeGenesisConfiguration, BabeGenesisConfigurationV1, BabeWeight, Epoch, EpochAuthorship, MaybeRandomness, MaybeVrf, NextConfigDescriptor, NextConfigDescriptorV1, OpaqueKeyOwnershipProof, Randomness, RawBabePreDigest, RawBabePreDigestCompat, RawBabePreDigestPrimary, RawBabePreDigestPrimaryTo159, RawBabePreDigestSecondaryPlain, RawBabePreDigestSecondaryTo159, RawBabePreDigestSecondaryVRF, RawBabePreDigestTo159, SlotNumber, VrfData, VrfOutput, VrfProof } from '@polkadot/types/interfaces/babe';
|
||||||
import type { AccountData, BalanceLock, BalanceLockTo212, BalanceStatus, Reasons, ReserveData, ReserveIdentifier, VestingSchedule, WithdrawReasons } from '@polkadot/types/interfaces/balances';
|
import type { AccountData, BalanceLock, BalanceLockTo212, BalanceStatus, Reasons, ReserveData, ReserveIdentifier, VestingSchedule, WithdrawReasons } from '@polkadot/types/interfaces/balances';
|
||||||
import type { BeefyAuthoritySet, BeefyCommitment, BeefyId, BeefyNextAuthoritySet, BeefyPayload, BeefyPayloadId, BeefySignedCommitment, MmrRootHash, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
import type { BeefyAuthoritySet, BeefyCommitment, BeefyId, BeefyNextAuthoritySet, BeefyPayload, BeefyPayloadId, BeefySignedCommitment, MmrRootHash, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
||||||
import type { BenchmarkConfig, BenchmarkList, BenchmarkMetadata, BenchmarkParameter } from '@polkadot/types/interfaces/benchmark';
|
import type { BenchmarkBatch, BenchmarkConfig, BenchmarkList, BenchmarkMetadata, BenchmarkParameter, BenchmarkResult } from '@polkadot/types/interfaces/benchmark';
|
||||||
import type { CheckInherentsResult, InherentData, InherentIdentifier } from '@polkadot/types/interfaces/blockbuilder';
|
import type { CheckInherentsResult, InherentData, InherentIdentifier } from '@polkadot/types/interfaces/blockbuilder';
|
||||||
import type { BridgeMessageId, BridgedBlockHash, BridgedBlockNumber, BridgedHeader, CallOrigin, ChainId, DeliveredMessages, DispatchFeePayment, InboundLaneData, InboundRelayer, InitializationData, LaneId, MessageData, MessageKey, MessageNonce, MessagesDeliveryProofOf, MessagesProofOf, OperatingMode, OutboundLaneData, OutboundMessageFee, OutboundPayload, Parameter, RelayerId, UnrewardedRelayer, UnrewardedRelayersState } from '@polkadot/types/interfaces/bridges';
|
import type { BridgeMessageId, BridgedBlockHash, BridgedBlockNumber, BridgedHeader, CallOrigin, ChainId, DeliveredMessages, DispatchFeePayment, InboundLaneData, InboundRelayer, InitializationData, LaneId, MessageData, MessageKey, MessageNonce, MessagesDeliveryProofOf, MessagesProofOf, OperatingMode, OutboundLaneData, OutboundMessageFee, OutboundPayload, Parameter, RelayerId, UnrewardedRelayer, UnrewardedRelayersState } from '@polkadot/types/interfaces/bridges';
|
||||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||||
@@ -24,7 +24,7 @@ import type { StatementKind } from '@polkadot/types/interfaces/claims';
|
|||||||
import type { CollectiveOrigin, MemberCount, ProposalIndex, Votes, VotesTo230 } from '@polkadot/types/interfaces/collective';
|
import type { CollectiveOrigin, MemberCount, ProposalIndex, Votes, VotesTo230 } from '@polkadot/types/interfaces/collective';
|
||||||
import type { AuthorityId, RawVRFOutput } from '@polkadot/types/interfaces/consensus';
|
import type { AuthorityId, RawVRFOutput } from '@polkadot/types/interfaces/consensus';
|
||||||
import type { AliveContractInfo, CodeHash, CodeSource, CodeUploadRequest, CodeUploadResult, CodeUploadResultValue, ContractCallFlags, ContractCallRequest, ContractExecResult, ContractExecResultOk, ContractExecResultResult, ContractExecResultSuccessTo255, ContractExecResultSuccessTo260, ContractExecResultTo255, ContractExecResultTo260, ContractExecResultTo267, ContractInfo, ContractInstantiateResult, ContractInstantiateResultTo267, ContractInstantiateResultTo299, ContractReturnFlags, ContractStorageKey, DeletedContract, ExecReturnValue, Gas, HostFnWeights, HostFnWeightsTo264, InstantiateRequest, InstantiateRequestV1, InstantiateRequestV2, InstantiateReturnValue, InstantiateReturnValueOk, InstantiateReturnValueTo267, InstructionWeights, Limits, LimitsTo264, PrefabWasmModule, RentProjection, Schedule, ScheduleTo212, ScheduleTo258, ScheduleTo264, SeedOf, StorageDeposit, TombstoneContractInfo, TrieId } from '@polkadot/types/interfaces/contracts';
|
import type { AliveContractInfo, CodeHash, CodeSource, CodeUploadRequest, CodeUploadResult, CodeUploadResultValue, ContractCallFlags, ContractCallRequest, ContractExecResult, ContractExecResultOk, ContractExecResultResult, ContractExecResultSuccessTo255, ContractExecResultSuccessTo260, ContractExecResultTo255, ContractExecResultTo260, ContractExecResultTo267, ContractInfo, ContractInstantiateResult, ContractInstantiateResultTo267, ContractInstantiateResultTo299, ContractReturnFlags, ContractStorageKey, DeletedContract, ExecReturnValue, Gas, HostFnWeights, HostFnWeightsTo264, InstantiateRequest, InstantiateRequestV1, InstantiateRequestV2, InstantiateReturnValue, InstantiateReturnValueOk, InstantiateReturnValueTo267, InstructionWeights, Limits, LimitsTo264, PrefabWasmModule, RentProjection, Schedule, ScheduleTo212, ScheduleTo258, ScheduleTo264, SeedOf, StorageDeposit, TombstoneContractInfo, TrieId } from '@polkadot/types/interfaces/contracts';
|
||||||
import type { ContractConstructorSpecLatest, ContractConstructorSpecV0, ContractConstructorSpecV1, ContractConstructorSpecV2, ContractConstructorSpecV3, ContractContractSpecV0, ContractContractSpecV1, ContractContractSpecV2, ContractContractSpecV3, ContractCryptoHasher, ContractDiscriminant, ContractDisplayName, ContractEventParamSpecLatest, ContractEventParamSpecV0, ContractEventParamSpecV2, ContractEventSpecLatest, ContractEventSpecV0, ContractEventSpecV1, ContractEventSpecV2, ContractLayoutArray, ContractLayoutCell, ContractLayoutEnum, ContractLayoutHash, ContractLayoutHashingStrategy, ContractLayoutKey, ContractLayoutStruct, ContractLayoutStructField, ContractMessageParamSpecLatest, ContractMessageParamSpecV0, ContractMessageParamSpecV2, ContractMessageSpecLatest, ContractMessageSpecV0, ContractMessageSpecV1, ContractMessageSpecV2, ContractMetadata, ContractMetadataLatest, ContractMetadataV0, ContractMetadataV1, ContractMetadataV2, ContractMetadataV3, ContractProject, ContractProjectContract, ContractProjectInfo, ContractProjectSource, ContractProjectV0, ContractSelector, ContractStorageLayout, ContractTypeSpec } from '@polkadot/types/interfaces/contractsAbi';
|
import type { ContractConstructorSpecLatest, ContractConstructorSpecV0, ContractConstructorSpecV1, ContractConstructorSpecV2, ContractConstructorSpecV3, ContractContractSpecV0, ContractContractSpecV1, ContractContractSpecV2, ContractContractSpecV3, ContractContractSpecV4, ContractCryptoHasher, ContractDiscriminant, ContractDisplayName, ContractEventParamSpecLatest, ContractEventParamSpecV0, ContractEventParamSpecV2, ContractEventSpecLatest, ContractEventSpecV0, ContractEventSpecV1, ContractEventSpecV2, ContractLayoutArray, ContractLayoutCell, ContractLayoutEnum, ContractLayoutHash, ContractLayoutHashingStrategy, ContractLayoutKey, ContractLayoutStruct, ContractLayoutStructField, ContractMessageParamSpecLatest, ContractMessageParamSpecV0, ContractMessageParamSpecV2, ContractMessageSpecLatest, ContractMessageSpecV0, ContractMessageSpecV1, ContractMessageSpecV2, ContractMetadata, ContractMetadataLatest, ContractMetadataV0, ContractMetadataV1, ContractMetadataV2, ContractMetadataV3, ContractMetadataV4, ContractProject, ContractProjectContract, ContractProjectInfo, ContractProjectSource, ContractProjectV0, ContractSelector, ContractStorageLayout, ContractTypeSpec } from '@polkadot/types/interfaces/contractsAbi';
|
||||||
import type { FundIndex, FundInfo, LastContribution, TrieIndex } from '@polkadot/types/interfaces/crowdloan';
|
import type { FundIndex, FundInfo, LastContribution, TrieIndex } from '@polkadot/types/interfaces/crowdloan';
|
||||||
import type { CollationInfo, CollationInfoV1, ConfigData, MessageId, OverweightIndex, PageCounter, PageIndexData } from '@polkadot/types/interfaces/cumulus';
|
import type { CollationInfo, CollationInfoV1, ConfigData, MessageId, OverweightIndex, PageCounter, PageIndexData } from '@polkadot/types/interfaces/cumulus';
|
||||||
import type { AccountVote, AccountVoteSplit, AccountVoteStandard, Conviction, Delegations, PreimageStatus, PreimageStatusAvailable, PriorLock, PropIndex, Proposal, ProxyState, ReferendumIndex, ReferendumInfo, ReferendumInfoFinished, ReferendumInfoTo239, ReferendumStatus, Tally, Voting, VotingDelegating, VotingDirect, VotingDirectVote } from '@polkadot/types/interfaces/democracy';
|
import type { AccountVote, AccountVoteSplit, AccountVoteStandard, Conviction, Delegations, PreimageStatus, PreimageStatusAvailable, PriorLock, PropIndex, Proposal, ProxyState, ReferendumIndex, ReferendumInfo, ReferendumInfoFinished, ReferendumInfoTo239, ReferendumStatus, Tally, Voting, VotingDelegating, VotingDirect, VotingDirectVote } from '@polkadot/types/interfaces/democracy';
|
||||||
@@ -52,7 +52,7 @@ import type { ProxyAnnouncement, ProxyDefinition, ProxyType } from '@polkadot/ty
|
|||||||
import type { AccountStatus, AccountValidity } from '@polkadot/types/interfaces/purchase';
|
import type { AccountStatus, AccountValidity } from '@polkadot/types/interfaces/purchase';
|
||||||
import type { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery';
|
import type { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery';
|
||||||
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
|
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
|
||||||
import type { AccountId, AccountId20, AccountId32, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, BlockNumberFor, BlockNumberOf, Call, CallHash, CallHashOf, ChangesTrieConfiguration, ChangesTrieSignal, CodecHash, Consensus, ConsensusEngineId, CrateVersion, Digest, DigestItem, EncodedJustification, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, H1024, H128, H160, H2048, H256, H32, H512, H64, Hash, Header, HeaderPartial, I32F32, Index, IndicesLookupSource, Justification, Justifications, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiAddress, MultiSigner, OpaqueCall, Origin, OriginCaller, PalletId, PalletVersion, PalletsOrigin, Pays, PerU16, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeDbWeight, Seal, SealV0, SignedBlock, SignedBlockWithJustification, SignedBlockWithJustifications, Slot, SlotDuration, StorageData, StorageInfo, StorageProof, TransactionInfo, TransactionLongevity, TransactionPriority, TransactionStorageProof, TransactionTag, U32F32, ValidatorId, ValidatorIdOf, Weight, WeightMultiplier } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, AccountId20, AccountId32, AccountId33, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, BlockNumberFor, BlockNumberOf, Call, CallHash, CallHashOf, ChangesTrieConfiguration, ChangesTrieSignal, CodecHash, Consensus, ConsensusEngineId, CrateVersion, Digest, DigestItem, EncodedJustification, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, H1024, H128, H160, H2048, H256, H32, H512, H64, Hash, Header, HeaderPartial, I32F32, Index, IndicesLookupSource, Justification, Justifications, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiAddress, MultiSigner, OpaqueCall, Origin, OriginCaller, PalletId, PalletVersion, PalletsOrigin, Pays, PerU16, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeDbWeight, Seal, SealV0, SignedBlock, SignedBlockWithJustification, SignedBlockWithJustifications, Slot, SlotDuration, StorageData, StorageInfo, StorageProof, TransactionInfo, TransactionLongevity, TransactionPriority, TransactionStorageProof, TransactionTag, U32F32, ValidatorId, ValidatorIdOf, Weight, WeightMultiplier } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { Si0Field, Si0LookupTypeId, Si0Path, Si0Type, Si0TypeDef, Si0TypeDefArray, Si0TypeDefBitSequence, Si0TypeDefCompact, Si0TypeDefComposite, Si0TypeDefPhantom, Si0TypeDefPrimitive, Si0TypeDefSequence, Si0TypeDefTuple, Si0TypeDefVariant, Si0TypeParameter, Si0Variant, Si1Field, Si1LookupTypeId, Si1Path, Si1Type, Si1TypeDef, Si1TypeDefArray, Si1TypeDefBitSequence, Si1TypeDefCompact, Si1TypeDefComposite, Si1TypeDefPrimitive, Si1TypeDefSequence, Si1TypeDefTuple, Si1TypeDefVariant, Si1TypeParameter, Si1Variant, SiField, SiLookupTypeId, SiPath, SiType, SiTypeDef, SiTypeDefArray, SiTypeDefBitSequence, SiTypeDefCompact, SiTypeDefComposite, SiTypeDefPrimitive, SiTypeDefSequence, SiTypeDefTuple, SiTypeDefVariant, SiTypeParameter, SiVariant } from '@polkadot/types/interfaces/scaleInfo';
|
import type { Si0Field, Si0LookupTypeId, Si0Path, Si0Type, Si0TypeDef, Si0TypeDefArray, Si0TypeDefBitSequence, Si0TypeDefCompact, Si0TypeDefComposite, Si0TypeDefPhantom, Si0TypeDefPrimitive, Si0TypeDefSequence, Si0TypeDefTuple, Si0TypeDefVariant, Si0TypeParameter, Si0Variant, Si1Field, Si1LookupTypeId, Si1Path, Si1Type, Si1TypeDef, Si1TypeDefArray, Si1TypeDefBitSequence, Si1TypeDefCompact, Si1TypeDefComposite, Si1TypeDefPrimitive, Si1TypeDefSequence, Si1TypeDefTuple, Si1TypeDefVariant, Si1TypeParameter, Si1Variant, SiField, SiLookupTypeId, SiPath, SiType, SiTypeDef, SiTypeDefArray, SiTypeDefBitSequence, SiTypeDefCompact, SiTypeDefComposite, SiTypeDefPrimitive, SiTypeDefSequence, SiTypeDefTuple, SiTypeDefVariant, SiTypeParameter, SiVariant } from '@polkadot/types/interfaces/scaleInfo';
|
||||||
import type { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, ScheduledTo254, TaskAddress } from '@polkadot/types/interfaces/scheduler';
|
import type { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, ScheduledTo254, TaskAddress } from '@polkadot/types/interfaces/scheduler';
|
||||||
import type { BeefyKey, FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys10, SessionKeys10B, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, SessionKeys6B, SessionKeys7, SessionKeys7B, SessionKeys8, SessionKeys8B, SessionKeys9, SessionKeys9B, ValidatorCount } from '@polkadot/types/interfaces/session';
|
import type { BeefyKey, FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys10, SessionKeys10B, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, SessionKeys6B, SessionKeys7, SessionKeys7B, SessionKeys8, SessionKeys8B, SessionKeys9, SessionKeys9B, ValidatorCount } from '@polkadot/types/interfaces/session';
|
||||||
@@ -78,6 +78,7 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
AccountId: AccountId;
|
AccountId: AccountId;
|
||||||
AccountId20: AccountId20;
|
AccountId20: AccountId20;
|
||||||
AccountId32: AccountId32;
|
AccountId32: AccountId32;
|
||||||
|
AccountId33: AccountId33;
|
||||||
AccountIdOf: AccountIdOf;
|
AccountIdOf: AccountIdOf;
|
||||||
AccountIndex: AccountIndex;
|
AccountIndex: AccountIndex;
|
||||||
AccountInfo: AccountInfo;
|
AccountInfo: AccountInfo;
|
||||||
@@ -155,10 +156,12 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
BeefyPayload: BeefyPayload;
|
BeefyPayload: BeefyPayload;
|
||||||
BeefyPayloadId: BeefyPayloadId;
|
BeefyPayloadId: BeefyPayloadId;
|
||||||
BeefySignedCommitment: BeefySignedCommitment;
|
BeefySignedCommitment: BeefySignedCommitment;
|
||||||
|
BenchmarkBatch: BenchmarkBatch;
|
||||||
BenchmarkConfig: BenchmarkConfig;
|
BenchmarkConfig: BenchmarkConfig;
|
||||||
BenchmarkList: BenchmarkList;
|
BenchmarkList: BenchmarkList;
|
||||||
BenchmarkMetadata: BenchmarkMetadata;
|
BenchmarkMetadata: BenchmarkMetadata;
|
||||||
BenchmarkParameter: BenchmarkParameter;
|
BenchmarkParameter: BenchmarkParameter;
|
||||||
|
BenchmarkResult: BenchmarkResult;
|
||||||
Bid: Bid;
|
Bid: Bid;
|
||||||
Bidder: Bidder;
|
Bidder: Bidder;
|
||||||
BidKind: BidKind;
|
BidKind: BidKind;
|
||||||
@@ -250,6 +253,7 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
ContractContractSpecV1: ContractContractSpecV1;
|
ContractContractSpecV1: ContractContractSpecV1;
|
||||||
ContractContractSpecV2: ContractContractSpecV2;
|
ContractContractSpecV2: ContractContractSpecV2;
|
||||||
ContractContractSpecV3: ContractContractSpecV3;
|
ContractContractSpecV3: ContractContractSpecV3;
|
||||||
|
ContractContractSpecV4: ContractContractSpecV4;
|
||||||
ContractCryptoHasher: ContractCryptoHasher;
|
ContractCryptoHasher: ContractCryptoHasher;
|
||||||
ContractDiscriminant: ContractDiscriminant;
|
ContractDiscriminant: ContractDiscriminant;
|
||||||
ContractDisplayName: ContractDisplayName;
|
ContractDisplayName: ContractDisplayName;
|
||||||
@@ -293,6 +297,7 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
ContractMetadataV1: ContractMetadataV1;
|
ContractMetadataV1: ContractMetadataV1;
|
||||||
ContractMetadataV2: ContractMetadataV2;
|
ContractMetadataV2: ContractMetadataV2;
|
||||||
ContractMetadataV3: ContractMetadataV3;
|
ContractMetadataV3: ContractMetadataV3;
|
||||||
|
ContractMetadataV4: ContractMetadataV4;
|
||||||
ContractProject: ContractProject;
|
ContractProject: ContractProject;
|
||||||
ContractProjectContract: ContractProjectContract;
|
ContractProjectContract: ContractProjectContract;
|
||||||
ContractProjectInfo: ContractProjectInfo;
|
ContractProjectInfo: ContractProjectInfo;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -20,17 +20,17 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.1.1",
|
"version": "9.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.18.9",
|
"@babel/runtime": "^7.19.0",
|
||||||
"@polkadot/util": "^10.1.3",
|
"@polkadot/util": "^10.1.8",
|
||||||
"@polkadot/x-bigint": "^10.1.3"
|
"@polkadot/x-bigint": "^10.1.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/types": "9.1.1",
|
"@polkadot/types": "9.4.1",
|
||||||
"@polkadot/types-augment": "9.1.1",
|
"@polkadot/types-augment": "9.4.1",
|
||||||
"@polkadot/types-support": "9.1.1",
|
"@polkadot/types-support": "9.4.1",
|
||||||
"@polkadot/util-crypto": "^10.1.3"
|
"@polkadot/util-crypto": "^10.1.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
import type { AnyNumber, Inspect, INumber, IU8a, Registry, UIntBitLength } from '../types';
|
import type { AnyNumber, Inspect, INumber, IU8a, Registry, UIntBitLength } from '../types';
|
||||||
|
|
||||||
import { BN, BN_BILLION, BN_HUNDRED, BN_MILLION, BN_QUINTILL, bnToBn, bnToHex, bnToU8a, formatBalance, formatNumber, hexToBn, isBn, isHex, isNumber, isString, isU8a, u8aToBn, u8aToNumber } from '@polkadot/util';
|
import { BN, BN_BILLION, BN_HUNDRED, BN_MILLION, BN_QUINTILL, bnToBn, bnToHex, bnToU8a, formatBalance, formatNumber, hexToBn, isBn, isFunction, isHex, isNumber, isObject, isString, isU8a, u8aToBn, u8aToNumber } from '@polkadot/util';
|
||||||
|
|
||||||
export const DEFAULT_UINT_BITS = 64;
|
export const DEFAULT_UINT_BITS = 64;
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ function toPercentage (value: BN, divisor: BN): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
function decodeAbstractInt (value: Exclude<AnyNumber, Uint8Array>, isNegative: boolean): string | number {
|
function decodeAbstractInt (value: Exclude<AnyNumber, Uint8Array> | Record<string, string>, isNegative: boolean): string | number {
|
||||||
if (isNumber(value)) {
|
if (isNumber(value)) {
|
||||||
if (!Number.isInteger(value) || value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER) {
|
if (!Number.isInteger(value) || value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER) {
|
||||||
throw new Error('Number needs to be an integer <= Number.MAX_SAFE_INTEGER, i.e. 2 ^ 53 - 1');
|
throw new Error('Number needs to be an integer <= Number.MAX_SAFE_INTEGER, i.e. 2 ^ 53 - 1');
|
||||||
@@ -44,9 +44,26 @@ function decodeAbstractInt (value: Exclude<AnyNumber, Uint8Array>, isNegative: b
|
|||||||
return value;
|
return value;
|
||||||
} else if (isBn(value)) {
|
} else if (isBn(value)) {
|
||||||
return value.toString();
|
return value.toString();
|
||||||
|
} else if (isObject(value) && !isFunction(value.toBn)) {
|
||||||
|
// Allow the construction from an object with a single top-level key. This means that
|
||||||
|
// single key objects can be treated equivalently to numbers, assuming they meet the
|
||||||
|
// specific requirements. (This is useful in Weights 1.5 where Objects are compact)
|
||||||
|
const keys = Object.keys(value);
|
||||||
|
|
||||||
|
if (keys.length !== 1) {
|
||||||
|
throw new Error('Unable to construct number from multi-key object');
|
||||||
|
}
|
||||||
|
|
||||||
|
const inner = value[keys[0]];
|
||||||
|
|
||||||
|
if (!isString(inner) && !isNumber(inner)) {
|
||||||
|
throw new Error('Unable to construct from object with non-string/non-number value');
|
||||||
|
}
|
||||||
|
|
||||||
|
return decodeAbstractInt(inner, isNegative);
|
||||||
}
|
}
|
||||||
|
|
||||||
return bnToBn(value).toString();
|
return bnToBn(value as bigint).toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -25,6 +25,17 @@ describe('Int', (): void => {
|
|||||||
).toEqual(-1234);
|
).toEqual(-1234);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('can construct via a single-entry struct', (): void => {
|
||||||
|
expect(
|
||||||
|
// @ts-expect-error We could receive these via JSON
|
||||||
|
new Int(registry, { ref_time: 1234 }).toNumber()
|
||||||
|
).toEqual(1234);
|
||||||
|
expect(
|
||||||
|
// @ts-expect-error We could receive these via JSON
|
||||||
|
() => new Int(registry, { ref_time: 1234, zoo: 4567 }).toNumber()
|
||||||
|
).toThrow(/Unable to construct number from/);
|
||||||
|
});
|
||||||
|
|
||||||
it('converts to Little Endian from the provided value', (): void => {
|
it('converts to Little Endian from the provided value', (): void => {
|
||||||
expect(
|
expect(
|
||||||
new Int(registry, -1234).toU8a()
|
new Int(registry, -1234).toU8a()
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ export function decodeVec<T extends Codec> (registry: Registry, result: T[], val
|
|||||||
const count = result.length;
|
const count = result.length;
|
||||||
|
|
||||||
for (let i = 0; i < count; i++) {
|
for (let i = 0; i < count; i++) {
|
||||||
|
// 26/08/2022 this is actually a false positive - after recent eslint upgdates
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||||
const entry = value[i];
|
const entry = value[i];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -66,4 +66,34 @@ describe('WrapperKeepOpaque', (): void => {
|
|||||||
outer: [new Uint8Array([4 << 2])]
|
outer: [new Uint8Array([4 << 2])]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('has a sane in-wrapper representation', (): void => {
|
||||||
|
const set = registry.createType(
|
||||||
|
'BTreeSet<OpaquePeerId>',
|
||||||
|
// prefix
|
||||||
|
'0x' +
|
||||||
|
// 4 items, 16 >> 2
|
||||||
|
'10' +
|
||||||
|
// opaque length
|
||||||
|
'9c' +
|
||||||
|
// bytes length
|
||||||
|
'98' + '0024080112201ce5f00ef6e89374afb625f1ae4c1546d31234e87e3c3f51a62b91dd6bfa57df' +
|
||||||
|
// repeat the same for the next 3...
|
||||||
|
'9c98002408011220876a7b4984f98006dc8d666e28b60de307309835d775e7755cc770328cdacf2e9c98002408011220c81bc1d7057a1511eb9496f056f6f53cdfe0e14c8bd5ffca47c70a8d76c1326d9c98002408011220dacde7714d8551f674b8bb4b54239383c76a2b286fa436e93b2b7eb226bf4de7'
|
||||||
|
);
|
||||||
|
const val = [...set.values()];
|
||||||
|
|
||||||
|
expect(val.map((v) => v.toHex())).toEqual([
|
||||||
|
'0x980024080112201ce5f00ef6e89374afb625f1ae4c1546d31234e87e3c3f51a62b91dd6bfa57df',
|
||||||
|
'0x98002408011220876a7b4984f98006dc8d666e28b60de307309835d775e7755cc770328cdacf2e',
|
||||||
|
'0x98002408011220c81bc1d7057a1511eb9496f056f6f53cdfe0e14c8bd5ffca47c70a8d76c1326d',
|
||||||
|
'0x98002408011220dacde7714d8551f674b8bb4b54239383c76a2b286fa436e93b2b7eb226bf4de7'
|
||||||
|
]);
|
||||||
|
expect(val.map((v) => v.toHuman())).toEqual([
|
||||||
|
'0x0024080112201ce5f00ef6e89374afb625f1ae4c1546d31234e87e3c3f51a62b91dd6bfa57df',
|
||||||
|
'0x002408011220876a7b4984f98006dc8d666e28b60de307309835d775e7755cc770328cdacf2e',
|
||||||
|
'0x002408011220c81bc1d7057a1511eb9496f056f6f53cdfe0e14c8bd5ffca47c70a8d76c1326d',
|
||||||
|
'0x002408011220dacde7714d8551f674b8bb4b54239383c76a2b286fa436e93b2b7eb226bf4de7'
|
||||||
|
]);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.1.1' };
|
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.4.1' };
|
||||||
|
|||||||
@@ -20,14 +20,14 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.1.1",
|
"version": "9.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.18.9",
|
"@babel/runtime": "^7.19.0",
|
||||||
"@polkadot/types-codec": "9.1.1",
|
"@polkadot/types-codec": "9.4.1",
|
||||||
"@polkadot/util": "^10.1.3"
|
"@polkadot/util": "^10.1.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/types": "9.1.1"
|
"@polkadot/types": "9.4.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '9.1.1' };
|
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '9.4.1' };
|
||||||
|
|||||||
@@ -8,11 +8,13 @@ import { isNumber, isUndefined, objectSpread, stringify } from '@polkadot/util';
|
|||||||
|
|
||||||
import { TypeDefInfo } from '../types';
|
import { TypeDefInfo } from '../types';
|
||||||
|
|
||||||
const stringIdentity = <T extends { toString: () => string }> (value: T): string => value.toString();
|
type ToString = { toString: () => string };
|
||||||
|
|
||||||
|
const stringIdentity = <T extends ToString> (value: T): string => value.toString();
|
||||||
|
|
||||||
const INFO_WRAP = ['BTreeMap', 'BTreeSet', 'Compact', 'HashMap', 'Option', 'Result', 'Vec'];
|
const INFO_WRAP = ['BTreeMap', 'BTreeSet', 'Compact', 'HashMap', 'Option', 'Result', 'Vec'];
|
||||||
|
|
||||||
export function paramsNotation <T> (outer: string, inner?: T | T[], transform: (_: T) => string = stringIdentity): string {
|
export function paramsNotation <T extends ToString> (outer: string, inner?: T | T[], transform: (_: T) => string = stringIdentity): string {
|
||||||
return `${outer}${
|
return `${outer}${
|
||||||
inner
|
inner
|
||||||
? `<${(Array.isArray(inner) ? inner : [inner]).map(transform).join(', ')}>`
|
? `<${(Array.isArray(inner) ? inner : [inner]).map(transform).join(', ')}>`
|
||||||
|
|||||||
@@ -20,14 +20,17 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.1.1",
|
"version": "9.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.18.9",
|
"@babel/runtime": "^7.19.0",
|
||||||
"@polkadot/networks": "^10.1.3",
|
"@polkadot/networks": "^10.1.8",
|
||||||
"@polkadot/types": "9.1.1",
|
"@polkadot/types": "9.4.1",
|
||||||
"@polkadot/types-codec": "9.1.1",
|
"@polkadot/types-codec": "9.4.1",
|
||||||
"@polkadot/types-create": "9.1.1",
|
"@polkadot/types-create": "9.4.1",
|
||||||
"@polkadot/util": "^10.1.3"
|
"@polkadot/util": "^10.1.8"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@polkadot/api": "9.4.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '9.1.1' };
|
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '9.4.1' };
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ const sharedTypes = {
|
|||||||
Keys: 'SessionKeys6',
|
Keys: 'SessionKeys6',
|
||||||
ProxyType: {
|
ProxyType: {
|
||||||
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction']
|
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction']
|
||||||
}
|
},
|
||||||
|
Weight: 'u64'
|
||||||
};
|
};
|
||||||
|
|
||||||
const addrIndicesTypes = {
|
const addrIndicesTypes = {
|
||||||
@@ -99,7 +100,7 @@ const versioned: OverrideVersionedType[] = [
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
minmax: [1046, 1050],
|
minmax: [1046, 1049],
|
||||||
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
||||||
CompactAssignments: 'CompactAssignmentsTo257',
|
CompactAssignments: 'CompactAssignmentsTo257',
|
||||||
DispatchInfo: 'DispatchInfoTo244',
|
DispatchInfo: 'DispatchInfoTo244',
|
||||||
@@ -113,7 +114,7 @@ const versioned: OverrideVersionedType[] = [
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
minmax: [1051, 1054],
|
minmax: [1050, 1054],
|
||||||
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
||||||
CompactAssignments: 'CompactAssignmentsTo257',
|
CompactAssignments: 'CompactAssignmentsTo257',
|
||||||
DispatchInfo: 'DispatchInfoTo244',
|
DispatchInfo: 'DispatchInfoTo244',
|
||||||
|
|||||||
@@ -23,7 +23,8 @@ const sharedTypes = {
|
|||||||
CancelProxy: 6,
|
CancelProxy: 6,
|
||||||
Auction: 7
|
Auction: 7
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
Weight: 'u64'
|
||||||
};
|
};
|
||||||
|
|
||||||
const addrAccountIdTypes = {
|
const addrAccountIdTypes = {
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user