Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
60652cdf22 | ||
|
|
a37045036e | ||
|
|
3887f6f836 | ||
|
|
fcdb31dc3c | ||
|
|
f4ee507a17 | ||
|
|
58881bc317 | ||
|
|
42d39a81e4 | ||
|
|
f818e334eb | ||
|
|
e861a0a4eb | ||
|
|
611ff12a3d | ||
|
|
9ac9d72082 | ||
|
|
aa30b39525 | ||
|
|
91161b95c3 | ||
|
|
9fe2798b70 | ||
|
|
f233671c27 | ||
|
|
29244d211b | ||
|
|
73b226b30b | ||
|
|
97c7625557 | ||
|
|
0e96488024 | ||
|
|
baf681e98d | ||
|
|
32c9580bfc | ||
|
|
aa09601e88 | ||
|
|
b9805cdc94 | ||
|
|
feb36d43a4 | ||
|
|
92c88d7c13 | ||
|
|
033fc4f480 | ||
|
|
4ca9670e4e | ||
|
|
8fee66c0fa | ||
|
|
9a3b5d7a2c | ||
|
|
f166431b02 | ||
|
|
088fdc6171 | ||
|
|
910c77fd39 | ||
|
|
dacf2875b7 | ||
|
|
cbcc79972a | ||
|
|
0faddf1df6 | ||
|
|
697c8b8e7a | ||
|
|
99403b8246 | ||
|
|
4b7e1003e0 | ||
|
|
5fd6d39aed | ||
|
|
cedb1afe6f | ||
|
|
4bff8e5158 | ||
|
|
474aedde34 | ||
|
|
a8d7566186 | ||
|
|
beb7b54e4a | ||
|
|
d08cc74aad | ||
|
|
27e4279c55 | ||
|
|
6cd2f3b386 | ||
|
|
472c971c5b | ||
|
|
d8756455c2 |
@@ -10,7 +10,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: jacogr/action-merge@d2d64b4545acd93b0a9575177d3d215ae3f92029
|
- uses: jacogr/action-merge@d2d64b4545acd93b0a9575177d3d215ae3f92029
|
||||||
with:
|
with:
|
||||||
checks: build,lint,test
|
checks: pr (build),pr (lint),pr (test)
|
||||||
labels: -auto
|
labels: -auto
|
||||||
strategy: squash
|
strategy: squash
|
||||||
token: ${{ secrets.GH_PAT_BOT }}
|
token: ${{ secrets.GH_PAT_BOT }}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
YARN_ENABLE_SCRIPTS: false
|
YARN_ENABLE_SCRIPTS: false
|
||||||
steps:
|
steps:
|
||||||
- uses: dessant/lock-threads@f1a42f0f44eb83361d617a014663e1a76cf282d2
|
- uses: dessant/lock-threads@c1b35aecc5cdb1a34539d14196df55838bb2f836
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GH_PAT_BOT }}
|
github-token: ${{ secrets.GH_PAT_BOT }}
|
||||||
issue-lock-inactive-days: '7'
|
issue-lock-inactive-days: '7'
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ on: [pull_request]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pr:
|
pr:
|
||||||
|
continue-on-error: true
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
step: ['lint', 'test', 'build', 'deno']
|
step: ['lint', 'test', 'build', 'deno']
|
||||||
name: ${{ matrix.step }}
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
YARN_ENABLE_SCRIPTS: false
|
YARN_ENABLE_SCRIPTS: false
|
||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 'lts/*'
|
node-version: 'lts/*'
|
||||||
- uses: denoland/setup-deno@004814556e37c54a2f6e31384c9e18e983317366
|
- uses: denoland/setup-deno@v1
|
||||||
with:
|
with:
|
||||||
deno-version: vx.x.x
|
deno-version: vx.x.x
|
||||||
- name: ${{ matrix.step }}
|
- name: ${{ matrix.step }}
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
step: ['build:release']
|
step: ['build:release']
|
||||||
name: ${{ matrix.step }}
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
YARN_ENABLE_SCRIPTS: false
|
YARN_ENABLE_SCRIPTS: false
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
YARN_ENABLE_SCRIPTS: false
|
YARN_ENABLE_SCRIPTS: false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@98ed4cb500039dbcccf4bd9bedada4d0187f2757
|
- uses: actions/stale@v7
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GH_PAT_BOT }}
|
repo-token: ${{ secrets.GH_PAT_BOT }}
|
||||||
stale-issue-message: 'This issue has been open for 21 days with no activity and is not labelled as an enhancement. It will be closed in 7 days.'
|
stale-issue-message: 'This issue has been open for 365 days with no activity and is not labelled as an enhancement. It will be closed in 7 days.'
|
||||||
stale-issue-label: 'stale'
|
stale-issue-label: 'stale'
|
||||||
exempt-issue-labels: '-size-l,-size-m,-size-s,-size-xl,-size-xs,[bug]'
|
exempt-issue-labels: '-size-l,-size-m,-size-s,-size-xl,-size-xs,[bug]'
|
||||||
days-before-stale: 21
|
days-before-stale: 365
|
||||||
days-before-close: 7
|
days-before-close: 7
|
||||||
|
|||||||
@@ -1,5 +1,42 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 10.1.2 Mar 11, 2023
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Adjust type exports to remove invalid generated exports from `/src/`
|
||||||
|
- Apply missing `/*#__PURE__*/` exports in `api-derive`
|
||||||
|
|
||||||
|
|
||||||
|
## 10.1.1 Mar 11, 2023
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Fix yargs usage inside ESM modules (Thanks to https://github.com/conr2d)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Align runtime APIs with latest Substrate
|
||||||
|
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||||
|
- Use consistent `.js` imports in source files (TS moduleResolution)
|
||||||
|
|
||||||
|
|
||||||
|
## 10.0.1 Mar 4, 2023
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Expose per-endpoint stats for providers (Thanks to https://github.com/jeluard)
|
||||||
|
- Adjust ink! primitive extraction for v4 (Thanks to https://github.com/statictype)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Ensure that provider disconnect clears all subscriptions
|
||||||
|
- Adjust typegen to internally use `import()` (catering for ESM provided types)
|
||||||
|
- Swap TS -> JS compiler to use tsc (from babel)
|
||||||
|
- Adjust all tests to use `node:test` runner (ESM variants)
|
||||||
|
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||||
|
|
||||||
|
|
||||||
## 9.14.2 Feb 19, 2023
|
## 9.14.2 Feb 19, 2023
|
||||||
|
|
||||||
Changes:
|
Changes:
|
||||||
|
|||||||
+4
-3
@@ -1,4 +1,4 @@
|
|||||||
3374 Jaco 9.14.2 (#5500)
|
3396 Jaco 10.1.2 (#5535)
|
||||||
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
|
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
|
||||||
37 Keith Ingram Update contract types and rpc (#4541)
|
37 Keith Ingram Update contract types and rpc (#4541)
|
||||||
35 Stefanie Doll Updated child storage parameters (#1709)
|
35 Stefanie Doll Updated child storage parameters (#1709)
|
||||||
@@ -10,16 +10,16 @@
|
|||||||
10 Axel Chalon Make Enum/Tuple constructor use value directly if instance (#1954)
|
10 Axel Chalon Make Enum/Tuple constructor use value directly if instance (#1954)
|
||||||
5 Chevdor Fix metadata package link (#3458)
|
5 Chevdor Fix metadata package link (#3458)
|
||||||
5 Jake Naviasky Fixing approvalFlagsToBools. (#1250)
|
5 Jake Naviasky Fixing approvalFlagsToBools. (#1250)
|
||||||
|
5 Julien Eluard General WsProvider extensibility improvements (#5467)
|
||||||
4 Alex D Use derive customAccount and customLocks for balance overrides (#3248)
|
4 Alex D Use derive customAccount and customLocks for balance overrides (#3248)
|
||||||
4 Alex Wang fix issue that creates duplicate providers (#983)
|
4 Alex Wang fix issue that creates duplicate providers (#983)
|
||||||
4 Alexander Popiak Add asset id in signing (#4009)
|
4 Alexander Popiak Add asset id in signing (#4009)
|
||||||
|
4 Andreea Eftene add type overrides (#5506)
|
||||||
4 Joshy Orndorff spelling; efect -> effect (#2295)
|
4 Joshy Orndorff spelling; efect -> effect (#2295)
|
||||||
4 Julien Eluard Clarified WsProvider constructor parameters documentation (#5404)
|
|
||||||
4 Nantian fix bigint type (#3869)
|
4 Nantian fix bigint type (#3869)
|
||||||
4 Scott Twiname Add support for historical BlockNumber rpc methods (#4574)
|
4 Scott Twiname Add support for historical BlockNumber rpc methods (#4574)
|
||||||
4 Thibaut Sardan no subscription for http (#3127)
|
4 Thibaut Sardan no subscription for http (#3127)
|
||||||
3 André Silva add support for ValidationCodeHash (#3640)
|
3 André Silva add support for ValidationCodeHash (#3640)
|
||||||
3 Andreea Eftene Fix code source type (#5236)
|
|
||||||
3 Antoine Estienne Adapted to display moonbeam author (#3108)
|
3 Antoine Estienne Adapted to display moonbeam author (#3108)
|
||||||
3 Arjan Zijderveld Added `Emergency` to `ElectionPhase` (#3707)
|
3 Arjan Zijderveld Added `Emergency` to `ElectionPhase` (#3707)
|
||||||
3 Ewa Kowalska Handle no council for bounties proposals (#3062)
|
3 Ewa Kowalska Handle no council for bounties proposals (#3062)
|
||||||
@@ -70,6 +70,7 @@
|
|||||||
1 Hyungsuk Kang Update fees.ts (#1014)
|
1 Hyungsuk Kang Update fees.ts (#1014)
|
||||||
1 icodezjb Update SessionKeys (#3035)
|
1 icodezjb Update SessionKeys (#3035)
|
||||||
1 iiiiiiii Make unknownTypes externally accessible (#3263)
|
1 iiiiiiii Make unknownTypes externally accessible (#3263)
|
||||||
|
1 Jeeyong Um Fix inaccessible yargs instance error (#5531)
|
||||||
1 JesseAbram added 07 Example showing how to make a transfer with allowed block permissions folder in docs (#1062)
|
1 JesseAbram added 07 Example showing how to make a transfer with allowed block permissions folder in docs (#1062)
|
||||||
1 Joey don't throw error at `onSocketClose` (#4363)
|
1 Joey don't throw error at `onSocketClose` (#4363)
|
||||||
1 Jordan Allow typegen for custom RPCs (#2876)
|
1 Jordan Allow typegen for custom RPCs (#2876)
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
module.exports = require('@polkadot/dev/config/babel-config-cjs.cjs');
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
const config = require('@polkadot/dev/config/jest.cjs');
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
...config,
|
|
||||||
moduleNameMapper: {
|
|
||||||
'@polkadot/api-(augment|base|contract|derive)(.*)$': '<rootDir>/packages/api-$1/src/$2',
|
|
||||||
// eslint-disable-next-line sort-keys
|
|
||||||
'@polkadot/api(.*)$': '<rootDir>/packages/api/src/$1',
|
|
||||||
'@polkadot/rpc-(augment|core|provider)(.*)$': '<rootDir>/packages/rpc-$1/src/$2',
|
|
||||||
'@polkadot/typegen(.*)$': '<rootDir>/packages/typegen/src/$1',
|
|
||||||
'@polkadot/types-(augment|codec|create|known|support)(.*)$': '<rootDir>/packages/types-$1/src/$2',
|
|
||||||
// eslint-disable-next-line sort-keys
|
|
||||||
'@polkadot/types(.*)$': '<rootDir>/packages/types/src/$1'
|
|
||||||
},
|
|
||||||
testTimeout: 30000
|
|
||||||
};
|
|
||||||
+9
-13
@@ -11,18 +11,18 @@
|
|||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.2",
|
"version": "10.1.2",
|
||||||
"versions": {
|
"versions": {
|
||||||
"git": "9.14.2",
|
"git": "10.1.2",
|
||||||
"npm": "9.14.2"
|
"npm": "10.1.2"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "yarn build:interfaces && polkadot-dev-build-ts",
|
"build": "yarn build:interfaces && polkadot-dev-build-ts",
|
||||||
"build:extra": "(cd packages/typegen && copyfiles scripts/* build)",
|
"build:before": "(cd packages/typegen && polkadot-dev-copy-dir scripts build/scripts)",
|
||||||
"build:interfaces": "polkadot-types-internal-interfaces",
|
"build:interfaces": "node --loader @polkadot/dev/node/ts packages/typegen/scripts/polkadot-types-internal-interfaces.mjs",
|
||||||
"build:metadata": "yarn build:interfaces && polkadot-dev-run-test packages/types/src/metadata/v14",
|
"build:metadata": "yarn build:interfaces && polkadot-dev-run-test packages/types/src/metadata/v14",
|
||||||
"build:release": "polkadot-ci-ghact-build",
|
"build:release": "polkadot-ci-ghact-build",
|
||||||
"build:rollup": "polkadot-exec-rollup --config",
|
"build:rollup": "polkadot-exec-rollup --config",
|
||||||
@@ -32,18 +32,14 @@
|
|||||||
"deno": "yarn polkadot-dev-deno-map && yarn build && deno check --import-map=import_map.json mod.ts",
|
"deno": "yarn polkadot-dev-deno-map && yarn build && deno check --import-map=import_map.json mod.ts",
|
||||||
"lint": "polkadot-dev-run-lint",
|
"lint": "polkadot-dev-run-lint",
|
||||||
"postinstall": "polkadot-dev-yarn-only",
|
"postinstall": "polkadot-dev-yarn-only",
|
||||||
"test": "polkadot-dev-run-test --env jest --coverage --forceExit --runInBand ^e2e",
|
"test": "polkadot-dev-run-test --env node ^e2e",
|
||||||
"test:node": "polkadot-dev-run-test --env node ^e2e",
|
"test:node": "polkadot-dev-run-test --env node ^e2e",
|
||||||
"test:one": "polkadot-dev-run-test --detectOpenHandles --forceExit"
|
"test:one": "polkadot-dev-run-test --env node"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.20.12",
|
"@polkadot/dev": "^0.71.5",
|
||||||
"@babel/register": "^7.18.9",
|
|
||||||
"@babel/runtime": "^7.20.13",
|
|
||||||
"@polkadot/dev": "^0.68.38",
|
|
||||||
"@polkadot/typegen": "workspace:packages/typegen",
|
"@polkadot/typegen": "workspace:packages/typegen",
|
||||||
"@types/jest": "^29.4.0",
|
"@types/node": "^18.15.0"
|
||||||
"copyfiles": "^2.4.1"
|
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"typescript": "^4.9.5"
|
"typescript": "^4.9.5"
|
||||||
|
|||||||
@@ -20,15 +20,15 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.2",
|
"version": "10.1.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.13",
|
"@polkadot/api-base": "10.1.2",
|
||||||
"@polkadot/api-base": "9.14.2",
|
"@polkadot/rpc-augment": "10.1.2",
|
||||||
"@polkadot/rpc-augment": "9.14.2",
|
"@polkadot/types": "10.1.2",
|
||||||
"@polkadot/types": "9.14.2",
|
"@polkadot/types-augment": "10.1.2",
|
||||||
"@polkadot/types-augment": "9.14.2",
|
"@polkadot/types-codec": "10.1.2",
|
||||||
"@polkadot/types-codec": "9.14.2",
|
"@polkadot/util": "^11.0.2",
|
||||||
"@polkadot/util": "^10.4.2"
|
"tslib": "^2.5.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import './substrate';
|
import './substrate/index.js';
|
||||||
|
|
||||||
export { packageInfo } from './packageInfo';
|
export { packageInfo } from './packageInfo.js';
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
import { detectPackage } from '@polkadot/util';
|
import { detectPackage } from '@polkadot/util';
|
||||||
|
|
||||||
import others from './detectOther';
|
import others from './detectOther.js';
|
||||||
import { packageInfo } from './packageInfo';
|
import { packageInfo } from './packageInfo.js';
|
||||||
|
|
||||||
detectPackage(packageInfo, null, others);
|
detectPackage(packageInfo, null, others);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import './detectPackage';
|
import './detectPackage.js';
|
||||||
|
|
||||||
export * from './bundle';
|
export * from './bundle.js';
|
||||||
|
|||||||
@@ -1120,6 +1120,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* pool at a time.
|
* pool at a time.
|
||||||
**/
|
**/
|
||||||
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Bonding extra is restricted to the exact pending reward amount.
|
||||||
|
**/
|
||||||
|
BondExtraRestricted: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The pools state cannot be changed.
|
* The pools state cannot be changed.
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
|
|||||||
import type { ITuple } from '@polkadot/types-codec/types';
|
import type { ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||||
|
|
||||||
@@ -496,7 +496,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* New authority set has been applied.
|
* New authority set has been applied.
|
||||||
**/
|
**/
|
||||||
NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>>], { authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>> }>;
|
NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>], { authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>> }>;
|
||||||
/**
|
/**
|
||||||
* Current authority set has been paused.
|
* Current authority set has been paused.
|
||||||
**/
|
**/
|
||||||
@@ -757,7 +757,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* The roles of a pool have been updated to the given new roles. Note that the depositor
|
* The roles of a pool have been updated to the given new roles. Note that the depositor
|
||||||
* can never change.
|
* can never change.
|
||||||
**/
|
**/
|
||||||
RolesUpdated: AugmentedEvent<ApiType, [root: Option<AccountId32>, stateToggler: Option<AccountId32>, nominator: Option<AccountId32>], { root: Option<AccountId32>, stateToggler: Option<AccountId32>, nominator: Option<AccountId32> }>;
|
RolesUpdated: AugmentedEvent<ApiType, [root: Option<AccountId32>, bouncer: Option<AccountId32>, nominator: Option<AccountId32>], { root: Option<AccountId32>, bouncer: Option<AccountId32>, nominator: Option<AccountId32> }>;
|
||||||
/**
|
/**
|
||||||
* The state of a pool has changed
|
* The state of a pool has changed
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import '../base';
|
import '../base.js';
|
||||||
import './consts';
|
import './consts.js';
|
||||||
import './errors';
|
import './errors.js';
|
||||||
import './events';
|
import './events.js';
|
||||||
import './query';
|
import './query.js';
|
||||||
import './registry';
|
import './registry.js';
|
||||||
import './runtime';
|
import './runtime.js';
|
||||||
import './tx';
|
import './tx.js';
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool,
|
|||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotPrimitivesVstagingExecutorParams, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotPrimitivesVstagingExecutorParams, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||||
import type { Observable } from '@polkadot/types/types';
|
import type { Observable } from '@polkadot/types/types';
|
||||||
|
|
||||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||||
@@ -151,6 +151,17 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* epoch.
|
* epoch.
|
||||||
**/
|
**/
|
||||||
segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* A list of the last 100 skipped epochs and the corresponding session index
|
||||||
|
* when the epoch was skipped.
|
||||||
|
*
|
||||||
|
* This is only used for validating equivocation proofs. An equivocation proof
|
||||||
|
* must contains a key-ownership proof for a given session, therefore we need a
|
||||||
|
* way to tie together sessions and epoch indices, i.e. we need to validate that
|
||||||
|
* a validator was the owner of a given key on a given session, and what the
|
||||||
|
* active epoch index was during that session.
|
||||||
|
**/
|
||||||
|
skippedEpochs: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u64, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
|
* TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
|
||||||
**/
|
**/
|
||||||
@@ -958,6 +969,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Storage for bonded pools.
|
* Storage for bonded pools.
|
||||||
**/
|
**/
|
||||||
bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* Map from a pool member account to their opted claim permission.
|
||||||
|
**/
|
||||||
|
claimPermissions: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletNominationPoolsClaimPermission>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* Counter for the related counted storage map
|
* Counter for the related counted storage map
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-b
|
|||||||
import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec';
|
import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||||
import type { ValidatorSet } from '@polkadot/types/interfaces/beefy';
|
import type { BeefyEquivocationProof, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
||||||
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
||||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||||
@@ -17,9 +17,10 @@ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
|||||||
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
||||||
|
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||||
import type { CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
import type { CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
||||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||||
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
||||||
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
||||||
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
||||||
@@ -84,8 +85,20 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0x49eaaf1b548a0cb0/1 */
|
/** 0x49eaaf1b548a0cb0/2 */
|
||||||
beefyApi: {
|
beefyApi: {
|
||||||
|
/**
|
||||||
|
* Return the block number where BEEFY consensus is enabled/started
|
||||||
|
**/
|
||||||
|
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<BlockNumber>>>;
|
||||||
|
/**
|
||||||
|
* Generates a proof of key ownership for the given authority in the given set.
|
||||||
|
**/
|
||||||
|
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: ValidatorSetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
||||||
|
/**
|
||||||
|
* Submits an unsigned extrinsic to report an equivocation.
|
||||||
|
**/
|
||||||
|
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BeefyEquivocationProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||||
/**
|
/**
|
||||||
* Return the current active BEEFY validator set
|
* Return the current active BEEFY validator set
|
||||||
**/
|
**/
|
||||||
@@ -171,7 +184,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0x91d5df18b0d2cf58/1 */
|
/** 0x91d5df18b0d2cf58/2 */
|
||||||
mmrApi: {
|
mmrApi: {
|
||||||
/**
|
/**
|
||||||
* Generate MMR proof for a series of leaves under given indices.
|
* Generate MMR proof for a series of leaves under given indices.
|
||||||
@@ -208,10 +221,18 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
};
|
};
|
||||||
/** 0x17a6bc0d0062aeb3/1 */
|
/** 0x17a6bc0d0062aeb3/1 */
|
||||||
nominationPoolsApi: {
|
nominationPoolsApi: {
|
||||||
|
/**
|
||||||
|
* Returns the equivalent points of `new_funds` for a given pool.
|
||||||
|
**/
|
||||||
|
balanceToPoints: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, newFunds: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||||
/**
|
/**
|
||||||
* Returns the pending rewards for the given member.
|
* Returns the pending rewards for the given member.
|
||||||
**/
|
**/
|
||||||
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
||||||
|
/**
|
||||||
|
* Returns the equivalent balance of `points` for a given pool.
|
||||||
|
**/
|
||||||
|
pointsToBalance: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, points: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||||
/**
|
/**
|
||||||
* Generic call
|
* Generic call
|
||||||
**/
|
**/
|
||||||
@@ -322,6 +343,17 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
|
/** 0x18ef58a3b67ba770/1 */
|
||||||
|
stakingApi: {
|
||||||
|
/**
|
||||||
|
* Returns the nominations quota for a nominator with a given balance.
|
||||||
|
**/
|
||||||
|
nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
|
||||||
|
/**
|
||||||
|
* Generic call
|
||||||
|
**/
|
||||||
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
|
};
|
||||||
/** 0xd2bc9897eed08f15/3 */
|
/** 0xd2bc9897eed08f15/3 */
|
||||||
taggedTransactionQueue: {
|
taggedTransactionQueue: {
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64,
|
|||||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, 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, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||||
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
||||||
@@ -1663,7 +1663,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* against the extracted offender. If both are valid, the offence
|
* against the extracted offender. If both are valid, the offence
|
||||||
* will be reported.
|
* will be reported.
|
||||||
**/
|
**/
|
||||||
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
||||||
/**
|
/**
|
||||||
* Report voter equivocation/misbehavior. This method will verify the
|
* Report voter equivocation/misbehavior. This method will verify the
|
||||||
* equivocation proof and validate the given key ownership proof
|
* equivocation proof and validate the given key ownership proof
|
||||||
@@ -1675,7 +1675,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* if the block author is defined it will be defined as the equivocation
|
* if the block author is defined it will be defined as the equivocation
|
||||||
* reporter.
|
* reporter.
|
||||||
**/
|
**/
|
||||||
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -2381,8 +2381,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* accumulated rewards, see [`BondExtra`].
|
* accumulated rewards, see [`BondExtra`].
|
||||||
*
|
*
|
||||||
* Bonding extra funds implies an automatic payout of all pending rewards as well.
|
* Bonding extra funds implies an automatic payout of all pending rewards as well.
|
||||||
|
* See `bond_extra_other` to bond pending rewards of `other` members.
|
||||||
**/
|
**/
|
||||||
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | { FreeBalance: any } | { Rewards: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
|
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | { FreeBalance: any } | { Rewards: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
|
||||||
|
/**
|
||||||
|
* `origin` bonds funds from `extra` for some pool member `member` into their respective
|
||||||
|
* pools.
|
||||||
|
*
|
||||||
|
* `origin` can bond extra funds from free balance or pending rewards when `origin ==
|
||||||
|
* other`.
|
||||||
|
*
|
||||||
|
* In the case of `origin != other`, `origin` can only bond extra pending rewards of
|
||||||
|
* `other` members assuming set_claim_permission for the given member is
|
||||||
|
* `PermissionlessAll` or `PermissionlessCompound`.
|
||||||
|
**/
|
||||||
|
bondExtraOther: AugmentedSubmittable<(member: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, extra: PalletNominationPoolsBondExtra | { FreeBalance: any } | { Rewards: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletNominationPoolsBondExtra]>;
|
||||||
/**
|
/**
|
||||||
* Chill on behalf of the pool.
|
* Chill on behalf of the pool.
|
||||||
*
|
*
|
||||||
@@ -2400,8 +2413,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
||||||
* members in the pools stake. Rewards do not "expire".
|
* members in the pools stake. Rewards do not "expire".
|
||||||
|
*
|
||||||
|
* See `claim_payout_other` to caim rewards on bahalf of some `other` pool member.
|
||||||
**/
|
**/
|
||||||
claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
|
/**
|
||||||
|
* `origin` can claim payouts on some pool member `other`'s behalf.
|
||||||
|
*
|
||||||
|
* Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order
|
||||||
|
* for this call to be successful.
|
||||||
|
**/
|
||||||
|
claimPayoutOther: AugmentedSubmittable<(other: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* Create a new delegation pool.
|
* Create a new delegation pool.
|
||||||
*
|
*
|
||||||
@@ -2414,14 +2436,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* creating multiple pools in the same extrinsic.
|
* creating multiple pools in the same extrinsic.
|
||||||
* * `root` - The account to set as [`PoolRoles::root`].
|
* * `root` - The account to set as [`PoolRoles::root`].
|
||||||
* * `nominator` - The account to set as the [`PoolRoles::nominator`].
|
* * `nominator` - The account to set as the [`PoolRoles::nominator`].
|
||||||
* * `state_toggler` - The account to set as the [`PoolRoles::state_toggler`].
|
* * `bouncer` - The account to set as the [`PoolRoles::bouncer`].
|
||||||
*
|
*
|
||||||
* # Note
|
* # Note
|
||||||
*
|
*
|
||||||
* In addition to `amount`, the caller will transfer the existential deposit; so the caller
|
* In addition to `amount`, the caller will transfer the existential deposit; so the caller
|
||||||
* needs at have at least `amount + existential_deposit` transferrable.
|
* needs at have at least `amount + existential_deposit` transferrable.
|
||||||
**/
|
**/
|
||||||
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress]>;
|
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, bouncer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Create a new delegation pool with a previously used pool id
|
* Create a new delegation pool with a previously used pool id
|
||||||
*
|
*
|
||||||
@@ -2430,7 +2452,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* same as `create` with the inclusion of
|
* same as `create` with the inclusion of
|
||||||
* * `pool_id` - `A valid PoolId.
|
* * `pool_id` - `A valid PoolId.
|
||||||
**/
|
**/
|
||||||
createWithPoolId: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress, u32]>;
|
createWithPoolId: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, bouncer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress, u32]>;
|
||||||
/**
|
/**
|
||||||
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
||||||
* pools account and immediately increases the pools bond.
|
* pools account and immediately increases the pools bond.
|
||||||
@@ -2463,6 +2485,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* they attempt to unbond.
|
* they attempt to unbond.
|
||||||
**/
|
**/
|
||||||
poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
||||||
|
/**
|
||||||
|
* Allows a pool member to set a claim permission to allow or disallow permissionless
|
||||||
|
* bonding and withdrawing.
|
||||||
|
*
|
||||||
|
* By default, this is `Permissioned`, which implies only the pool member themselves can
|
||||||
|
* claim their pending rewards. If a pool member wishes so, they can set this to
|
||||||
|
* `PermissionlessAll` to allow any account to claim their rewards and bond extra to the
|
||||||
|
* pool.
|
||||||
|
*
|
||||||
|
* # Arguments
|
||||||
|
*
|
||||||
|
* * `origin` - Member of a pool.
|
||||||
|
* * `actor` - Account to claim reward. // improve this
|
||||||
|
**/
|
||||||
|
setClaimPermission: AugmentedSubmittable<(permission: PalletNominationPoolsClaimPermission | 'Permissioned' | 'PermissionlessCompound' | 'PermissionlessWithdraw' | 'PermissionlessAll' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsClaimPermission]>;
|
||||||
/**
|
/**
|
||||||
* Update configurations for the nomination pools. The origin for this call must be
|
* Update configurations for the nomination pools. The origin for this call must be
|
||||||
* Root.
|
* Root.
|
||||||
@@ -2479,7 +2516,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Set a new metadata for the pool.
|
* Set a new metadata for the pool.
|
||||||
*
|
*
|
||||||
* The dispatch origin of this call must be signed by the state toggler, or the root role
|
* The dispatch origin of this call must be signed by the bouncer, or the root role
|
||||||
* of the pool.
|
* of the pool.
|
||||||
**/
|
**/
|
||||||
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
||||||
@@ -2491,7 +2528,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* The dispatch origin of this call must be either:
|
* The dispatch origin of this call must be either:
|
||||||
*
|
*
|
||||||
* 1. signed by the state toggler, or the root role of the pool,
|
* 1. signed by the bouncer, or the root role of the pool,
|
||||||
* 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
|
* 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
|
||||||
* then the state of the pool can be permissionlessly changed to `Destroying`.
|
* then the state of the pool can be permissionlessly changed to `Destroying`.
|
||||||
**/
|
**/
|
||||||
@@ -2506,8 +2543,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* # Conditions for a permissionless dispatch.
|
* # Conditions for a permissionless dispatch.
|
||||||
*
|
*
|
||||||
* * The pool is blocked and the caller is either the root or state-toggler. This is
|
* * The pool is blocked and the caller is either the root or bouncer. This is refereed to
|
||||||
* refereed to as a kick.
|
* as a kick.
|
||||||
* * The pool is destroying and the member is not the depositor.
|
* * The pool is destroying and the member is not the depositor.
|
||||||
* * The pool is destroying, the member is the depositor and no other members are in the
|
* * The pool is destroying, the member is the depositor and no other members are in the
|
||||||
* pool.
|
* pool.
|
||||||
@@ -2539,7 +2576,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* It emits an event, notifying UIs of the role change. This event is quite relevant to
|
* It emits an event, notifying UIs of the role change. This event is quite relevant to
|
||||||
* most pool members and they should be informed of changes to pool roles.
|
* most pool members and they should be informed of changes to pool roles.
|
||||||
**/
|
**/
|
||||||
updateRoles: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newRoot: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, newNominator: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, newStateToggler: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32]>;
|
updateRoles: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newRoot: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, newNominator: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, newBouncer: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32]>;
|
||||||
/**
|
/**
|
||||||
* Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an
|
* Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an
|
||||||
* error is returned.
|
* error is returned.
|
||||||
@@ -2551,7 +2588,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* * The pool is in destroy mode and the target is not the depositor.
|
* * The pool is in destroy mode and the target is not the depositor.
|
||||||
* * The target is the depositor and they are the only member in the sub pools.
|
* * The target is the depositor and they are the only member in the sub pools.
|
||||||
* * The pool is blocked and the caller is either the root or state-toggler.
|
* * The pool is blocked and the caller is either the root or bouncer.
|
||||||
*
|
*
|
||||||
* # Conditions for permissioned dispatch
|
* # Conditions for permissioned dispatch
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './index';
|
export * from './index.js';
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.14.2' };
|
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '10.1.2' };
|
||||||
|
|||||||
@@ -860,6 +860,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* pool at a time.
|
* pool at a time.
|
||||||
**/
|
**/
|
||||||
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Bonding extra is restricted to the exact pending reward amount.
|
||||||
|
**/
|
||||||
|
BondExtraRestricted: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The pools state cannot be changed.
|
* The pools state cannot be changed.
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
|
|||||||
import type { ITuple } from '@polkadot/types-codec/types';
|
import type { ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, H256, Perbill } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, H256, Perbill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||||
|
|
||||||
@@ -395,7 +395,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* New authority set has been applied.
|
* New authority set has been applied.
|
||||||
**/
|
**/
|
||||||
NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>>], { authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>> }>;
|
NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>], { authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>> }>;
|
||||||
/**
|
/**
|
||||||
* Current authority set has been paused.
|
* Current authority set has been paused.
|
||||||
**/
|
**/
|
||||||
@@ -574,7 +574,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* The roles of a pool have been updated to the given new roles. Note that the depositor
|
* The roles of a pool have been updated to the given new roles. Note that the depositor
|
||||||
* can never change.
|
* can never change.
|
||||||
**/
|
**/
|
||||||
RolesUpdated: AugmentedEvent<ApiType, [root: Option<AccountId32>, stateToggler: Option<AccountId32>, nominator: Option<AccountId32>], { root: Option<AccountId32>, stateToggler: Option<AccountId32>, nominator: Option<AccountId32> }>;
|
RolesUpdated: AugmentedEvent<ApiType, [root: Option<AccountId32>, bouncer: Option<AccountId32>, nominator: Option<AccountId32>], { root: Option<AccountId32>, bouncer: Option<AccountId32>, nominator: Option<AccountId32> }>;
|
||||||
/**
|
/**
|
||||||
* The state of a pool has changed
|
* The state of a pool has changed
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import '../base';
|
import '../base.js';
|
||||||
import './consts';
|
import './consts.js';
|
||||||
import './errors';
|
import './errors.js';
|
||||||
import './events';
|
import './events.js';
|
||||||
import './query';
|
import './query.js';
|
||||||
import './registry';
|
import './registry.js';
|
||||||
import './runtime';
|
import './runtime.js';
|
||||||
import './tx';
|
import './tx.js';
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool,
|
|||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotPrimitivesVstagingExecutorParams, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotPrimitivesVstagingExecutorParams, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||||
import type { Observable } from '@polkadot/types/types';
|
import type { Observable } from '@polkadot/types/types';
|
||||||
|
|
||||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||||
@@ -151,6 +151,17 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* epoch.
|
* epoch.
|
||||||
**/
|
**/
|
||||||
segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* A list of the last 100 skipped epochs and the corresponding session index
|
||||||
|
* when the epoch was skipped.
|
||||||
|
*
|
||||||
|
* This is only used for validating equivocation proofs. An equivocation proof
|
||||||
|
* must contains a key-ownership proof for a given session, therefore we need a
|
||||||
|
* way to tie together sessions and epoch indices, i.e. we need to validate that
|
||||||
|
* a validator was the owner of a given key on a given session, and what the
|
||||||
|
* active epoch index was during that session.
|
||||||
|
**/
|
||||||
|
skippedEpochs: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u64, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
|
* TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
|
||||||
**/
|
**/
|
||||||
@@ -802,6 +813,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Storage for bonded pools.
|
* Storage for bonded pools.
|
||||||
**/
|
**/
|
||||||
bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* Map from a pool member account to their opted claim permission.
|
||||||
|
**/
|
||||||
|
claimPermissions: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletNominationPoolsClaimPermission>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* Counter for the related counted storage map
|
* Counter for the related counted storage map
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-b
|
|||||||
import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec';
|
import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||||
import type { ValidatorSet } from '@polkadot/types/interfaces/beefy';
|
import type { BeefyEquivocationProof, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
||||||
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
||||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||||
@@ -17,9 +17,10 @@ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
|||||||
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
||||||
|
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||||
import type { CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
import type { CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
||||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||||
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
||||||
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
||||||
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
||||||
@@ -84,8 +85,20 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0x49eaaf1b548a0cb0/1 */
|
/** 0x49eaaf1b548a0cb0/2 */
|
||||||
beefyApi: {
|
beefyApi: {
|
||||||
|
/**
|
||||||
|
* Return the block number where BEEFY consensus is enabled/started
|
||||||
|
**/
|
||||||
|
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<BlockNumber>>>;
|
||||||
|
/**
|
||||||
|
* Generates a proof of key ownership for the given authority in the given set.
|
||||||
|
**/
|
||||||
|
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: ValidatorSetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
||||||
|
/**
|
||||||
|
* Submits an unsigned extrinsic to report an equivocation.
|
||||||
|
**/
|
||||||
|
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BeefyEquivocationProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||||
/**
|
/**
|
||||||
* Return the current active BEEFY validator set
|
* Return the current active BEEFY validator set
|
||||||
**/
|
**/
|
||||||
@@ -171,7 +184,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0x91d5df18b0d2cf58/1 */
|
/** 0x91d5df18b0d2cf58/2 */
|
||||||
mmrApi: {
|
mmrApi: {
|
||||||
/**
|
/**
|
||||||
* Generate MMR proof for a series of leaves under given indices.
|
* Generate MMR proof for a series of leaves under given indices.
|
||||||
@@ -208,10 +221,18 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
};
|
};
|
||||||
/** 0x17a6bc0d0062aeb3/1 */
|
/** 0x17a6bc0d0062aeb3/1 */
|
||||||
nominationPoolsApi: {
|
nominationPoolsApi: {
|
||||||
|
/**
|
||||||
|
* Returns the equivalent points of `new_funds` for a given pool.
|
||||||
|
**/
|
||||||
|
balanceToPoints: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, newFunds: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||||
/**
|
/**
|
||||||
* Returns the pending rewards for the given member.
|
* Returns the pending rewards for the given member.
|
||||||
**/
|
**/
|
||||||
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
||||||
|
/**
|
||||||
|
* Returns the equivalent balance of `points` for a given pool.
|
||||||
|
**/
|
||||||
|
pointsToBalance: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, points: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||||
/**
|
/**
|
||||||
* Generic call
|
* Generic call
|
||||||
**/
|
**/
|
||||||
@@ -322,6 +343,17 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
|
/** 0x18ef58a3b67ba770/1 */
|
||||||
|
stakingApi: {
|
||||||
|
/**
|
||||||
|
* Returns the nominations quota for a nominator with a given balance.
|
||||||
|
**/
|
||||||
|
nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
|
||||||
|
/**
|
||||||
|
* Generic call
|
||||||
|
**/
|
||||||
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
|
};
|
||||||
/** 0xd2bc9897eed08f15/3 */
|
/** 0xd2bc9897eed08f15/3 */
|
||||||
taggedTransactionQueue: {
|
taggedTransactionQueue: {
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64,
|
|||||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportPreimagesBounded, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
import type { FrameSupportPreimagesBounded, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||||
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
||||||
@@ -1371,7 +1371,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* against the extracted offender. If both are valid, the offence
|
* against the extracted offender. If both are valid, the offence
|
||||||
* will be reported.
|
* will be reported.
|
||||||
**/
|
**/
|
||||||
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
||||||
/**
|
/**
|
||||||
* Report voter equivocation/misbehavior. This method will verify the
|
* Report voter equivocation/misbehavior. This method will verify the
|
||||||
* equivocation proof and validate the given key ownership proof
|
* equivocation proof and validate the given key ownership proof
|
||||||
@@ -1383,7 +1383,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* if the block author is defined it will be defined as the equivocation
|
* if the block author is defined it will be defined as the equivocation
|
||||||
* reporter.
|
* reporter.
|
||||||
**/
|
**/
|
||||||
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -1941,8 +1941,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* accumulated rewards, see [`BondExtra`].
|
* accumulated rewards, see [`BondExtra`].
|
||||||
*
|
*
|
||||||
* Bonding extra funds implies an automatic payout of all pending rewards as well.
|
* Bonding extra funds implies an automatic payout of all pending rewards as well.
|
||||||
|
* See `bond_extra_other` to bond pending rewards of `other` members.
|
||||||
**/
|
**/
|
||||||
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | { FreeBalance: any } | { Rewards: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
|
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | { FreeBalance: any } | { Rewards: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
|
||||||
|
/**
|
||||||
|
* `origin` bonds funds from `extra` for some pool member `member` into their respective
|
||||||
|
* pools.
|
||||||
|
*
|
||||||
|
* `origin` can bond extra funds from free balance or pending rewards when `origin ==
|
||||||
|
* other`.
|
||||||
|
*
|
||||||
|
* In the case of `origin != other`, `origin` can only bond extra pending rewards of
|
||||||
|
* `other` members assuming set_claim_permission for the given member is
|
||||||
|
* `PermissionlessAll` or `PermissionlessCompound`.
|
||||||
|
**/
|
||||||
|
bondExtraOther: AugmentedSubmittable<(member: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, extra: PalletNominationPoolsBondExtra | { FreeBalance: any } | { Rewards: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletNominationPoolsBondExtra]>;
|
||||||
/**
|
/**
|
||||||
* Chill on behalf of the pool.
|
* Chill on behalf of the pool.
|
||||||
*
|
*
|
||||||
@@ -1960,8 +1973,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
||||||
* members in the pools stake. Rewards do not "expire".
|
* members in the pools stake. Rewards do not "expire".
|
||||||
|
*
|
||||||
|
* See `claim_payout_other` to caim rewards on bahalf of some `other` pool member.
|
||||||
**/
|
**/
|
||||||
claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
|
/**
|
||||||
|
* `origin` can claim payouts on some pool member `other`'s behalf.
|
||||||
|
*
|
||||||
|
* Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order
|
||||||
|
* for this call to be successful.
|
||||||
|
**/
|
||||||
|
claimPayoutOther: AugmentedSubmittable<(other: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* Create a new delegation pool.
|
* Create a new delegation pool.
|
||||||
*
|
*
|
||||||
@@ -1974,14 +1996,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* creating multiple pools in the same extrinsic.
|
* creating multiple pools in the same extrinsic.
|
||||||
* * `root` - The account to set as [`PoolRoles::root`].
|
* * `root` - The account to set as [`PoolRoles::root`].
|
||||||
* * `nominator` - The account to set as the [`PoolRoles::nominator`].
|
* * `nominator` - The account to set as the [`PoolRoles::nominator`].
|
||||||
* * `state_toggler` - The account to set as the [`PoolRoles::state_toggler`].
|
* * `bouncer` - The account to set as the [`PoolRoles::bouncer`].
|
||||||
*
|
*
|
||||||
* # Note
|
* # Note
|
||||||
*
|
*
|
||||||
* In addition to `amount`, the caller will transfer the existential deposit; so the caller
|
* In addition to `amount`, the caller will transfer the existential deposit; so the caller
|
||||||
* needs at have at least `amount + existential_deposit` transferrable.
|
* needs at have at least `amount + existential_deposit` transferrable.
|
||||||
**/
|
**/
|
||||||
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress]>;
|
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, bouncer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Create a new delegation pool with a previously used pool id
|
* Create a new delegation pool with a previously used pool id
|
||||||
*
|
*
|
||||||
@@ -1990,7 +2012,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* same as `create` with the inclusion of
|
* same as `create` with the inclusion of
|
||||||
* * `pool_id` - `A valid PoolId.
|
* * `pool_id` - `A valid PoolId.
|
||||||
**/
|
**/
|
||||||
createWithPoolId: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress, u32]>;
|
createWithPoolId: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, bouncer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress, u32]>;
|
||||||
/**
|
/**
|
||||||
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
||||||
* pools account and immediately increases the pools bond.
|
* pools account and immediately increases the pools bond.
|
||||||
@@ -2023,6 +2045,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* they attempt to unbond.
|
* they attempt to unbond.
|
||||||
**/
|
**/
|
||||||
poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
||||||
|
/**
|
||||||
|
* Allows a pool member to set a claim permission to allow or disallow permissionless
|
||||||
|
* bonding and withdrawing.
|
||||||
|
*
|
||||||
|
* By default, this is `Permissioned`, which implies only the pool member themselves can
|
||||||
|
* claim their pending rewards. If a pool member wishes so, they can set this to
|
||||||
|
* `PermissionlessAll` to allow any account to claim their rewards and bond extra to the
|
||||||
|
* pool.
|
||||||
|
*
|
||||||
|
* # Arguments
|
||||||
|
*
|
||||||
|
* * `origin` - Member of a pool.
|
||||||
|
* * `actor` - Account to claim reward. // improve this
|
||||||
|
**/
|
||||||
|
setClaimPermission: AugmentedSubmittable<(permission: PalletNominationPoolsClaimPermission | 'Permissioned' | 'PermissionlessCompound' | 'PermissionlessWithdraw' | 'PermissionlessAll' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsClaimPermission]>;
|
||||||
/**
|
/**
|
||||||
* Update configurations for the nomination pools. The origin for this call must be
|
* Update configurations for the nomination pools. The origin for this call must be
|
||||||
* Root.
|
* Root.
|
||||||
@@ -2039,7 +2076,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Set a new metadata for the pool.
|
* Set a new metadata for the pool.
|
||||||
*
|
*
|
||||||
* The dispatch origin of this call must be signed by the state toggler, or the root role
|
* The dispatch origin of this call must be signed by the bouncer, or the root role
|
||||||
* of the pool.
|
* of the pool.
|
||||||
**/
|
**/
|
||||||
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
||||||
@@ -2051,7 +2088,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* The dispatch origin of this call must be either:
|
* The dispatch origin of this call must be either:
|
||||||
*
|
*
|
||||||
* 1. signed by the state toggler, or the root role of the pool,
|
* 1. signed by the bouncer, or the root role of the pool,
|
||||||
* 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
|
* 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
|
||||||
* then the state of the pool can be permissionlessly changed to `Destroying`.
|
* then the state of the pool can be permissionlessly changed to `Destroying`.
|
||||||
**/
|
**/
|
||||||
@@ -2066,8 +2103,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* # Conditions for a permissionless dispatch.
|
* # Conditions for a permissionless dispatch.
|
||||||
*
|
*
|
||||||
* * The pool is blocked and the caller is either the root or state-toggler. This is
|
* * The pool is blocked and the caller is either the root or bouncer. This is refereed to
|
||||||
* refereed to as a kick.
|
* as a kick.
|
||||||
* * The pool is destroying and the member is not the depositor.
|
* * The pool is destroying and the member is not the depositor.
|
||||||
* * The pool is destroying, the member is the depositor and no other members are in the
|
* * The pool is destroying, the member is the depositor and no other members are in the
|
||||||
* pool.
|
* pool.
|
||||||
@@ -2099,7 +2136,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* It emits an event, notifying UIs of the role change. This event is quite relevant to
|
* It emits an event, notifying UIs of the role change. This event is quite relevant to
|
||||||
* most pool members and they should be informed of changes to pool roles.
|
* most pool members and they should be informed of changes to pool roles.
|
||||||
**/
|
**/
|
||||||
updateRoles: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newRoot: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, newNominator: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, newStateToggler: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32]>;
|
updateRoles: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newRoot: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, newNominator: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, newBouncer: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32]>;
|
||||||
/**
|
/**
|
||||||
* Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an
|
* Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an
|
||||||
* error is returned.
|
* error is returned.
|
||||||
@@ -2111,7 +2148,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* * The pool is in destroy mode and the target is not the depositor.
|
* * The pool is in destroy mode and the target is not the depositor.
|
||||||
* * The target is the depositor and they are the only member in the sub pools.
|
* * The target is the depositor and they are the only member in the sub pools.
|
||||||
* * The pool is blocked and the caller is either the root or state-toggler.
|
* * The pool is blocked and the caller is either the root or bouncer.
|
||||||
*
|
*
|
||||||
* # Conditions for permissioned dispatch
|
* # Conditions for permissioned dispatch
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -965,6 +965,33 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
|
salary: {
|
||||||
|
/**
|
||||||
|
* The total budget per cycle.
|
||||||
|
*
|
||||||
|
* This may change over the course of a cycle without any problem.
|
||||||
|
**/
|
||||||
|
budget: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The number of blocks within a cycle which accounts have to claim the payout.
|
||||||
|
*
|
||||||
|
* The number of blocks between sequential payout cycles is the sum of this and
|
||||||
|
* `RegistrationPeriod`.
|
||||||
|
**/
|
||||||
|
payoutPeriod: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The number of blocks within a cycle which accounts have to register their intent to
|
||||||
|
* claim.
|
||||||
|
*
|
||||||
|
* The number of blocks between sequential payout cycles is the sum of this and
|
||||||
|
* `PayoutPeriod`.
|
||||||
|
**/
|
||||||
|
registrationPeriod: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic const
|
||||||
|
**/
|
||||||
|
[key: string]: Codec;
|
||||||
|
};
|
||||||
scheduler: {
|
scheduler: {
|
||||||
/**
|
/**
|
||||||
* The maximum weight that may be scheduled per block for any dispatchables.
|
* The maximum weight that may be scheduled per block for any dispatchables.
|
||||||
|
|||||||
@@ -475,6 +475,9 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
RandomSubjectTooLong: AugmentedError<ApiType>;
|
RandomSubjectTooLong: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* A call tried to invoke a contract that is flagged as non-reentrant.
|
* A call tried to invoke a contract that is flagged as non-reentrant.
|
||||||
|
* The only other cause is that a call from a contract into the runtime tried to call back
|
||||||
|
* into `pallet-contracts`. This would make the whole pallet reentrant with regard to
|
||||||
|
* contract code execution which is not supported.
|
||||||
**/
|
**/
|
||||||
ReentranceDenied: AugmentedError<ApiType>;
|
ReentranceDenied: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -886,6 +889,18 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
|
glutton: {
|
||||||
|
/**
|
||||||
|
* The pallet was already initialized.
|
||||||
|
*
|
||||||
|
* Set `witness_count` to `Some` to bypass this error.
|
||||||
|
**/
|
||||||
|
AlreadyInitialized: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic error
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedError<ApiType>;
|
||||||
|
};
|
||||||
grandpa: {
|
grandpa: {
|
||||||
/**
|
/**
|
||||||
* Attempt to signal GRANDPA change with one already pending.
|
* Attempt to signal GRANDPA change with one already pending.
|
||||||
@@ -1100,6 +1115,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The message is queued for future execution.
|
* The message is queued for future execution.
|
||||||
**/
|
**/
|
||||||
Queued: AugmentedError<ApiType>;
|
Queued: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* This message is temporarily unprocessable.
|
||||||
|
*
|
||||||
|
* Such errors are expected, but not guaranteed, to resolve themselves eventually through
|
||||||
|
* retrying.
|
||||||
|
**/
|
||||||
|
TemporarilyUnprocessable: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic error
|
* Generic error
|
||||||
**/
|
**/
|
||||||
@@ -1320,6 +1342,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The duration provided should be less than or equal to `MaxDeadlineDuration`.
|
* The duration provided should be less than or equal to `MaxDeadlineDuration`.
|
||||||
**/
|
**/
|
||||||
WrongDuration: AugmentedError<ApiType>;
|
WrongDuration: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The provided namespace isn't supported in this call.
|
||||||
|
**/
|
||||||
|
WrongNamespace: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The extrinsic was sent by the wrong origin.
|
* The extrinsic was sent by the wrong origin.
|
||||||
**/
|
**/
|
||||||
@@ -1414,6 +1440,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* pool at a time.
|
* pool at a time.
|
||||||
**/
|
**/
|
||||||
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Bonding extra is restricted to the exact pending reward amount.
|
||||||
|
**/
|
||||||
|
BondExtraRestricted: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The pools state cannot be changed.
|
* The pools state cannot be changed.
|
||||||
**/
|
**/
|
||||||
@@ -1824,6 +1854,65 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
|
salary: {
|
||||||
|
/**
|
||||||
|
* The account is already inducted.
|
||||||
|
**/
|
||||||
|
AlreadyInducted: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The salary system has already been started.
|
||||||
|
**/
|
||||||
|
AlreadyStarted: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* There is no budget left for the payout.
|
||||||
|
**/
|
||||||
|
Bankrupt: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The member's claim is zero.
|
||||||
|
**/
|
||||||
|
ClaimZero: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The payment has neither failed nor succeeded yet.
|
||||||
|
**/
|
||||||
|
Inconclusive: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The member does not have a current valid claim.
|
||||||
|
**/
|
||||||
|
NoClaim: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The cycle is after that in which the payment was made.
|
||||||
|
**/
|
||||||
|
NotCurrent: AugmentedError<ApiType>;
|
||||||
|
NotInducted: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The account is not a ranked member.
|
||||||
|
**/
|
||||||
|
NotMember: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The payout cycles have not yet started.
|
||||||
|
**/
|
||||||
|
NotStarted: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Cycle is not yet over.
|
||||||
|
**/
|
||||||
|
NotYet: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* There was some issue with the mechanism of payment.
|
||||||
|
**/
|
||||||
|
PayError: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Current cycle's payment period is not yet begun.
|
||||||
|
**/
|
||||||
|
TooEarly: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Current cycle's registration period is over.
|
||||||
|
**/
|
||||||
|
TooLate: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic error
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedError<ApiType>;
|
||||||
|
};
|
||||||
scheduler: {
|
scheduler: {
|
||||||
/**
|
/**
|
||||||
* Failed to schedule a call
|
* Failed to schedule a call
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
|||||||
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { ITuple } from '@polkadot/types-codec/types';
|
import type { ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMessageQueueMockHelpersMessageOrigin, PalletMultisigTimepoint, PalletNftsPriceWithDirection, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||||
|
|
||||||
@@ -130,6 +130,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* Some asset `asset_id` was frozen.
|
* Some asset `asset_id` was frozen.
|
||||||
**/
|
**/
|
||||||
AssetFrozen: AugmentedEvent<ApiType, [assetId: u32], { assetId: u32 }>;
|
AssetFrozen: AugmentedEvent<ApiType, [assetId: u32], { assetId: u32 }>;
|
||||||
|
/**
|
||||||
|
* The min_balance of an asset has been updated by the asset owner.
|
||||||
|
**/
|
||||||
|
AssetMinBalanceChanged: AugmentedEvent<ApiType, [assetId: u32, newMinBalance: u128], { assetId: u32, newMinBalance: u128 }>;
|
||||||
/**
|
/**
|
||||||
* An asset has had its attributes changed by the `Force` origin.
|
* An asset has had its attributes changed by the `Force` origin.
|
||||||
**/
|
**/
|
||||||
@@ -604,11 +608,29 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
};
|
};
|
||||||
|
glutton: {
|
||||||
|
/**
|
||||||
|
* The computation limit has been updated by root.
|
||||||
|
**/
|
||||||
|
ComputationLimitSet: AugmentedEvent<ApiType, [compute: Perbill], { compute: Perbill }>;
|
||||||
|
/**
|
||||||
|
* The pallet has been (re)initialized by root.
|
||||||
|
**/
|
||||||
|
PalletInitialized: AugmentedEvent<ApiType, [reinit: bool], { reinit: bool }>;
|
||||||
|
/**
|
||||||
|
* The storage limit has been updated by root.
|
||||||
|
**/
|
||||||
|
StorageLimitSet: AugmentedEvent<ApiType, [storage: Perbill], { storage: Perbill }>;
|
||||||
|
/**
|
||||||
|
* Generic event
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
|
};
|
||||||
grandpa: {
|
grandpa: {
|
||||||
/**
|
/**
|
||||||
* New authority set has been applied.
|
* New authority set has been applied.
|
||||||
**/
|
**/
|
||||||
NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>>], { authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>> }>;
|
NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>], { authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>> }>;
|
||||||
/**
|
/**
|
||||||
* Current authority set has been paused.
|
* Current authority set has been paused.
|
||||||
**/
|
**/
|
||||||
@@ -736,19 +758,19 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* Message placed in overweight queue.
|
* Message placed in overweight queue.
|
||||||
**/
|
**/
|
||||||
OverweightEnqueued: AugmentedEvent<ApiType, [hash_: H256, origin: PalletMessageQueueMockHelpersMessageOrigin, pageIndex: u32, messageIndex: u32], { hash_: H256, origin: PalletMessageQueueMockHelpersMessageOrigin, pageIndex: u32, messageIndex: u32 }>;
|
OverweightEnqueued: AugmentedEvent<ApiType, [hash_: H256, origin: u32, pageIndex: u32, messageIndex: u32], { hash_: H256, origin: u32, pageIndex: u32, messageIndex: u32 }>;
|
||||||
/**
|
/**
|
||||||
* This page was reaped.
|
* This page was reaped.
|
||||||
**/
|
**/
|
||||||
PageReaped: AugmentedEvent<ApiType, [origin: PalletMessageQueueMockHelpersMessageOrigin, index: u32], { origin: PalletMessageQueueMockHelpersMessageOrigin, index: u32 }>;
|
PageReaped: AugmentedEvent<ApiType, [origin: u32, index: u32], { origin: u32, index: u32 }>;
|
||||||
/**
|
/**
|
||||||
* Message is processed.
|
* Message is processed.
|
||||||
**/
|
**/
|
||||||
Processed: AugmentedEvent<ApiType, [hash_: H256, origin: PalletMessageQueueMockHelpersMessageOrigin, weightUsed: SpWeightsWeightV2Weight, success: bool], { hash_: H256, origin: PalletMessageQueueMockHelpersMessageOrigin, weightUsed: SpWeightsWeightV2Weight, success: bool }>;
|
Processed: AugmentedEvent<ApiType, [hash_: H256, origin: u32, weightUsed: SpWeightsWeightV2Weight, success: bool], { hash_: H256, origin: u32, weightUsed: SpWeightsWeightV2Weight, success: bool }>;
|
||||||
/**
|
/**
|
||||||
* Message discarded due to an error in the `MessageProcessor` (usually a format error).
|
* Message discarded due to an error in the `MessageProcessor` (usually a format error).
|
||||||
**/
|
**/
|
||||||
ProcessingFailed: AugmentedEvent<ApiType, [hash_: H256, origin: PalletMessageQueueMockHelpersMessageOrigin, error: FrameSupportMessagesProcessMessageError], { hash_: H256, origin: PalletMessageQueueMockHelpersMessageOrigin, error: FrameSupportMessagesProcessMessageError }>;
|
ProcessingFailed: AugmentedEvent<ApiType, [hash_: H256, origin: u32, error: FrameSupportMessagesProcessMessageError], { hash_: H256, origin: u32, error: FrameSupportMessagesProcessMessageError }>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
@@ -789,11 +811,11 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* Attribute metadata has been cleared for a `collection` or `item`.
|
* Attribute metadata has been cleared for a `collection` or `item`.
|
||||||
**/
|
**/
|
||||||
AttributeCleared: AugmentedEvent<ApiType, [collection: u32, maybeItem: Option<u32>, key: Bytes, namespace: FrameSupportTokensMiscAttributeNamespace], { collection: u32, maybeItem: Option<u32>, key: Bytes, namespace: FrameSupportTokensMiscAttributeNamespace }>;
|
AttributeCleared: AugmentedEvent<ApiType, [collection: u32, maybeItem: Option<u32>, key: Bytes, namespace: PalletNftsAttributeNamespace], { collection: u32, maybeItem: Option<u32>, key: Bytes, namespace: PalletNftsAttributeNamespace }>;
|
||||||
/**
|
/**
|
||||||
* New attribute metadata has been set for a `collection` or `item`.
|
* New attribute metadata has been set for a `collection` or `item`.
|
||||||
**/
|
**/
|
||||||
AttributeSet: AugmentedEvent<ApiType, [collection: u32, maybeItem: Option<u32>, key: Bytes, value: Bytes, namespace: FrameSupportTokensMiscAttributeNamespace], { collection: u32, maybeItem: Option<u32>, key: Bytes, value: Bytes, namespace: FrameSupportTokensMiscAttributeNamespace }>;
|
AttributeSet: AugmentedEvent<ApiType, [collection: u32, maybeItem: Option<u32>, key: Bytes, value: Bytes, namespace: PalletNftsAttributeNamespace], { collection: u32, maybeItem: Option<u32>, key: Bytes, value: Bytes, namespace: PalletNftsAttributeNamespace }>;
|
||||||
/**
|
/**
|
||||||
* An `item` was destroyed.
|
* An `item` was destroyed.
|
||||||
**/
|
**/
|
||||||
@@ -890,6 +912,15 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* Ownership acceptance has changed for an account.
|
* Ownership acceptance has changed for an account.
|
||||||
**/
|
**/
|
||||||
OwnershipAcceptanceChanged: AugmentedEvent<ApiType, [who: AccountId32, maybeCollection: Option<u32>], { who: AccountId32, maybeCollection: Option<u32> }>;
|
OwnershipAcceptanceChanged: AugmentedEvent<ApiType, [who: AccountId32, maybeCollection: Option<u32>], { who: AccountId32, maybeCollection: Option<u32> }>;
|
||||||
|
/**
|
||||||
|
* A new attribute in the `Pallet` namespace was set for the `collection` or an `item`
|
||||||
|
* within that `collection`.
|
||||||
|
**/
|
||||||
|
PalletAttributeSet: AugmentedEvent<ApiType, [collection: u32, item: Option<u32>, attribute: PalletNftsPalletAttributes, value: Bytes], { collection: u32, item: Option<u32>, attribute: PalletNftsPalletAttributes, value: Bytes }>;
|
||||||
|
/**
|
||||||
|
* New attributes have been set for an `item` of the `collection`.
|
||||||
|
**/
|
||||||
|
PreSignedAttributesSet: AugmentedEvent<ApiType, [collection: u32, item: u32, namespace: PalletNftsAttributeNamespace], { collection: u32, item: u32, namespace: PalletNftsAttributeNamespace }>;
|
||||||
/**
|
/**
|
||||||
* The deposit for a set of `item`s within a `collection` has been updated.
|
* The deposit for a set of `item`s within a `collection` has been updated.
|
||||||
**/
|
**/
|
||||||
@@ -993,7 +1024,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* The roles of a pool have been updated to the given new roles. Note that the depositor
|
* The roles of a pool have been updated to the given new roles. Note that the depositor
|
||||||
* can never change.
|
* can never change.
|
||||||
**/
|
**/
|
||||||
RolesUpdated: AugmentedEvent<ApiType, [root: Option<AccountId32>, stateToggler: Option<AccountId32>, nominator: Option<AccountId32>], { root: Option<AccountId32>, stateToggler: Option<AccountId32>, nominator: Option<AccountId32> }>;
|
RolesUpdated: AugmentedEvent<ApiType, [root: Option<AccountId32>, bouncer: Option<AccountId32>, nominator: Option<AccountId32>], { root: Option<AccountId32>, bouncer: Option<AccountId32>, nominator: Option<AccountId32> }>;
|
||||||
/**
|
/**
|
||||||
* The state of a pool has changed
|
* The state of a pool has changed
|
||||||
**/
|
**/
|
||||||
@@ -1285,6 +1316,28 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
};
|
};
|
||||||
|
salary: {
|
||||||
|
/**
|
||||||
|
* The next cycle begins.
|
||||||
|
**/
|
||||||
|
CycleStarted: AugmentedEvent<ApiType, [index: u32], { index: u32 }>;
|
||||||
|
/**
|
||||||
|
* A member is inducted into the payroll.
|
||||||
|
**/
|
||||||
|
Inducted: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* A payment happened.
|
||||||
|
**/
|
||||||
|
Paid: AugmentedEvent<ApiType, [who: AccountId32, beneficiary: AccountId32, amount: u128, id: Null], { who: AccountId32, beneficiary: AccountId32, amount: u128, id: Null }>;
|
||||||
|
/**
|
||||||
|
* A member registered for a payout.
|
||||||
|
**/
|
||||||
|
Registered: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* Generic event
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
|
};
|
||||||
scheduler: {
|
scheduler: {
|
||||||
/**
|
/**
|
||||||
* The call for the provided hash was not found so the task has been aborted.
|
* The call for the provided hash was not found so the task has been aborted.
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import '../base';
|
import '../base.js';
|
||||||
import './consts';
|
import './consts.js';
|
||||||
import './errors';
|
import './errors.js';
|
||||||
import './events';
|
import './events.js';
|
||||||
import './query';
|
import './query.js';
|
||||||
import './registry';
|
import './registry.js';
|
||||||
import './runtime';
|
import './runtime.js';
|
||||||
import './tx';
|
import './tx.js';
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import type { Data } from '@polkadot/types';
|
|||||||
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletedContract, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueueMockHelpersMessageOrigin, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftsAttributeDeposit, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletedContract, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
||||||
import type { Observable } from '@polkadot/types/types';
|
import type { Observable } from '@polkadot/types/types';
|
||||||
|
|
||||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||||
@@ -668,6 +668,37 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
|
glutton: {
|
||||||
|
/**
|
||||||
|
* Storage value used to specify what percentage of the left over `ref_time`
|
||||||
|
* to consume during `on_idle`.
|
||||||
|
**/
|
||||||
|
compute: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Storage value used the specify what percentage of left over `proof_size`
|
||||||
|
* to consume during `on_idle`.
|
||||||
|
**/
|
||||||
|
storage: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Storage map used for wasting proof size.
|
||||||
|
*
|
||||||
|
* It contains no meaningful data - hence the name "Trash". The maximal number of entries is
|
||||||
|
* set to 65k, which is just below the next jump at 16^4. This is important to reduce the proof
|
||||||
|
* size benchmarking overestimate. The assumption here is that we won't have more than 65k *
|
||||||
|
* 1KiB = 65MiB of proof size wasting in practice. However, this limit is not enforced, so the
|
||||||
|
* pallet would also work out of the box with more entries, but its benchmarked proof weight
|
||||||
|
* would possibly be underestimated in that case.
|
||||||
|
**/
|
||||||
|
trashData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<U8aFixed>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* The current number of entries in `TrashData`.
|
||||||
|
**/
|
||||||
|
trashDataCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Generic query
|
||||||
|
**/
|
||||||
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
|
};
|
||||||
grandpa: {
|
grandpa: {
|
||||||
/**
|
/**
|
||||||
* The number of changes (both in terms of keys and underlying economic responsibilities)
|
* The number of changes (both in terms of keys and underlying economic responsibilities)
|
||||||
@@ -819,15 +850,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* The index of the first and last (non-empty) pages.
|
* The index of the first and last (non-empty) pages.
|
||||||
**/
|
**/
|
||||||
bookStateFor: AugmentedQuery<ApiType, (arg: PalletMessageQueueMockHelpersMessageOrigin | { Here: any } | { There: any } | { Everywhere: any } | string | Uint8Array) => Observable<PalletMessageQueueBookState>, [PalletMessageQueueMockHelpersMessageOrigin]> & QueryableStorageEntry<ApiType, [PalletMessageQueueMockHelpersMessageOrigin]>;
|
bookStateFor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletMessageQueueBookState>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* The map of page indices to pages.
|
* The map of page indices to pages.
|
||||||
**/
|
**/
|
||||||
pages: AugmentedQuery<ApiType, (arg1: PalletMessageQueueMockHelpersMessageOrigin | { Here: any } | { There: any } | { Everywhere: any } | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletMessageQueuePage>>, [PalletMessageQueueMockHelpersMessageOrigin, u32]> & QueryableStorageEntry<ApiType, [PalletMessageQueueMockHelpersMessageOrigin, u32]>;
|
pages: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletMessageQueuePage>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||||
/**
|
/**
|
||||||
* The origin at which we should begin servicing.
|
* The origin at which we should begin servicing.
|
||||||
**/
|
**/
|
||||||
serviceHead: AugmentedQuery<ApiType, () => Observable<Option<PalletMessageQueueMockHelpersMessageOrigin>>, []> & QueryableStorageEntry<ApiType, []>;
|
serviceHead: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -873,7 +904,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* Attributes of a collection.
|
* Attributes of a collection.
|
||||||
**/
|
**/
|
||||||
attribute: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: Option<u32> | null | Uint8Array | u32 | AnyNumber, arg3: FrameSupportTokensMiscAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, arg4: Bytes | string | Uint8Array) => Observable<Option<ITuple<[Bytes, PalletNftsAttributeDeposit]>>>, [u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes]> & QueryableStorageEntry<ApiType, [u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes]>;
|
attribute: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: Option<u32> | null | Uint8Array | u32 | AnyNumber, arg3: PalletNftsAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, arg4: Bytes | string | Uint8Array) => Observable<Option<ITuple<[Bytes, PalletNftsAttributeDeposit]>>>, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]> & QueryableStorageEntry<ApiType, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]>;
|
||||||
/**
|
/**
|
||||||
* Details of a collection.
|
* Details of a collection.
|
||||||
**/
|
**/
|
||||||
@@ -965,6 +996,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Storage for bonded pools.
|
* Storage for bonded pools.
|
||||||
**/
|
**/
|
||||||
bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* Map from a pool member account to their opted claim permission.
|
||||||
|
**/
|
||||||
|
claimPermissions: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletNominationPoolsClaimPermission>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* Counter for the related counted storage map
|
* Counter for the related counted storage map
|
||||||
**/
|
**/
|
||||||
@@ -1098,6 +1133,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
map1M: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
map1M: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
unboundedMap: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
unboundedMap: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
unboundedMap2: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
unboundedMap2: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
unboundedMapTwox: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* A value without a MEL bound.
|
* A value without a MEL bound.
|
||||||
**/
|
**/
|
||||||
@@ -1267,6 +1303,20 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
|
salary: {
|
||||||
|
/**
|
||||||
|
* The status of a claimant.
|
||||||
|
**/
|
||||||
|
claimant: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletSalaryClaimantStatus>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* The overall status of the system.
|
||||||
|
**/
|
||||||
|
status: AugmentedQuery<ApiType, () => Observable<Option<PalletSalaryStatusType>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Generic query
|
||||||
|
**/
|
||||||
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
|
};
|
||||||
scheduler: {
|
scheduler: {
|
||||||
/**
|
/**
|
||||||
* Items to be executed, indexed by the block number that they should be executed on.
|
* Items to be executed, indexed by the block number that they should be executed on.
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import '@polkadot/api-base/types/calls';
|
|||||||
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
||||||
import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec';
|
import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
|
import type { TAssetBalance } from '@polkadot/types/interfaces/assets';
|
||||||
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||||
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
||||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||||
@@ -17,6 +18,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 { NftCollectionId, NftItemId } from '@polkadot/types/interfaces/nfts';
|
||||||
|
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||||
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
||||||
@@ -40,6 +43,17 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
|
/** 0x8453b50b22293977/1 */
|
||||||
|
assetsApi: {
|
||||||
|
/**
|
||||||
|
* Return the current set of authorities.
|
||||||
|
**/
|
||||||
|
accountBalances: AugmentedCall<ApiType, (account: AccountId | string | Uint8Array) => Observable<Vec<ITuple<[u32, TAssetBalance]>>>>;
|
||||||
|
/**
|
||||||
|
* Generic call
|
||||||
|
**/
|
||||||
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
|
};
|
||||||
/** 0x687ad44ad37f03c2/1 */
|
/** 0x687ad44ad37f03c2/1 */
|
||||||
authorityDiscoveryApi: {
|
authorityDiscoveryApi: {
|
||||||
/**
|
/**
|
||||||
@@ -181,7 +195,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0x91d5df18b0d2cf58/1 */
|
/** 0x91d5df18b0d2cf58/2 */
|
||||||
mmrApi: {
|
mmrApi: {
|
||||||
/**
|
/**
|
||||||
* Generate MMR proof for a series of leaves under given indices.
|
* Generate MMR proof for a series of leaves under given indices.
|
||||||
@@ -216,12 +230,51 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
|
/** 0x899a250cbe84f250/1 */
|
||||||
|
nftsApi: {
|
||||||
|
/**
|
||||||
|
* An attribute
|
||||||
|
**/
|
||||||
|
attribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||||
|
/**
|
||||||
|
* A collection attribute
|
||||||
|
**/
|
||||||
|
collectionAttribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||||
|
/**
|
||||||
|
* A collection owner
|
||||||
|
**/
|
||||||
|
collectionOwner: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array) => Observable<Option<AccountId>>>;
|
||||||
|
/**
|
||||||
|
* A custom attribute
|
||||||
|
**/
|
||||||
|
customAttribute: AugmentedCall<ApiType, (account: AccountId | string | Uint8Array, collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||||
|
/**
|
||||||
|
* Collection owner
|
||||||
|
**/
|
||||||
|
owner: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array) => Observable<Option<AccountId>>>;
|
||||||
|
/**
|
||||||
|
* System attribute
|
||||||
|
**/
|
||||||
|
systemAttribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||||
|
/**
|
||||||
|
* Generic call
|
||||||
|
**/
|
||||||
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
|
};
|
||||||
/** 0x17a6bc0d0062aeb3/1 */
|
/** 0x17a6bc0d0062aeb3/1 */
|
||||||
nominationPoolsApi: {
|
nominationPoolsApi: {
|
||||||
|
/**
|
||||||
|
* Returns the equivalent points of `new_funds` for a given pool.
|
||||||
|
**/
|
||||||
|
balanceToPoints: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, newFunds: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||||
/**
|
/**
|
||||||
* Returns the pending rewards for the given member.
|
* Returns the pending rewards for the given member.
|
||||||
**/
|
**/
|
||||||
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
||||||
|
/**
|
||||||
|
* Returns the equivalent balance of `points` for a given pool.
|
||||||
|
**/
|
||||||
|
pointsToBalance: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, points: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||||
/**
|
/**
|
||||||
* Generic call
|
* Generic call
|
||||||
**/
|
**/
|
||||||
@@ -253,6 +306,17 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
|
/** 0x18ef58a3b67ba770/1 */
|
||||||
|
stakingApi: {
|
||||||
|
/**
|
||||||
|
* Returns the nominations quota for a nominator with a given balance.
|
||||||
|
**/
|
||||||
|
nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
|
||||||
|
/**
|
||||||
|
* Generic call
|
||||||
|
**/
|
||||||
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
|
};
|
||||||
/** 0xd2bc9897eed08f15/3 */
|
/** 0xd2bc9897eed08f15/3 */
|
||||||
taggedTransactionQueue: {
|
taggedTransactionQueue: {
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import type { Data } from '@polkadot/types';
|
|||||||
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensMiscAttributeNamespace, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMessageQueueMockHelpersMessageOrigin, PalletMultisigTimepoint, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||||
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
||||||
@@ -581,6 +581,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
**/
|
**/
|
||||||
setMetadata: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, name: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, decimals: u8 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Bytes, Bytes, u8]>;
|
setMetadata: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, name: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, decimals: u8 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Bytes, Bytes, u8]>;
|
||||||
|
/**
|
||||||
|
* Sets the minimum balance of an asset.
|
||||||
|
*
|
||||||
|
* Only works if there aren't any accounts that are holding the asset or if
|
||||||
|
* the new value of `min_balance` is less than the old one.
|
||||||
|
*
|
||||||
|
* Origin must be Signed and the sender has to be the Owner of the
|
||||||
|
* asset `id`.
|
||||||
|
*
|
||||||
|
* - `id`: The identifier of the asset.
|
||||||
|
* - `min_balance`: The new value of `min_balance`.
|
||||||
|
*
|
||||||
|
* Emits `AssetMinBalanceChanged` event when successful.
|
||||||
|
**/
|
||||||
|
setMinBalance: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, u128]>;
|
||||||
/**
|
/**
|
||||||
* Change the Issuer, Admin and Freezer of an asset.
|
* Change the Issuer, Admin and Freezer of an asset.
|
||||||
*
|
*
|
||||||
@@ -2000,6 +2015,32 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
|
glutton: {
|
||||||
|
/**
|
||||||
|
* Initializes the pallet by writing into `TrashData`.
|
||||||
|
*
|
||||||
|
* Only callable by Root. A good default for `trash_count` is `5_000`.
|
||||||
|
**/
|
||||||
|
initializePallet: AugmentedSubmittable<(newCount: u32 | AnyNumber | Uint8Array, witnessCount: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>]>;
|
||||||
|
/**
|
||||||
|
* Set the `Compute` storage value that determines how much of the
|
||||||
|
* block's weight `ref_time` to use during `on_idle`.
|
||||||
|
*
|
||||||
|
* Only callable by Root.
|
||||||
|
**/
|
||||||
|
setCompute: AugmentedSubmittable<(compute: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
|
||||||
|
/**
|
||||||
|
* Set the `Storage` storage value that determines the PoV size usage
|
||||||
|
* for each block.
|
||||||
|
*
|
||||||
|
* Only callable by Root.
|
||||||
|
**/
|
||||||
|
setStorage: AugmentedSubmittable<(storage: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
|
||||||
|
/**
|
||||||
|
* Generic tx
|
||||||
|
**/
|
||||||
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
|
};
|
||||||
grandpa: {
|
grandpa: {
|
||||||
/**
|
/**
|
||||||
* Note that the current authority set of the GRANDPA finality gadget has stalled.
|
* Note that the current authority set of the GRANDPA finality gadget has stalled.
|
||||||
@@ -2022,7 +2063,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* against the extracted offender. If both are valid, the offence
|
* against the extracted offender. If both are valid, the offence
|
||||||
* will be reported.
|
* will be reported.
|
||||||
**/
|
**/
|
||||||
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
||||||
/**
|
/**
|
||||||
* Report voter equivocation/misbehavior. This method will verify the
|
* Report voter equivocation/misbehavior. This method will verify the
|
||||||
* equivocation proof and validate the given key ownership proof
|
* equivocation proof and validate the given key ownership proof
|
||||||
@@ -2034,7 +2075,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* if the block author is defined it will be defined as the equivocation
|
* if the block author is defined it will be defined as the equivocation
|
||||||
* reporter.
|
* reporter.
|
||||||
**/
|
**/
|
||||||
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -2425,6 +2466,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Execute an overweight message.
|
* Execute an overweight message.
|
||||||
*
|
*
|
||||||
|
* Temporary processing errors will be propagated whereas permanent errors are treated
|
||||||
|
* as success condition.
|
||||||
|
*
|
||||||
* - `origin`: Must be `Signed`.
|
* - `origin`: Must be `Signed`.
|
||||||
* - `message_origin`: The origin from which the message to be executed arrived.
|
* - `message_origin`: The origin from which the message to be executed arrived.
|
||||||
* - `page`: The page in the queue in which the message to be executed is sitting.
|
* - `page`: The page in the queue in which the message to be executed is sitting.
|
||||||
@@ -2434,11 +2478,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Benchmark complexity considerations: O(index + weight_limit).
|
* Benchmark complexity considerations: O(index + weight_limit).
|
||||||
**/
|
**/
|
||||||
executeOverweight: AugmentedSubmittable<(messageOrigin: PalletMessageQueueMockHelpersMessageOrigin | { Here: any } | { There: any } | { Everywhere: any } | string | Uint8Array, page: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletMessageQueueMockHelpersMessageOrigin, u32, u32, SpWeightsWeightV2Weight]>;
|
executeOverweight: AugmentedSubmittable<(messageOrigin: u32 | AnyNumber | Uint8Array, page: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32, SpWeightsWeightV2Weight]>;
|
||||||
/**
|
/**
|
||||||
* Remove a page which has no more messages remaining to be processed or is stale.
|
* Remove a page which has no more messages remaining to be processed or is stale.
|
||||||
**/
|
**/
|
||||||
reapPage: AugmentedSubmittable<(messageOrigin: PalletMessageQueueMockHelpersMessageOrigin | { Here: any } | { There: any } | { Everywhere: any } | string | Uint8Array, pageIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletMessageQueueMockHelpersMessageOrigin, u32]>;
|
reapPage: AugmentedSubmittable<(messageOrigin: u32 | AnyNumber | Uint8Array, pageIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -2716,7 +2760,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
**/
|
**/
|
||||||
clearAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: FrameSupportTokensMiscAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes]>;
|
clearAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]>;
|
||||||
/**
|
/**
|
||||||
* Clear the metadata for a collection.
|
* Clear the metadata for a collection.
|
||||||
*
|
*
|
||||||
@@ -2882,7 +2926,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
**/
|
**/
|
||||||
forceSetAttribute: AugmentedSubmittable<(setAs: Option<AccountId32> | null | Uint8Array | AccountId32 | string, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: FrameSupportTokensMiscAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>, u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes, Bytes]>;
|
forceSetAttribute: AugmentedSubmittable<(setAs: Option<AccountId32> | null | Uint8Array | AccountId32 | string, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>, u32, Option<u32>, PalletNftsAttributeNamespace, Bytes, Bytes]>;
|
||||||
/**
|
/**
|
||||||
* Disallows specified settings for the whole collection.
|
* Disallows specified settings for the whole collection.
|
||||||
*
|
*
|
||||||
@@ -2947,7 +2991,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
**/
|
**/
|
||||||
mint: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, mintTo: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, witnessData: Option<PalletNftsMintWitness> | null | Uint8Array | PalletNftsMintWitness | { ownerOfItem?: any } | string) => SubmittableExtrinsic<ApiType>, [u32, u32, MultiAddress, Option<PalletNftsMintWitness>]>;
|
mint: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, mintTo: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, witnessData: Option<PalletNftsMintWitness> | null | Uint8Array | PalletNftsMintWitness | { ownedItem?: any } | string) => SubmittableExtrinsic<ApiType>, [u32, u32, MultiAddress, Option<PalletNftsMintWitness>]>;
|
||||||
/**
|
/**
|
||||||
* Mint an item by providing the pre-signed approval.
|
* Mint an item by providing the pre-signed approval.
|
||||||
*
|
*
|
||||||
@@ -3031,7 +3075,23 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
**/
|
**/
|
||||||
setAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: FrameSupportTokensMiscAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes, Bytes]>;
|
setAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes, Bytes]>;
|
||||||
|
/**
|
||||||
|
* Set attributes for an item by providing the pre-signed approval.
|
||||||
|
*
|
||||||
|
* Origin must be Signed and must be an owner of the `data.item`.
|
||||||
|
*
|
||||||
|
* - `data`: The pre-signed approval that consists of the information about the item,
|
||||||
|
* attributes to update and until what block number.
|
||||||
|
* - `signature`: The signature of the `data` object.
|
||||||
|
* - `signer`: The `data` object's signer. Should be an owner of the collection for the
|
||||||
|
* `CollectionOwner` namespace.
|
||||||
|
*
|
||||||
|
* Emits `AttributeSet` for each provided attribute.
|
||||||
|
* Emits `ItemAttributesApprovalAdded` if the approval wasn't set before.
|
||||||
|
* Emits `PreSignedAttributesSet` on success.
|
||||||
|
**/
|
||||||
|
setAttributesPreSigned: AugmentedSubmittable<(data: PalletNftsPreSignedAttributes | { collection?: any; item?: any; attributes?: any; namespace?: any; deadline?: any } | string | Uint8Array, signature: SpRuntimeMultiSignature | { Ed25519: any } | { Sr25519: any } | { Ecdsa: any } | string | Uint8Array, signer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNftsPreSignedAttributes, SpRuntimeMultiSignature, AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* Set the maximum number of items a collection could have.
|
* Set the maximum number of items a collection could have.
|
||||||
*
|
*
|
||||||
@@ -3245,8 +3305,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* accumulated rewards, see [`BondExtra`].
|
* accumulated rewards, see [`BondExtra`].
|
||||||
*
|
*
|
||||||
* Bonding extra funds implies an automatic payout of all pending rewards as well.
|
* Bonding extra funds implies an automatic payout of all pending rewards as well.
|
||||||
|
* See `bond_extra_other` to bond pending rewards of `other` members.
|
||||||
**/
|
**/
|
||||||
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | { FreeBalance: any } | { Rewards: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
|
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | { FreeBalance: any } | { Rewards: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
|
||||||
|
/**
|
||||||
|
* `origin` bonds funds from `extra` for some pool member `member` into their respective
|
||||||
|
* pools.
|
||||||
|
*
|
||||||
|
* `origin` can bond extra funds from free balance or pending rewards when `origin ==
|
||||||
|
* other`.
|
||||||
|
*
|
||||||
|
* In the case of `origin != other`, `origin` can only bond extra pending rewards of
|
||||||
|
* `other` members assuming set_claim_permission for the given member is
|
||||||
|
* `PermissionlessAll` or `PermissionlessCompound`.
|
||||||
|
**/
|
||||||
|
bondExtraOther: AugmentedSubmittable<(member: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, extra: PalletNominationPoolsBondExtra | { FreeBalance: any } | { Rewards: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletNominationPoolsBondExtra]>;
|
||||||
/**
|
/**
|
||||||
* Chill on behalf of the pool.
|
* Chill on behalf of the pool.
|
||||||
*
|
*
|
||||||
@@ -3264,8 +3337,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
||||||
* members in the pools stake. Rewards do not "expire".
|
* members in the pools stake. Rewards do not "expire".
|
||||||
|
*
|
||||||
|
* See `claim_payout_other` to caim rewards on bahalf of some `other` pool member.
|
||||||
**/
|
**/
|
||||||
claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
|
/**
|
||||||
|
* `origin` can claim payouts on some pool member `other`'s behalf.
|
||||||
|
*
|
||||||
|
* Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order
|
||||||
|
* for this call to be successful.
|
||||||
|
**/
|
||||||
|
claimPayoutOther: AugmentedSubmittable<(other: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* Create a new delegation pool.
|
* Create a new delegation pool.
|
||||||
*
|
*
|
||||||
@@ -3278,14 +3360,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* creating multiple pools in the same extrinsic.
|
* creating multiple pools in the same extrinsic.
|
||||||
* * `root` - The account to set as [`PoolRoles::root`].
|
* * `root` - The account to set as [`PoolRoles::root`].
|
||||||
* * `nominator` - The account to set as the [`PoolRoles::nominator`].
|
* * `nominator` - The account to set as the [`PoolRoles::nominator`].
|
||||||
* * `state_toggler` - The account to set as the [`PoolRoles::state_toggler`].
|
* * `bouncer` - The account to set as the [`PoolRoles::bouncer`].
|
||||||
*
|
*
|
||||||
* # Note
|
* # Note
|
||||||
*
|
*
|
||||||
* In addition to `amount`, the caller will transfer the existential deposit; so the caller
|
* In addition to `amount`, the caller will transfer the existential deposit; so the caller
|
||||||
* needs at have at least `amount + existential_deposit` transferrable.
|
* needs at have at least `amount + existential_deposit` transferrable.
|
||||||
**/
|
**/
|
||||||
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress]>;
|
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, bouncer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Create a new delegation pool with a previously used pool id
|
* Create a new delegation pool with a previously used pool id
|
||||||
*
|
*
|
||||||
@@ -3294,7 +3376,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* same as `create` with the inclusion of
|
* same as `create` with the inclusion of
|
||||||
* * `pool_id` - `A valid PoolId.
|
* * `pool_id` - `A valid PoolId.
|
||||||
**/
|
**/
|
||||||
createWithPoolId: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress, u32]>;
|
createWithPoolId: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, bouncer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress, u32]>;
|
||||||
/**
|
/**
|
||||||
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
||||||
* pools account and immediately increases the pools bond.
|
* pools account and immediately increases the pools bond.
|
||||||
@@ -3327,6 +3409,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* they attempt to unbond.
|
* they attempt to unbond.
|
||||||
**/
|
**/
|
||||||
poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
||||||
|
/**
|
||||||
|
* Allows a pool member to set a claim permission to allow or disallow permissionless
|
||||||
|
* bonding and withdrawing.
|
||||||
|
*
|
||||||
|
* By default, this is `Permissioned`, which implies only the pool member themselves can
|
||||||
|
* claim their pending rewards. If a pool member wishes so, they can set this to
|
||||||
|
* `PermissionlessAll` to allow any account to claim their rewards and bond extra to the
|
||||||
|
* pool.
|
||||||
|
*
|
||||||
|
* # Arguments
|
||||||
|
*
|
||||||
|
* * `origin` - Member of a pool.
|
||||||
|
* * `actor` - Account to claim reward. // improve this
|
||||||
|
**/
|
||||||
|
setClaimPermission: AugmentedSubmittable<(permission: PalletNominationPoolsClaimPermission | 'Permissioned' | 'PermissionlessCompound' | 'PermissionlessWithdraw' | 'PermissionlessAll' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsClaimPermission]>;
|
||||||
/**
|
/**
|
||||||
* Update configurations for the nomination pools. The origin for this call must be
|
* Update configurations for the nomination pools. The origin for this call must be
|
||||||
* Root.
|
* Root.
|
||||||
@@ -3343,7 +3440,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Set a new metadata for the pool.
|
* Set a new metadata for the pool.
|
||||||
*
|
*
|
||||||
* The dispatch origin of this call must be signed by the state toggler, or the root role
|
* The dispatch origin of this call must be signed by the bouncer, or the root role
|
||||||
* of the pool.
|
* of the pool.
|
||||||
**/
|
**/
|
||||||
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
||||||
@@ -3355,7 +3452,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* The dispatch origin of this call must be either:
|
* The dispatch origin of this call must be either:
|
||||||
*
|
*
|
||||||
* 1. signed by the state toggler, or the root role of the pool,
|
* 1. signed by the bouncer, or the root role of the pool,
|
||||||
* 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
|
* 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
|
||||||
* then the state of the pool can be permissionlessly changed to `Destroying`.
|
* then the state of the pool can be permissionlessly changed to `Destroying`.
|
||||||
**/
|
**/
|
||||||
@@ -3370,8 +3467,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* # Conditions for a permissionless dispatch.
|
* # Conditions for a permissionless dispatch.
|
||||||
*
|
*
|
||||||
* * The pool is blocked and the caller is either the root or state-toggler. This is
|
* * The pool is blocked and the caller is either the root or bouncer. This is refereed to
|
||||||
* refereed to as a kick.
|
* as a kick.
|
||||||
* * The pool is destroying and the member is not the depositor.
|
* * The pool is destroying and the member is not the depositor.
|
||||||
* * The pool is destroying, the member is the depositor and no other members are in the
|
* * The pool is destroying, the member is the depositor and no other members are in the
|
||||||
* pool.
|
* pool.
|
||||||
@@ -3403,7 +3500,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* It emits an event, notifying UIs of the role change. This event is quite relevant to
|
* It emits an event, notifying UIs of the role change. This event is quite relevant to
|
||||||
* most pool members and they should be informed of changes to pool roles.
|
* most pool members and they should be informed of changes to pool roles.
|
||||||
**/
|
**/
|
||||||
updateRoles: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newRoot: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, newNominator: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, newStateToggler: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32]>;
|
updateRoles: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newRoot: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, newNominator: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, newBouncer: PalletNominationPoolsConfigOpAccountId32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32]>;
|
||||||
/**
|
/**
|
||||||
* Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an
|
* Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an
|
||||||
* error is returned.
|
* error is returned.
|
||||||
@@ -3415,7 +3512,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* * The pool is in destroy mode and the target is not the depositor.
|
* * The pool is in destroy mode and the target is not the depositor.
|
||||||
* * The target is the depositor and they are the only member in the sub pools.
|
* * The target is the depositor and they are the only member in the sub pools.
|
||||||
* * The pool is blocked and the caller is either the root or state-toggler.
|
* * The pool is blocked and the caller is either the root or bouncer.
|
||||||
*
|
*
|
||||||
* # Conditions for permissioned dispatch
|
* # Conditions for permissioned dispatch
|
||||||
*
|
*
|
||||||
@@ -4031,6 +4128,66 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
|
salary: {
|
||||||
|
/**
|
||||||
|
* Move to next payout cycle, assuming that the present block is now within that cycle.
|
||||||
|
*
|
||||||
|
* - `origin`: A `Signed` origin of an account.
|
||||||
|
**/
|
||||||
|
bump: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
|
/**
|
||||||
|
* Update a payment's status; if it failed, alter the state so the payment can be retried.
|
||||||
|
*
|
||||||
|
* This must be called within the same cycle as the failed payment. It will fail with
|
||||||
|
* `Event::NotCurrent` otherwise.
|
||||||
|
*
|
||||||
|
* - `origin`: A `Signed` origin of an account which is a member of `Members` who has
|
||||||
|
* received a payment this cycle.
|
||||||
|
**/
|
||||||
|
checkPayment: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
|
/**
|
||||||
|
* Induct oneself into the payout system.
|
||||||
|
**/
|
||||||
|
induct: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
|
/**
|
||||||
|
* Start the first payout cycle.
|
||||||
|
*
|
||||||
|
* - `origin`: A `Signed` origin of an account.
|
||||||
|
**/
|
||||||
|
init: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
|
/**
|
||||||
|
* Request a payout.
|
||||||
|
*
|
||||||
|
* Will only work if we are after the first `RegistrationPeriod` blocks since the cycle
|
||||||
|
* started but by no more than `PayoutPeriod` blocks.
|
||||||
|
*
|
||||||
|
* - `origin`: A `Signed` origin of an account which is a member of `Members`.
|
||||||
|
**/
|
||||||
|
payout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
|
/**
|
||||||
|
* Request a payout to a secondary account.
|
||||||
|
*
|
||||||
|
* Will only work if we are after the first `RegistrationPeriod` blocks since the cycle
|
||||||
|
* started but by no more than `PayoutPeriod` blocks.
|
||||||
|
*
|
||||||
|
* - `origin`: A `Signed` origin of an account which is a member of `Members`.
|
||||||
|
* - `beneficiary`: The account to receive payment.
|
||||||
|
**/
|
||||||
|
payoutOther: AugmentedSubmittable<(beneficiary: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* Register for a payout.
|
||||||
|
*
|
||||||
|
* Will only work if we are in the first `RegistrationPeriod` blocks since the cycle
|
||||||
|
* started.
|
||||||
|
*
|
||||||
|
* - `origin`: A `Signed` origin of an account which is a member of `Members`.
|
||||||
|
**/
|
||||||
|
register: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
|
/**
|
||||||
|
* Generic tx
|
||||||
|
**/
|
||||||
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
|
};
|
||||||
scheduler: {
|
scheduler: {
|
||||||
/**
|
/**
|
||||||
* Cancel an anonymously scheduled task.
|
* Cancel an anonymously scheduled task.
|
||||||
|
|||||||
@@ -20,13 +20,13 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.2",
|
"version": "10.1.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.13",
|
"@polkadot/rpc-core": "10.1.2",
|
||||||
"@polkadot/rpc-core": "9.14.2",
|
"@polkadot/types": "10.1.2",
|
||||||
"@polkadot/types": "9.14.2",
|
"@polkadot/util": "^11.0.2",
|
||||||
"@polkadot/util": "^10.4.2",
|
"rxjs": "^7.8.0",
|
||||||
"rxjs": "^7.8.0"
|
"tslib": "^2.5.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { packageInfo } from './packageInfo';
|
export { packageInfo } from './packageInfo.js';
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
import { detectPackage } from '@polkadot/util';
|
import { detectPackage } from '@polkadot/util';
|
||||||
|
|
||||||
import others from './detectOther';
|
import others from './detectOther.js';
|
||||||
import { packageInfo } from './packageInfo';
|
import { packageInfo } from './packageInfo.js';
|
||||||
|
|
||||||
detectPackage(packageInfo, null, others);
|
detectPackage(packageInfo, null, others);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import './detectPackage';
|
import './detectPackage.js';
|
||||||
|
|
||||||
export * from './bundle';
|
export * from './bundle.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './index';
|
export * from './index.js';
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.14.2' };
|
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '10.1.2' };
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { AnyFunction, Codec, DefinitionCallNamed } from '@polkadot/types/types';
|
import type { AnyFunction, Codec, DefinitionCallNamed } from '@polkadot/types/types';
|
||||||
import type { ApiTypes, ReturnCodec } from './base';
|
import type { ApiTypes, ReturnCodec } from './base.js';
|
||||||
|
|
||||||
export type DecoratedCallBase<ApiType extends ApiTypes, F extends AnyFunction = (...args: any[]) => Observable<Codec>> =
|
export type DecoratedCallBase<ApiType extends ApiTypes, F extends AnyFunction = (...args: any[]) => Observable<Codec>> =
|
||||||
ApiType extends 'rxjs'
|
ApiType extends 'rxjs'
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
import type { PalletConstantMetadataLatest } from '@polkadot/types/interfaces';
|
import type { PalletConstantMetadataLatest } from '@polkadot/types/interfaces';
|
||||||
import type { Codec } from '@polkadot/types/types';
|
import type { Codec } from '@polkadot/types/types';
|
||||||
import type { ApiTypes } from './base';
|
import type { ApiTypes } from './base.js';
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
export interface AugmentedConst<ApiType extends ApiTypes> {
|
export interface AugmentedConst<ApiType extends ApiTypes> {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { IsError } from '@polkadot/types/metadata/decorate/types';
|
import type { IsError } from '@polkadot/types/metadata/decorate/types';
|
||||||
import type { ApiTypes } from './base';
|
import type { ApiTypes } from './base.js';
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
export type AugmentedError<ApiType extends ApiTypes> = IsError;
|
export type AugmentedError<ApiType extends ApiTypes> = IsError;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
import type { IsEvent } from '@polkadot/types/metadata/decorate/types';
|
import type { IsEvent } from '@polkadot/types/metadata/decorate/types';
|
||||||
import type { AnyTuple } from '@polkadot/types/types';
|
import type { AnyTuple } from '@polkadot/types/types';
|
||||||
import type { ApiTypes } from './base';
|
import type { ApiTypes } from './base.js';
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
export type AugmentedEvent<ApiType extends ApiTypes, T extends AnyTuple = AnyTuple, N = unknown> = IsEvent<T, N>;
|
export type AugmentedEvent<ApiType extends ApiTypes, T extends AnyTuple = AnyTuple, N = unknown> = IsEvent<T, N>;
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ export * from '@polkadot/api-base/types/storage';
|
|||||||
export * from '@polkadot/api-base/types/submittable';
|
export * from '@polkadot/api-base/types/submittable';
|
||||||
|
|
||||||
// normal exports
|
// normal exports
|
||||||
export * from './api';
|
export * from './api.js';
|
||||||
export * from './base';
|
export * from './base.js';
|
||||||
export * from './derive';
|
export * from './derive.js';
|
||||||
export * from './rpc';
|
export * from './rpc.js';
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { AnyFunction, AnyJson, Callback, DefinitionRpc } from '@polkadot/types/types';
|
import type { AnyFunction, AnyJson, Callback, DefinitionRpc } from '@polkadot/types/types';
|
||||||
|
|
||||||
import { ApiTypes, PromiseResult, Push, RxResult, UnsubscribePromise } from './base';
|
import { ApiTypes, PromiseResult, Push, RxResult, UnsubscribePromise } from './base.js';
|
||||||
|
|
||||||
export type { AugmentedRpc } from '@polkadot/rpc-core/types';
|
export type { AugmentedRpc } from '@polkadot/rpc-core/types';
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import type { StorageKey, u64 } from '@polkadot/types';
|
|||||||
import type { Hash } from '@polkadot/types/interfaces';
|
import type { Hash } from '@polkadot/types/interfaces';
|
||||||
import type { StorageEntry } from '@polkadot/types/primitive/types';
|
import type { StorageEntry } from '@polkadot/types/primitive/types';
|
||||||
import type { AnyFunction, AnyTuple, Callback, Codec, IStorageKey } from '@polkadot/types/types';
|
import type { AnyFunction, AnyTuple, Callback, Codec, IStorageKey } from '@polkadot/types/types';
|
||||||
import type { ApiTypes, DropLast, MethodResult, PaginationOptions, PromiseOrObs, ReturnCodec, UnsubscribePromise } from './base';
|
import type { ApiTypes, DropLast, MethodResult, PaginationOptions, PromiseOrObs, ReturnCodec, UnsubscribePromise } from './base.js';
|
||||||
|
|
||||||
interface StorageEntryObservableMulti<R extends Codec = Codec> {
|
interface StorageEntryObservableMulti<R extends Codec = Codec> {
|
||||||
<T extends Codec = R>(args: (unknown[] | unknown)[]): Observable<T[]>;
|
<T extends Codec = R>(args: (unknown[] | unknown)[]): Observable<T[]>;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { AccountId, Address, ApplyExtrinsicResult, BlockNumber, Call, DispatchError, DispatchInfo, EventRecord, Extrinsic, ExtrinsicStatus, Hash, RuntimeDispatchInfo } from '@polkadot/types/interfaces';
|
import type { AccountId, Address, ApplyExtrinsicResult, BlockNumber, Call, DispatchError, DispatchInfo, EventRecord, Extrinsic, ExtrinsicStatus, Hash, RuntimeDispatchInfo } from '@polkadot/types/interfaces';
|
||||||
import type { AnyFunction, AnyNumber, AnyTuple, Callback, CallBase, Codec, IExtrinsicEra, IKeyringPair, ISubmittableResult, Signer } from '@polkadot/types/types';
|
import type { AnyFunction, AnyNumber, AnyTuple, Callback, CallBase, Codec, IExtrinsicEra, IKeyringPair, ISubmittableResult, Signer } from '@polkadot/types/types';
|
||||||
import type { ApiTypes, PromiseOrObs } from './base';
|
import type { ApiTypes, PromiseOrObs } from './base.js';
|
||||||
|
|
||||||
export type AugmentedSubmittable<T extends AnyFunction, A extends AnyTuple = AnyTuple> = T & CallBase<A>;
|
export type AugmentedSubmittable<T extends AnyFunction, A extends AnyTuple = AnyTuple> = T & CallBase<A>;
|
||||||
|
|
||||||
|
|||||||
@@ -20,20 +20,20 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.2",
|
"version": "10.1.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.13",
|
"@polkadot/api": "10.1.2",
|
||||||
"@polkadot/api": "9.14.2",
|
"@polkadot/types": "10.1.2",
|
||||||
"@polkadot/types": "9.14.2",
|
"@polkadot/types-codec": "10.1.2",
|
||||||
"@polkadot/types-codec": "9.14.2",
|
"@polkadot/types-create": "10.1.2",
|
||||||
"@polkadot/types-create": "9.14.2",
|
"@polkadot/util": "^11.0.2",
|
||||||
"@polkadot/util": "^10.4.2",
|
"@polkadot/util-crypto": "^11.0.2",
|
||||||
"@polkadot/util-crypto": "^10.4.2",
|
"rxjs": "^7.8.0",
|
||||||
"rxjs": "^7.8.0"
|
"tslib": "^2.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api-augment": "9.14.2",
|
"@polkadot/api-augment": "10.1.2",
|
||||||
"@polkadot/keyring": "^10.4.2"
|
"@polkadot/keyring": "^11.0.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,19 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
/// <reference types="@polkadot/dev/node/test/node" />
|
||||||
|
|
||||||
import type { Registry } from '@polkadot/types/types';
|
import type { Registry } from '@polkadot/types/types';
|
||||||
|
|
||||||
import fs from 'fs';
|
import fs from 'node:fs';
|
||||||
import path from 'path';
|
import path from 'node:path';
|
||||||
import process from 'process';
|
import process from 'node:process';
|
||||||
|
|
||||||
import { TypeDefInfo } from '@polkadot/types/types';
|
import { TypeDefInfo } from '@polkadot/types/types';
|
||||||
import { blake2AsHex } from '@polkadot/util-crypto';
|
import { blake2AsHex } from '@polkadot/util-crypto';
|
||||||
|
|
||||||
import abis from '../test/contracts';
|
import abis from '../test/contracts/index.js';
|
||||||
import { Abi } from '.';
|
import { Abi } from './index.js';
|
||||||
|
|
||||||
interface SpecDef {
|
interface SpecDef {
|
||||||
messages: {
|
messages: {
|
||||||
@@ -86,24 +88,26 @@ describe('Abi', (): void => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('TypeDef', (): void => {
|
describe('TypeDef', (): void => {
|
||||||
it.each(Object.keys(abis))('initializes from a contract ABI: %s', (abiName): void => {
|
for (const [abiName, abiJson] of Object.entries(abis)) {
|
||||||
const abi = new Abi(abis[abiName]);
|
it(`initializes from a contract ABI: ${abiName}`, (): void => {
|
||||||
const json = stringifyJson(abi.registry);
|
const abi = new Abi(abiJson);
|
||||||
const cmpFile = path.join(cmpPath, `${abiName}.test.json`);
|
const registryJson = stringifyJson(abi.registry);
|
||||||
const cmpText = fs.readFileSync(cmpFile, 'utf-8');
|
const cmpFile = path.join(cmpPath, `${abiName}.test.json`);
|
||||||
|
const cmpText = fs.readFileSync(cmpFile, 'utf-8');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
expect(JSON.parse(json)).toEqual(JSON.parse(cmpText));
|
expect(JSON.parse(registryJson)).toEqual(JSON.parse(cmpText));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (process.env.GITHUB_REPOSITORY) {
|
if (process.env.GITHUB_REPOSITORY) {
|
||||||
console.error(json);
|
console.error(registryJson);
|
||||||
|
|
||||||
throw error;
|
throw error;
|
||||||
|
}
|
||||||
|
|
||||||
|
fs.writeFileSync(cmpFile, registryJson, { flag: 'w' });
|
||||||
}
|
}
|
||||||
|
});
|
||||||
fs.writeFileSync(cmpFile, json, { flag: 'w' });
|
}
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('has the correct hash for the source', (): void => {
|
it('has the correct hash for the source', (): void => {
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
import type { Bytes } from '@polkadot/types';
|
import type { Bytes } from '@polkadot/types';
|
||||||
import type { ChainProperties, ContractConstructorSpecLatest, ContractEventSpecLatest, ContractMessageParamSpecLatest, ContractMessageSpecLatest, ContractMetadata, ContractMetadataLatest, ContractProjectInfo } from '@polkadot/types/interfaces';
|
import type { ChainProperties, ContractConstructorSpecLatest, ContractEventSpecLatest, ContractMessageParamSpecLatest, ContractMessageSpecLatest, ContractMetadata, ContractMetadataLatest, ContractProjectInfo } from '@polkadot/types/interfaces';
|
||||||
import type { Codec, Registry } from '@polkadot/types/types';
|
import type { Codec, Registry } from '@polkadot/types/types';
|
||||||
import type { AbiConstructor, AbiEvent, AbiMessage, AbiParam, DecodedEvent, DecodedMessage } from '../types';
|
import type { AbiConstructor, AbiEvent, AbiMessage, AbiParam, DecodedEvent, DecodedMessage } from '../types.js';
|
||||||
|
|
||||||
import { TypeRegistry } from '@polkadot/types';
|
import { TypeRegistry } from '@polkadot/types';
|
||||||
import { TypeDefInfo } from '@polkadot/types-create';
|
import { TypeDefInfo } from '@polkadot/types-create';
|
||||||
import { assertReturn, compactAddLength, compactStripLength, isNumber, isObject, isString, logger, stringCamelCase, stringify, u8aConcat, u8aToHex } from '@polkadot/util';
|
import { assertReturn, compactAddLength, compactStripLength, isNumber, isObject, isString, logger, stringCamelCase, stringify, u8aConcat, u8aToHex } from '@polkadot/util';
|
||||||
|
|
||||||
import { convertVersions, enumVersions } from './toLatest';
|
import { convertVersions, enumVersions } from './toLatest.js';
|
||||||
|
|
||||||
const l = logger('Abi');
|
const l = logger('Abi');
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
/// <reference types="@polkadot/dev/node/test/node" />
|
||||||
|
|
||||||
import { TypeRegistry } from '@polkadot/types';
|
import { TypeRegistry } from '@polkadot/types';
|
||||||
|
|
||||||
import abis from '../test/contracts';
|
import abis from '../test/contracts/index.js';
|
||||||
import { v0ToLatest, v1ToLatest, v2ToLatest, v3ToLatest, v4ToLatest } from './toLatest';
|
import { v0ToLatest, v1ToLatest, v2ToLatest, v3ToLatest, v4ToLatest } from './toLatest.js';
|
||||||
|
|
||||||
describe('v0ToLatest', (): void => {
|
describe('v0ToLatest', (): void => {
|
||||||
const registry = new TypeRegistry();
|
const registry = new TypeRegistry();
|
||||||
|
|||||||
@@ -4,14 +4,14 @@
|
|||||||
import type { ContractMetadataLatest, ContractMetadataV4 } from '@polkadot/types/interfaces';
|
import type { ContractMetadataLatest, ContractMetadataV4 } from '@polkadot/types/interfaces';
|
||||||
import type { Registry } from '@polkadot/types/types';
|
import type { Registry } from '@polkadot/types/types';
|
||||||
|
|
||||||
import { v0ToV1 } from './toV1';
|
import { v0ToV1 } from './toV1.js';
|
||||||
import { v1ToV2 } from './toV2';
|
import { v1ToV2 } from './toV2.js';
|
||||||
import { v2ToV3 } from './toV3';
|
import { v2ToV3 } from './toV3.js';
|
||||||
import { v3ToV4 } from './toV4';
|
import { v3ToV4 } from './toV4.js';
|
||||||
|
|
||||||
// The versions where an enum is used, aka V0 is missing
|
// The versions where an enum is used, aka V0 is missing
|
||||||
// (Order from newest, i.e. we expect more on newest vs oldest)
|
// (Order from newest, i.e. we expect more on newest vs oldest)
|
||||||
export const enumVersions = <const> ['V4', 'V3', 'V2', 'V1'];
|
export const enumVersions = ['V4', 'V3', 'V2', 'V1'] as const;
|
||||||
|
|
||||||
type Versions = typeof enumVersions[number] | 'V0';
|
type Versions = typeof enumVersions[number] | 'V0';
|
||||||
|
|
||||||
|
|||||||
@@ -23,11 +23,11 @@ interface ArgsEntry <T extends WithArgs> extends NamedEntry {
|
|||||||
args: GetArgsType<T>['args'][0][];
|
args: GetArgsType<T>['args'][0][];
|
||||||
}
|
}
|
||||||
|
|
||||||
const ARG_TYPES = <const> {
|
const ARG_TYPES = {
|
||||||
ContractConstructorSpec: 'ContractMessageParamSpecV2',
|
ContractConstructorSpec: 'ContractMessageParamSpecV2',
|
||||||
ContractEventSpec: 'ContractEventParamSpecV2',
|
ContractEventSpec: 'ContractEventParamSpecV2',
|
||||||
ContractMessageSpec: 'ContractMessageParamSpecV2'
|
ContractMessageSpec: 'ContractMessageParamSpecV2'
|
||||||
};
|
} as const;
|
||||||
|
|
||||||
function v1ToV2Label (entry: NamedEntry): { label: Text } {
|
function v1ToV2Label (entry: NamedEntry): { label: Text } {
|
||||||
return objectSpread({}, entry, {
|
return objectSpread({}, entry, {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import type { Registry } from '@polkadot/types/types';
|
|||||||
import { ApiBase } from '@polkadot/api/base';
|
import { ApiBase } from '@polkadot/api/base';
|
||||||
import { isFunction } from '@polkadot/util';
|
import { isFunction } from '@polkadot/util';
|
||||||
|
|
||||||
import { Abi } from '../Abi';
|
import { Abi } from '../Abi/index.js';
|
||||||
|
|
||||||
export abstract class Base<ApiType extends ApiTypes> {
|
export abstract class Base<ApiType extends ApiTypes> {
|
||||||
readonly abi: Abi;
|
readonly abi: Abi;
|
||||||
|
|||||||
@@ -5,18 +5,18 @@ import type { SubmittableExtrinsic } from '@polkadot/api/submittable/types';
|
|||||||
import type { ApiTypes, DecorateMethod } from '@polkadot/api/types';
|
import type { ApiTypes, DecorateMethod } from '@polkadot/api/types';
|
||||||
import type { AccountId, EventRecord, Hash } from '@polkadot/types/interfaces';
|
import type { AccountId, EventRecord, Hash } from '@polkadot/types/interfaces';
|
||||||
import type { ISubmittableResult } from '@polkadot/types/types';
|
import type { ISubmittableResult } from '@polkadot/types/types';
|
||||||
import type { AbiConstructor, BlueprintOptions } from '../types';
|
import type { AbiConstructor, BlueprintOptions } from '../types.js';
|
||||||
import type { MapConstructorExec } from './types';
|
import type { MapConstructorExec } from './types.js';
|
||||||
|
|
||||||
import { SubmittableResult } from '@polkadot/api';
|
import { SubmittableResult } from '@polkadot/api';
|
||||||
import { ApiBase } from '@polkadot/api/base';
|
import { ApiBase } from '@polkadot/api/base';
|
||||||
import { BN_ZERO, isUndefined } from '@polkadot/util';
|
import { BN_ZERO, isUndefined } from '@polkadot/util';
|
||||||
|
|
||||||
import { Abi } from '../Abi';
|
import { Abi } from '../Abi/index.js';
|
||||||
import { applyOnEvent } from '../util';
|
import { applyOnEvent } from '../util.js';
|
||||||
import { Base } from './Base';
|
import { Base } from './Base.js';
|
||||||
import { Contract } from './Contract';
|
import { Contract } from './Contract.js';
|
||||||
import { convertWeight, createBluePrintTx, encodeSalt } from './util';
|
import { convertWeight, createBluePrintTx, encodeSalt } from './util.js';
|
||||||
|
|
||||||
export interface BlueprintConstructor<ApiType extends ApiTypes> {
|
export interface BlueprintConstructor<ApiType extends ApiTypes> {
|
||||||
new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, codeHash: string | Hash | Uint8Array): Blueprint<ApiType>;
|
new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, codeHash: string | Hash | Uint8Array): Blueprint<ApiType>;
|
||||||
|
|||||||
@@ -1,17 +1,19 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import fs from 'fs';
|
/// <reference types="@polkadot/dev/node/test/node" />
|
||||||
import path from 'path';
|
|
||||||
import process from 'process';
|
import fs from 'node:fs';
|
||||||
|
import path from 'node:path';
|
||||||
|
import process from 'node:process';
|
||||||
|
|
||||||
import { toPromiseMethod } from '@polkadot/api';
|
import { toPromiseMethod } from '@polkadot/api';
|
||||||
|
|
||||||
import v0contractFlipper from '../test/contracts/ink/v0/flipper.contract.json' assert { type: 'json' };
|
import v0contractFlipper from '../test/contracts/ink/v0/flipper.contract.json' assert { type: 'json' };
|
||||||
import v0abiFlipper from '../test/contracts/ink/v0/flipper.json' assert { type: 'json' };
|
import v0abiFlipper from '../test/contracts/ink/v0/flipper.json' assert { type: 'json' };
|
||||||
import v1contractFlipper from '../test/contracts/ink/v1/flipper.contract.json' assert { type: 'json' };
|
import v1contractFlipper from '../test/contracts/ink/v1/flipper.contract.json' assert { type: 'json' };
|
||||||
import { Code } from './Code';
|
import { Code } from './Code.js';
|
||||||
import { mockApi } from './mock';
|
import { mockApi } from './mock.js';
|
||||||
|
|
||||||
// FIXME When Jest is removed with ESM tests, this should be converted to use import.meta.url
|
// FIXME When Jest is removed with ESM tests, this should be converted to use import.meta.url
|
||||||
const v0wasmFlipper = fs.readFileSync(path.join(process.cwd(), 'packages/api-contract/src/test/contracts/ink/v0/flipper.wasm'), 'utf-8');
|
const v0wasmFlipper = fs.readFileSync(path.join(process.cwd(), 'packages/api-contract/src/test/contracts/ink/v0/flipper.wasm'), 'utf-8');
|
||||||
|
|||||||
@@ -6,19 +6,19 @@ import type { ApiTypes, DecorateMethod } from '@polkadot/api/types';
|
|||||||
import type { AccountId, EventRecord } from '@polkadot/types/interfaces';
|
import type { AccountId, EventRecord } from '@polkadot/types/interfaces';
|
||||||
import type { ISubmittableResult } from '@polkadot/types/types';
|
import type { ISubmittableResult } from '@polkadot/types/types';
|
||||||
import type { Codec } from '@polkadot/types-codec/types';
|
import type { Codec } from '@polkadot/types-codec/types';
|
||||||
import type { AbiConstructor, BlueprintOptions } from '../types';
|
import type { AbiConstructor, BlueprintOptions } from '../types.js';
|
||||||
import type { MapConstructorExec } from './types';
|
import type { MapConstructorExec } from './types.js';
|
||||||
|
|
||||||
import { SubmittableResult } from '@polkadot/api';
|
import { SubmittableResult } from '@polkadot/api';
|
||||||
import { ApiBase } from '@polkadot/api/base';
|
import { ApiBase } from '@polkadot/api/base';
|
||||||
import { BN_ZERO, compactAddLength, isUndefined, isWasm, u8aToU8a } from '@polkadot/util';
|
import { BN_ZERO, compactAddLength, isUndefined, isWasm, u8aToU8a } from '@polkadot/util';
|
||||||
|
|
||||||
import { Abi } from '../Abi';
|
import { Abi } from '../Abi/index.js';
|
||||||
import { applyOnEvent } from '../util';
|
import { applyOnEvent } from '../util.js';
|
||||||
import { Base } from './Base';
|
import { Base } from './Base.js';
|
||||||
import { Blueprint } from './Blueprint';
|
import { Blueprint } from './Blueprint.js';
|
||||||
import { Contract } from './Contract';
|
import { Contract } from './Contract.js';
|
||||||
import { convertWeight, createBluePrintTx, encodeSalt } from './util';
|
import { convertWeight, createBluePrintTx, encodeSalt } from './util.js';
|
||||||
|
|
||||||
export interface CodeConstructor<ApiType extends ApiTypes> {
|
export interface CodeConstructor<ApiType extends ApiTypes> {
|
||||||
new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, wasm: Uint8Array | string | Buffer | null | undefined): Code<ApiType>;
|
new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, wasm: Uint8Array | string | Buffer | null | undefined): Code<ApiType>;
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import type { ApiTypes, DecorateMethod } from '@polkadot/api/types';
|
|||||||
import type { Bytes } from '@polkadot/types';
|
import type { Bytes } from '@polkadot/types';
|
||||||
import type { AccountId, ContractExecResult, EventRecord, Weight, WeightV2 } from '@polkadot/types/interfaces';
|
import type { AccountId, ContractExecResult, EventRecord, Weight, WeightV2 } from '@polkadot/types/interfaces';
|
||||||
import type { ISubmittableResult } from '@polkadot/types/types';
|
import type { ISubmittableResult } from '@polkadot/types/types';
|
||||||
import type { AbiMessage, ContractCallOutcome, ContractOptions, DecodedEvent, WeightAll } from '../types';
|
import type { AbiMessage, ContractCallOutcome, ContractOptions, DecodedEvent, WeightAll } from '../types.js';
|
||||||
import type { ContractCallResult, ContractCallSend, ContractQuery, ContractTx, MapMessageQuery, MapMessageTx } from './types';
|
import type { ContractCallResult, ContractCallSend, ContractQuery, ContractTx, MapMessageQuery, MapMessageTx } from './types.js';
|
||||||
|
|
||||||
import { map } from 'rxjs';
|
import { map } from 'rxjs';
|
||||||
|
|
||||||
@@ -15,10 +15,10 @@ import { SubmittableResult } from '@polkadot/api';
|
|||||||
import { ApiBase } from '@polkadot/api/base';
|
import { ApiBase } from '@polkadot/api/base';
|
||||||
import { BN, BN_HUNDRED, BN_ONE, BN_ZERO, isUndefined, logger } from '@polkadot/util';
|
import { BN, BN_HUNDRED, BN_ONE, BN_ZERO, isUndefined, logger } from '@polkadot/util';
|
||||||
|
|
||||||
import { Abi } from '../Abi';
|
import { Abi } from '../Abi/index.js';
|
||||||
import { applyOnEvent } from '../util';
|
import { applyOnEvent } from '../util.js';
|
||||||
import { Base } from './Base';
|
import { Base } from './Base.js';
|
||||||
import { convertWeight, withMeta } from './util';
|
import { convertWeight, withMeta } from './util.js';
|
||||||
|
|
||||||
export interface ContractConstructor<ApiType extends ApiTypes> {
|
export interface ContractConstructor<ApiType extends ApiTypes> {
|
||||||
new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, address: string | AccountId): Contract<ApiType>;
|
new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, address: string | AccountId): Contract<ApiType>;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
// Copyright 2017-2023 @polkadot/api authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { Blueprint, BlueprintSubmittableResult, extendBlueprint } from './Blueprint';
|
export { Blueprint, BlueprintSubmittableResult, extendBlueprint } from './Blueprint.js';
|
||||||
export { Code, CodeSubmittableResult, extendCode } from './Code';
|
export { Code, CodeSubmittableResult, extendCode } from './Code.js';
|
||||||
export { Contract, extendContract } from './Contract';
|
export { Contract, extendContract } from './Contract.js';
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import type { Observable } from 'rxjs';
|
|||||||
import type { SubmittableExtrinsic } from '@polkadot/api/submittable/types';
|
import type { SubmittableExtrinsic } from '@polkadot/api/submittable/types';
|
||||||
import type { ApiTypes, ObsInnerType } from '@polkadot/api/types';
|
import type { ApiTypes, ObsInnerType } from '@polkadot/api/types';
|
||||||
import type { AccountId } from '@polkadot/types/interfaces';
|
import type { AccountId } from '@polkadot/types/interfaces';
|
||||||
import type { AbiMessage, BlueprintOptions, ContractCallOutcome, ContractOptions } from '../types';
|
import type { AbiMessage, BlueprintOptions, ContractCallOutcome, ContractOptions } from '../types.js';
|
||||||
|
|
||||||
export interface MessageMeta {
|
export interface MessageMeta {
|
||||||
readonly meta: AbiMessage;
|
readonly meta: AbiMessage;
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import type { SubmittableExtrinsic } from '@polkadot/api/submittable/types';
|
|||||||
import type { ApiTypes } from '@polkadot/api/types';
|
import type { ApiTypes } from '@polkadot/api/types';
|
||||||
import type { WeightV1, WeightV2 } from '@polkadot/types/interfaces';
|
import type { WeightV1, WeightV2 } from '@polkadot/types/interfaces';
|
||||||
import type { BN } from '@polkadot/util';
|
import type { BN } from '@polkadot/util';
|
||||||
import type { AbiConstructor, AbiMessage, BlueprintOptions, WeightAll } from '../types';
|
import type { AbiConstructor, AbiMessage, BlueprintOptions, WeightAll } from '../types.js';
|
||||||
import type { BlueprintDeploy, ContractGeneric } from './types';
|
import type { BlueprintDeploy, ContractGeneric } from './types.js';
|
||||||
|
|
||||||
import { Bytes } from '@polkadot/types';
|
import { Bytes } from '@polkadot/types';
|
||||||
import { bnToBn, compactAddLength, u8aToU8a } from '@polkadot/util';
|
import { bnToBn, compactAddLength, u8aToU8a } from '@polkadot/util';
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { Abi } from './Abi';
|
export { Abi } from './Abi/index.js';
|
||||||
export { packageInfo } from './packageInfo';
|
export { packageInfo } from './packageInfo.js';
|
||||||
|
|
||||||
export * from './promise';
|
export * from './promise/index.js';
|
||||||
export * from './rx';
|
export * from './rx/index.js';
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
import { detectPackage } from '@polkadot/util';
|
import { detectPackage } from '@polkadot/util';
|
||||||
|
|
||||||
import others from './detectOther';
|
import others from './detectOther.js';
|
||||||
import { packageInfo } from './packageInfo';
|
import { packageInfo } from './packageInfo.js';
|
||||||
|
|
||||||
detectPackage(packageInfo, null, others);
|
detectPackage(packageInfo, null, others);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import './detectPackage';
|
import './detectPackage.js';
|
||||||
|
|
||||||
export * from './bundle';
|
export * from './bundle.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './index';
|
export * from './index.js';
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.14.2' };
|
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '10.1.2' };
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import type { AccountId, Hash } from '@polkadot/types/interfaces';
|
|||||||
|
|
||||||
import { ApiPromise, toPromiseMethod } from '@polkadot/api';
|
import { ApiPromise, toPromiseMethod } from '@polkadot/api';
|
||||||
|
|
||||||
import { Abi } from '../Abi';
|
import { Abi } from '../Abi/index.js';
|
||||||
import { Blueprint, Code, Contract } from '../base';
|
import { Blueprint, Code, Contract } from '../base/index.js';
|
||||||
|
|
||||||
export class BlueprintPromise extends Blueprint<'promise'> {
|
export class BlueprintPromise extends Blueprint<'promise'> {
|
||||||
constructor (api: ApiPromise, abi: string | Record<string, unknown> | Abi, codeHash: string | Hash) {
|
constructor (api: ApiPromise, abi: string | Record<string, unknown> | Abi, codeHash: string | Hash) {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { BlueprintSubmittableResult as BaseBlueprintSubmittableResult, CodeSubmittableResult as BaseCodeSubmittableResult } from '../base';
|
import type { BlueprintSubmittableResult as BaseBlueprintSubmittableResult, CodeSubmittableResult as BaseCodeSubmittableResult } from '../base/index.js';
|
||||||
|
|
||||||
export type BlueprintSubmittableResult = BaseBlueprintSubmittableResult<'promise'>;
|
export type BlueprintSubmittableResult = BaseBlueprintSubmittableResult<'promise'>;
|
||||||
export type CodeSubmittableResult = BaseCodeSubmittableResult<'promise'>;
|
export type CodeSubmittableResult = BaseCodeSubmittableResult<'promise'>;
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import type { AccountId, Hash } from '@polkadot/types/interfaces';
|
|||||||
|
|
||||||
import { ApiRx, toRxMethod } from '@polkadot/api';
|
import { ApiRx, toRxMethod } from '@polkadot/api';
|
||||||
|
|
||||||
import { Abi } from '../Abi';
|
import { Abi } from '../Abi/index.js';
|
||||||
import { Blueprint, Code, Contract } from '../base';
|
import { Blueprint, Code, Contract } from '../base/index.js';
|
||||||
|
|
||||||
export class BlueprintRx extends Blueprint<'rxjs'> {
|
export class BlueprintRx extends Blueprint<'rxjs'> {
|
||||||
constructor (api: ApiRx, abi: string | Record<string, unknown> | Abi, codeHash: string | Hash) {
|
constructor (api: ApiRx, abi: string | Record<string, unknown> | Abi, codeHash: string | Hash) {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { BlueprintSubmittableResult as BaseBlueprintSubmittableResult, CodeSubmittableResult as BaseCodeSubmittableResult } from '../base';
|
import type { BlueprintSubmittableResult as BaseBlueprintSubmittableResult, CodeSubmittableResult as BaseCodeSubmittableResult } from '../base/index.js';
|
||||||
|
|
||||||
export type BlueprintSubmittableResult = BaseBlueprintSubmittableResult<'promise'>;
|
export type BlueprintSubmittableResult = BaseBlueprintSubmittableResult<'promise'>;
|
||||||
export type CodeSubmittableResult = BaseCodeSubmittableResult<'promise'>;
|
export type CodeSubmittableResult = BaseCodeSubmittableResult<'promise'>;
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import ink from './ink';
|
import ink from './ink/index.js';
|
||||||
import solang from './solang';
|
import solang from './solang/index.js';
|
||||||
import user from './user';
|
import user from './user/index.js';
|
||||||
|
|
||||||
const all: Record<string, Record<string, unknown>> = {};
|
const all: Record<string, Record<string, unknown>> = {};
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { createVersionedExport } from '../util';
|
import { createVersionedExport } from '../util.js';
|
||||||
import * as v0 from './v0';
|
import * as v0 from './v0/index.js';
|
||||||
import * as v1 from './v1';
|
import * as v1 from './v1/index.js';
|
||||||
import * as v2 from './v2';
|
import * as v2 from './v2/index.js';
|
||||||
import * as v3 from './v3';
|
import * as v3 from './v3/index.js';
|
||||||
import * as v4 from './v4';
|
import * as v4 from './v4/index.js';
|
||||||
|
|
||||||
export default createVersionedExport({ v0, v1, v2, v3, v4 });
|
export default createVersionedExport({ v0, v1, v2, v3, v4 });
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { createVersionedExport } from '../util';
|
import { createVersionedExport } from '../util.js';
|
||||||
import * as v0 from './v0';
|
import * as v0 from './v0/index.js';
|
||||||
|
|
||||||
export default createVersionedExport({ v0 });
|
export default createVersionedExport({ v0 });
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { createVersionedExport } from '../util';
|
import { createVersionedExport } from '../util.js';
|
||||||
import * as v0 from './v0';
|
import * as v0 from './v0/index.js';
|
||||||
import * as v3 from './v3';
|
import * as v3 from './v3/index.js';
|
||||||
|
|
||||||
export default createVersionedExport({ v0, v3 });
|
export default createVersionedExport({ v0, v3 });
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import type { Text } from '@polkadot/types';
|
|||||||
import type { ContractExecResultResult, ContractSelector, StorageDeposit, Weight, WeightV2 } from '@polkadot/types/interfaces';
|
import type { ContractExecResultResult, ContractSelector, StorageDeposit, Weight, WeightV2 } from '@polkadot/types/interfaces';
|
||||||
import type { Codec, TypeDef } from '@polkadot/types/types';
|
import type { Codec, TypeDef } from '@polkadot/types/types';
|
||||||
import type { BN } from '@polkadot/util';
|
import type { BN } from '@polkadot/util';
|
||||||
import type { Abi } from '.';
|
import type { Abi } from './index.js';
|
||||||
|
|
||||||
export interface ContractBase<ApiType extends ApiTypes> {
|
export interface ContractBase<ApiType extends ApiTypes> {
|
||||||
readonly abi: Abi;
|
readonly abi: Abi;
|
||||||
|
|||||||
@@ -20,25 +20,25 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.2",
|
"version": "10.1.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.13",
|
"@polkadot/api": "10.1.2",
|
||||||
"@polkadot/api": "9.14.2",
|
"@polkadot/api-augment": "10.1.2",
|
||||||
"@polkadot/api-augment": "9.14.2",
|
"@polkadot/api-base": "10.1.2",
|
||||||
"@polkadot/api-base": "9.14.2",
|
"@polkadot/rpc-core": "10.1.2",
|
||||||
"@polkadot/rpc-core": "9.14.2",
|
"@polkadot/types": "10.1.2",
|
||||||
"@polkadot/types": "9.14.2",
|
"@polkadot/types-codec": "10.1.2",
|
||||||
"@polkadot/types-codec": "9.14.2",
|
"@polkadot/util": "^11.0.2",
|
||||||
"@polkadot/util": "^10.4.2",
|
"@polkadot/util-crypto": "^11.0.2",
|
||||||
"@polkadot/util-crypto": "^10.4.2",
|
"rxjs": "^7.8.0",
|
||||||
"rxjs": "^7.8.0"
|
"tslib": "^2.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api": "9.14.2",
|
"@polkadot/api": "10.1.2",
|
||||||
"@polkadot/api-augment": "9.14.2",
|
"@polkadot/api-augment": "10.1.2",
|
||||||
"@polkadot/rpc-augment": "9.14.2",
|
"@polkadot/rpc-augment": "10.1.2",
|
||||||
"@polkadot/rpc-provider": "9.14.2",
|
"@polkadot/rpc-provider": "10.1.2",
|
||||||
"@polkadot/types-support": "9.14.2"
|
"@polkadot/types-support": "10.1.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,14 +3,14 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces';
|
import type { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces';
|
||||||
import type { DeriveApi } from '../types';
|
import type { DeriveApi } from '../types.js';
|
||||||
|
|
||||||
import { map, of } from 'rxjs';
|
import { map, of } from 'rxjs';
|
||||||
|
|
||||||
import { assertReturn, isU8a } from '@polkadot/util';
|
import { assertReturn, isU8a } from '@polkadot/util';
|
||||||
import { decodeAddress } from '@polkadot/util-crypto';
|
import { decodeAddress } from '@polkadot/util-crypto';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name accountId
|
* @name accountId
|
||||||
|
|||||||
@@ -6,13 +6,13 @@ import type { AccountId, Address, Balance } from '@polkadot/types/interfaces';
|
|||||||
import type{ PalletElectionsPhragmenSeatHolder } from '@polkadot/types/lookup';
|
import type{ PalletElectionsPhragmenSeatHolder } from '@polkadot/types/lookup';
|
||||||
import type { Codec } from '@polkadot/types/types';
|
import type { Codec } from '@polkadot/types/types';
|
||||||
import type { Option } from '@polkadot/types-codec';
|
import type { Option } from '@polkadot/types-codec';
|
||||||
import type { DeriveAccountFlags, DeriveApi } from '../types';
|
import type { DeriveAccountFlags, DeriveApi } from '../types.js';
|
||||||
|
|
||||||
import { map, of } from 'rxjs';
|
import { map, of } from 'rxjs';
|
||||||
|
|
||||||
import { isFunction } from '@polkadot/util';
|
import { isFunction } from '@polkadot/util';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
|
|
||||||
type FlagsIntermediate = [
|
type FlagsIntermediate = [
|
||||||
PalletElectionsPhragmenSeatHolder[] | [AccountId, Balance][] | undefined,
|
PalletElectionsPhragmenSeatHolder[] | [AccountId, Balance][] | undefined,
|
||||||
|
|||||||
@@ -3,14 +3,14 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces';
|
import type { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces';
|
||||||
import type { AccountIdAndIndex, DeriveApi } from '../types';
|
import type { AccountIdAndIndex, DeriveApi } from '../types.js';
|
||||||
|
|
||||||
import { map, of } from 'rxjs';
|
import { map, of } from 'rxjs';
|
||||||
|
|
||||||
import { isU8a } from '@polkadot/util';
|
import { isU8a } from '@polkadot/util';
|
||||||
import { decodeAddress } from '@polkadot/util-crypto';
|
import { decodeAddress } from '@polkadot/util-crypto';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name idAndIndex
|
* @name idAndIndex
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { AccountId, AccountIndex } from '@polkadot/types/interfaces';
|
import type { AccountId, AccountIndex } from '@polkadot/types/interfaces';
|
||||||
import type { AccountIndexes, DeriveApi } from '../types';
|
import type { AccountIndexes, DeriveApi } from '../types.js';
|
||||||
|
|
||||||
import { map } from 'rxjs';
|
import { map } from 'rxjs';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name idToIndex
|
* @name idToIndex
|
||||||
|
|||||||
@@ -7,13 +7,13 @@ import type { AccountId } from '@polkadot/types/interfaces';
|
|||||||
import type { PalletIdentityIdentityInfo, PalletIdentityRegistration } from '@polkadot/types/lookup';
|
import type { PalletIdentityIdentityInfo, PalletIdentityRegistration } from '@polkadot/types/lookup';
|
||||||
import type { Option } from '@polkadot/types-codec';
|
import type { Option } from '@polkadot/types-codec';
|
||||||
import type { ITuple } from '@polkadot/types-codec/types';
|
import type { ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { DeriveAccountRegistration, DeriveApi, DeriveHasIdentity } from '../types';
|
import type { DeriveAccountRegistration, DeriveApi, DeriveHasIdentity } from '../types.js';
|
||||||
|
|
||||||
import { combineLatest, map, of, switchMap } from 'rxjs';
|
import { combineLatest, map, of, switchMap } from 'rxjs';
|
||||||
|
|
||||||
import { isHex, u8aToString } from '@polkadot/util';
|
import { isHex, u8aToString } from '@polkadot/util';
|
||||||
|
|
||||||
import { firstMemo, memo } from '../util';
|
import { firstMemo, memo } from '../util/index.js';
|
||||||
|
|
||||||
type IdentityInfoAdditional = PalletIdentityIdentityInfo['additional'][0];
|
type IdentityInfoAdditional = PalletIdentityIdentityInfo['additional'][0];
|
||||||
|
|
||||||
@@ -111,7 +111,7 @@ export function identity (instanceId: string, api: DeriveApi): (accountId?: Acco
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export const hasIdentity = firstMemo(
|
export const hasIdentity = /*#__PURE__*/ firstMemo(
|
||||||
(api: DeriveApi, accountId: AccountId | Uint8Array | string) =>
|
(api: DeriveApi, accountId: AccountId | Uint8Array | string) =>
|
||||||
api.derive.accounts.hasIdentityMulti([accountId])
|
api.derive.accounts.hasIdentityMulti([accountId])
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './accountId';
|
export * from './accountId.js';
|
||||||
export * from './flags';
|
export * from './flags.js';
|
||||||
export * from './idAndIndex';
|
export * from './idAndIndex.js';
|
||||||
export * from './idToIndex';
|
export * from './idToIndex.js';
|
||||||
export * from './identity';
|
export * from './identity.js';
|
||||||
export * from './indexToId';
|
export * from './indexToId.js';
|
||||||
export * from './indexes';
|
export * from './indexes.js';
|
||||||
export * from './info';
|
export * from './info.js';
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { AccountId, AccountIndex } from '@polkadot/types/interfaces';
|
import type { AccountId, AccountIndex } from '@polkadot/types/interfaces';
|
||||||
import type { DeriveApi } from '../types';
|
import type { DeriveApi } from '../types.js';
|
||||||
|
|
||||||
import { map, of } from 'rxjs';
|
import { map, of } from 'rxjs';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name indexToId
|
* @name indexToId
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { AccountIndexes, DeriveApi } from '../types';
|
import type { AccountIndexes, DeriveApi } from '../types.js';
|
||||||
|
|
||||||
import { map, of, startWith } from 'rxjs';
|
import { map, of, startWith } from 'rxjs';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
|
|
||||||
let indicesCache: AccountIndexes | null = null;
|
let indicesCache: AccountIndexes | null = null;
|
||||||
|
|
||||||
|
|||||||
@@ -5,13 +5,13 @@ import type { Observable } from 'rxjs';
|
|||||||
import type { Bytes, Option, u32 } from '@polkadot/types';
|
import type { Bytes, Option, u32 } from '@polkadot/types';
|
||||||
import type { AccountId, AccountIndex, Address, Balance } from '@polkadot/types/interfaces';
|
import type { AccountId, AccountIndex, Address, Balance } from '@polkadot/types/interfaces';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
import type { DeriveAccountInfo, DeriveAccountRegistration, DeriveApi } from '../types';
|
import type { DeriveAccountInfo, DeriveAccountRegistration, DeriveApi } from '../types.js';
|
||||||
|
|
||||||
import { combineLatest, map, of, switchMap } from 'rxjs';
|
import { combineLatest, map, of, switchMap } from 'rxjs';
|
||||||
|
|
||||||
import { u8aToString } from '@polkadot/util';
|
import { u8aToString } from '@polkadot/util';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
|
|
||||||
function retrieveNick (api: DeriveApi, accountId?: AccountId): Observable<string | undefined> {
|
function retrieveNick (api: DeriveApi, accountId?: AccountId): Observable<string | undefined> {
|
||||||
return ((
|
return ((
|
||||||
|
|||||||
@@ -1,14 +1,18 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { hasProposals as collectiveHasProposals, members as collectiveMembers, prime as collectivePrime, proposal as collectiveProposal, proposalCount as collectiveProposalCount, proposalHashes as collectiveProposalHashes, proposals as collectiveProposals } from '../collective';
|
import { hasProposals as collectiveHasProposals, members as collectiveMembers, prime as collectivePrime, proposal as collectiveProposal, proposalCount as collectiveProposalCount, proposalHashes as collectiveProposalHashes, proposals as collectiveProposals } from '../collective/index.js';
|
||||||
|
|
||||||
export const members = collectiveMembers('allianceMotion');
|
// We are re-exporting these from here to ensure that *.d.ts generation is correct
|
||||||
|
export type { u32 } from '@polkadot/types';
|
||||||
|
export type { AccountId } from '@polkadot/types/interfaces';
|
||||||
|
|
||||||
export const hasProposals = collectiveHasProposals('allianceMotion');
|
export const members = /*#__PURE__*/ collectiveMembers('allianceMotion');
|
||||||
export const proposal = collectiveProposal('allianceMotion');
|
|
||||||
export const proposalCount = collectiveProposalCount('allianceMotion');
|
|
||||||
export const proposalHashes = collectiveProposalHashes('allianceMotion');
|
|
||||||
export const proposals = collectiveProposals('allianceMotion');
|
|
||||||
|
|
||||||
export const prime = collectivePrime('allianceMotion');
|
export const hasProposals = /*#__PURE__*/ collectiveHasProposals('allianceMotion');
|
||||||
|
export const proposal = /*#__PURE__*/ collectiveProposal('allianceMotion');
|
||||||
|
export const proposalCount = /*#__PURE__*/ collectiveProposalCount('allianceMotion');
|
||||||
|
export const proposalHashes = /*#__PURE__*/ collectiveProposalHashes('allianceMotion');
|
||||||
|
export const proposals = /*#__PURE__*/ collectiveProposals('allianceMotion');
|
||||||
|
|
||||||
|
export const prime = /*#__PURE__*/ collectivePrime('allianceMotion');
|
||||||
|
|||||||
@@ -5,15 +5,15 @@ import type { Observable } from 'rxjs';
|
|||||||
import type { Option, u64 } from '@polkadot/types';
|
import type { Option, u64 } from '@polkadot/types';
|
||||||
import type { PalletBagsListListBag } from '@polkadot/types/lookup';
|
import type { PalletBagsListListBag } from '@polkadot/types/lookup';
|
||||||
import type { BN } from '@polkadot/util';
|
import type { BN } from '@polkadot/util';
|
||||||
import type { DeriveApi } from '../types';
|
import type { DeriveApi } from '../types.js';
|
||||||
import type { Bag } from './types';
|
import type { Bag } from './types.js';
|
||||||
|
|
||||||
import { map, of, switchMap } from 'rxjs';
|
import { map, of, switchMap } from 'rxjs';
|
||||||
|
|
||||||
import { BN_ZERO, bnToBn, objectSpread } from '@polkadot/util';
|
import { BN_ZERO, bnToBn, objectSpread } from '@polkadot/util';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
import { getQueryInterface } from './util';
|
import { getQueryInterface } from './util.js';
|
||||||
|
|
||||||
function orderBags (ids: BN[], bags: Option<PalletBagsListListBag>[]): Bag[] {
|
function orderBags (ids: BN[], bags: Option<PalletBagsListListBag>[]): Bag[] {
|
||||||
const sorted = ids
|
const sorted = ids
|
||||||
|
|||||||
@@ -3,14 +3,14 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { BN } from '@polkadot/util';
|
import type { BN } from '@polkadot/util';
|
||||||
import type { DeriveApi } from '../types';
|
import type { DeriveApi } from '../types.js';
|
||||||
import type { Bag, BagExpanded } from './types';
|
import type { Bag, BagExpanded } from './types.js';
|
||||||
|
|
||||||
import { map, switchMap } from 'rxjs';
|
import { map, switchMap } from 'rxjs';
|
||||||
|
|
||||||
import { objectSpread } from '@polkadot/util';
|
import { objectSpread } from '@polkadot/util';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
|
|
||||||
export function expand (instanceId: string, api: DeriveApi): (bag: Bag) => Observable<BagExpanded> {
|
export function expand (instanceId: string, api: DeriveApi): (bag: Bag) => Observable<BagExpanded> {
|
||||||
return memo(instanceId, (bag: Bag): Observable<BagExpanded> =>
|
return memo(instanceId, (bag: Bag): Observable<BagExpanded> =>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './get';
|
export * from './get.js';
|
||||||
export * from './getExpanded';
|
export * from './getExpanded.js';
|
||||||
export * from './listNodes';
|
export * from './listNodes.js';
|
||||||
|
|||||||
@@ -5,14 +5,14 @@ import type { Observable } from 'rxjs';
|
|||||||
import type { Option } from '@polkadot/types';
|
import type { Option } from '@polkadot/types';
|
||||||
import type { AccountId32 } from '@polkadot/types/interfaces';
|
import type { AccountId32 } from '@polkadot/types/interfaces';
|
||||||
import type { PalletBagsListListBag, PalletBagsListListNode } from '@polkadot/types/lookup';
|
import type { PalletBagsListListBag, PalletBagsListListNode } from '@polkadot/types/lookup';
|
||||||
import type { DeriveApi } from '../types';
|
import type { DeriveApi } from '../types.js';
|
||||||
|
|
||||||
import { BehaviorSubject, map, of, switchMap, tap, toArray } from 'rxjs';
|
import { BehaviorSubject, map, of, switchMap, tap, toArray } from 'rxjs';
|
||||||
|
|
||||||
import { nextTick } from '@polkadot/util';
|
import { nextTick } from '@polkadot/util';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
import { getQueryInterface } from './util';
|
import { getQueryInterface } from './util.js';
|
||||||
|
|
||||||
function traverseLinks (api: DeriveApi, head: AccountId32 | string): Observable<PalletBagsListListNode[]> {
|
function traverseLinks (api: DeriveApi, head: AccountId32 | string): Observable<PalletBagsListListNode[]> {
|
||||||
const subject = new BehaviorSubject<AccountId32 | string>(head);
|
const subject = new BehaviorSubject<AccountId32 | string>(head);
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { QueryableStorage } from '@polkadot/api-base/types';
|
import type { QueryableStorage } from '@polkadot/api-base/types';
|
||||||
import type { DeriveApi } from '../types';
|
import type { DeriveApi } from '../types.js';
|
||||||
|
|
||||||
export function getQueryInterface (api: DeriveApi): QueryableStorage<'rxjs'>['voterBagsList'] {
|
export function getQueryInterface (api: DeriveApi): QueryableStorage<'rxjs'>['voterBagsList'] {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -5,13 +5,13 @@ import type { Observable } from 'rxjs';
|
|||||||
import type { QueryableStorageEntry } from '@polkadot/api-base/types';
|
import type { QueryableStorageEntry } from '@polkadot/api-base/types';
|
||||||
import type { AccountData, AccountId, AccountIndex, AccountInfo, Address, Balance, Index } from '@polkadot/types/interfaces';
|
import type { AccountData, AccountId, AccountIndex, AccountInfo, Address, Balance, Index } from '@polkadot/types/interfaces';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
import type { DeriveApi, DeriveBalancesAccount, DeriveBalancesAccountData } from '../types';
|
import type { DeriveApi, DeriveBalancesAccount, DeriveBalancesAccountData } from '../types.js';
|
||||||
|
|
||||||
import { combineLatest, map, of, switchMap } from 'rxjs';
|
import { combineLatest, map, of, switchMap } from 'rxjs';
|
||||||
|
|
||||||
import { isFunction, objectSpread } from '@polkadot/util';
|
import { isFunction, objectSpread } from '@polkadot/util';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
|
|
||||||
type BalanceResult = [Balance, Balance, Balance, Balance];
|
type BalanceResult = [Balance, Balance, Balance, Balance];
|
||||||
|
|
||||||
|
|||||||
@@ -5,13 +5,13 @@ import type { Observable } from 'rxjs';
|
|||||||
import type { Option, Vec } from '@polkadot/types';
|
import type { Option, Vec } from '@polkadot/types';
|
||||||
import type { AccountId, Balance, BalanceLockTo212, BlockNumber, VestingSchedule } from '@polkadot/types/interfaces';
|
import type { AccountId, Balance, BalanceLockTo212, BlockNumber, VestingSchedule } from '@polkadot/types/interfaces';
|
||||||
import type { PalletBalancesBalanceLock, PalletBalancesReserveData, PalletVestingVestingInfo } from '@polkadot/types/lookup';
|
import type { PalletBalancesBalanceLock, PalletBalancesReserveData, PalletVestingVestingInfo } from '@polkadot/types/lookup';
|
||||||
import type { DeriveApi, DeriveBalancesAccount, DeriveBalancesAccountData, DeriveBalancesAll, DeriveBalancesAllAccountData, DeriveBalancesAllVesting } from '../types';
|
import type { DeriveApi, DeriveBalancesAccount, DeriveBalancesAccountData, DeriveBalancesAll, DeriveBalancesAllAccountData, DeriveBalancesAllVesting } from '../types.js';
|
||||||
|
|
||||||
import { combineLatest, map, of, switchMap } from 'rxjs';
|
import { combineLatest, map, of, switchMap } from 'rxjs';
|
||||||
|
|
||||||
import { BN, BN_ZERO, bnMax, bnMin, isFunction, objectSpread } from '@polkadot/util';
|
import { BN, BN_ZERO, bnMax, bnMin, isFunction, objectSpread } from '@polkadot/util';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
|
|
||||||
type ResultBalance = [PalletVestingVestingInfo[] | null, ((PalletBalancesBalanceLock | BalanceLockTo212)[])[], PalletBalancesReserveData[][]];
|
type ResultBalance = [PalletVestingVestingInfo[] | null, ((PalletBalancesBalanceLock | BalanceLockTo212)[])[], PalletBalancesReserveData[][]];
|
||||||
type Result = [DeriveBalancesAccount, ResultBalance, BlockNumber];
|
type Result = [DeriveBalancesAccount, ResultBalance, BlockNumber];
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { all } from './all';
|
import { all } from './all.js';
|
||||||
|
|
||||||
export * from './account';
|
export * from './account.js';
|
||||||
export * from './votingBalances';
|
export * from './votingBalances.js';
|
||||||
|
|
||||||
const votingBalance = all;
|
const votingBalance = all;
|
||||||
|
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces';
|
import type { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces';
|
||||||
import type { DeriveApi, DeriveBalancesAccount } from '../types';
|
import type { DeriveApi, DeriveBalancesAccount } from '../types.js';
|
||||||
|
|
||||||
import { combineLatest, of } from 'rxjs';
|
import { combineLatest, of } from 'rxjs';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
|
|
||||||
export function votingBalances (instanceId: string, api: DeriveApi): (addresses?: (AccountId | AccountIndex | Address | string)[]) => Observable<DeriveBalancesAccount[]> {
|
export function votingBalances (instanceId: string, api: DeriveApi): (addresses?: (AccountId | AccountIndex | Address | string)[]) => Observable<DeriveBalancesAccount[]> {
|
||||||
return memo(instanceId, (addresses?: (AccountId | AccountIndex | Address | string)[]): Observable<DeriveBalancesAccount[]> =>
|
return memo(instanceId, (addresses?: (AccountId | AccountIndex | Address | string)[]): Observable<DeriveBalancesAccount[]> =>
|
||||||
|
|||||||
@@ -1,21 +1,23 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
/// <reference types="@polkadot/dev/node/test/node" />
|
||||||
|
|
||||||
import type { SubmittableExtrinsic } from '@polkadot/api-base/types';
|
import type { SubmittableExtrinsic } from '@polkadot/api-base/types';
|
||||||
import type { Bytes, Option, StorageKey } from '@polkadot/types';
|
import type { Bytes, Option, StorageKey } from '@polkadot/types';
|
||||||
import type { Bounty, BountyIndex, Proposal, ProposalIndex } from '@polkadot/types/interfaces';
|
import type { Bounty, BountyIndex, Proposal, ProposalIndex } from '@polkadot/types/interfaces';
|
||||||
import type { Codec, InterfaceTypes } from '@polkadot/types/types';
|
import type { Codec, InterfaceTypes } from '@polkadot/types/types';
|
||||||
import type { DeriveApi, DeriveCollectiveProposal } from '../types';
|
import type { DeriveApi, DeriveCollectiveProposal } from '../types.js';
|
||||||
|
|
||||||
import { firstValueFrom, of } from 'rxjs';
|
import { firstValueFrom, of } from 'rxjs';
|
||||||
|
|
||||||
import { ApiPromise } from '@polkadot/api';
|
import { ApiPromise } from '@polkadot/api';
|
||||||
|
|
||||||
import { BountyFactory } from '../test/bountyFactory';
|
import { BountyFactory } from '../test/bountyFactory.js';
|
||||||
import { BytesFactory } from '../test/bytesFactory';
|
import { BytesFactory } from '../test/bytesFactory.js';
|
||||||
import { createApiWithAugmentations } from '../test/helpers';
|
import { createApiWithAugmentations } from '../test/helpers.js';
|
||||||
import { ProposalFactory } from '../test/proposalFactory';
|
import { ProposalFactory } from '../test/proposalFactory.js';
|
||||||
import { bounties } from '.';
|
import { bounties } from './index.js';
|
||||||
|
|
||||||
const DEFAULT_PROPOSER = '5C4hrfjw9DjXZTzV3MwzrrAr9P1MJhSrvWGWqi1eSuyUpnhM';
|
const DEFAULT_PROPOSER = '5C4hrfjw9DjXZTzV3MwzrrAr9P1MJhSrvWGWqi1eSuyUpnhM';
|
||||||
|
|
||||||
|
|||||||
@@ -5,12 +5,12 @@ import type { Observable } from 'rxjs';
|
|||||||
import type { Bytes, Option } from '@polkadot/types';
|
import type { Bytes, Option } from '@polkadot/types';
|
||||||
import type { BountyIndex } from '@polkadot/types/interfaces';
|
import type { BountyIndex } from '@polkadot/types/interfaces';
|
||||||
import type { PalletBountiesBounty } from '@polkadot/types/lookup';
|
import type { PalletBountiesBounty } from '@polkadot/types/lookup';
|
||||||
import type { DeriveApi, DeriveBounties, DeriveCollectiveProposal } from '../types';
|
import type { DeriveApi, DeriveBounties, DeriveCollectiveProposal } from '../types.js';
|
||||||
|
|
||||||
import { combineLatest, map, of, switchMap } from 'rxjs';
|
import { combineLatest, map, of, switchMap } from 'rxjs';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util/index.js';
|
||||||
import { filterBountiesProposals } from './helpers/filterBountyProposals';
|
import { filterBountiesProposals } from './helpers/filterBountyProposals.js';
|
||||||
|
|
||||||
type Result = [Option<PalletBountiesBounty>[], Option<Bytes>[], BountyIndex[], DeriveCollectiveProposal[]];
|
type Result = [Option<PalletBountiesBounty>[], Option<Bytes>[], BountyIndex[], DeriveCollectiveProposal[]];
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { DeriveApi, DeriveCollectiveProposal } from '../../types';
|
import type { DeriveApi, DeriveCollectiveProposal } from '../../types.js';
|
||||||
|
|
||||||
export function filterBountiesProposals (api: DeriveApi, allProposals: DeriveCollectiveProposal[]): DeriveCollectiveProposal[] {
|
export function filterBountiesProposals (api: DeriveApi, allProposals: DeriveCollectiveProposal[]): DeriveCollectiveProposal[] {
|
||||||
const bountyTxBase = api.tx.bounties ? api.tx.bounties : api.tx.treasury;
|
const bountyTxBase = api.tx.bounties ? api.tx.bounties : api.tx.treasury;
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user