Compare commits

..
66 Commits
Author SHA1 Message Date
github-actions[bot] 6415eb6515 [CI Skip] release/stable 10.13.1
skip-checks: true
2024-04-16 17:44:32 +00:00
Tarik Gul 06c829d30f 10.13.1 (#5854) 2024-04-16 20:37:03 +03:00
github-actions[bot] efd6ba9a4c [CI Skip] bump/beta 10.12.7-5-x
skip-checks: true
2024-04-16 15:31:19 +00:00
Tarik Gul a1f2473fb4 Update kusama types-known for 1001003 (#5853) 2024-04-16 18:23:44 +03:00
github-actions[bot] 9e53fc060d [CI Skip] bump/beta 10.12.7-4-x
skip-checks: true
2024-04-16 14:47:38 +00:00
Tarik Gul 364001f287 Update westend types-known for 1010000 (#5852) 2024-04-16 17:40:02 +03:00
github-actions[bot] 5bcd56d6c3 [CI Skip] bump/beta 10.12.7-3-x
skip-checks: true
2024-04-15 20:49:17 +00:00
Tarik Gul 5b3f18e6fd Resolve correct module for council derive (#5851)
* Resolve correct module for council derive

* remove console
2024-04-15 23:41:40 +03:00
github-actions[bot] 8ab79958f0 [CI Skip] bump/beta 10.12.7-2-x
skip-checks: true
2024-04-13 21:32:54 +00:00
Tarik Gul 1343aa4651 Support ParachainHost runtime Api v6 7 8 9 10 (#5850)
* Add initial update for parachainHost

* Add v6,7,8,9,10

* fix version nit

* change bytes to u32 for usize
2024-04-14 00:25:26 +03:00
github-actions[bot] a311fed87e [CI Skip] bump/beta 10.12.7-1-x
skip-checks: true
2024-04-13 16:51:25 +00:00
Tarik Gul c0590bc5fe Update substrate metadata latest (#5849) 2024-04-13 19:43:56 +03:00
github-actions[bot] d650744984 [CI Skip] bump/beta 10.12.7-0-x
skip-checks: true
2024-04-08 16:58:49 +00:00
Tarik Gul 7baf2ecf7a Update CI actions and setup_node to v4 (#5844) 2024-04-08 19:51:04 +03:00
github-actions[bot] accfce9785 [CI Skip] release/stable 10.12.6
skip-checks: true
2024-04-03 03:35:00 +00:00
Tarik Gul 0349c39907 10.12.6 (#5842) 2024-04-03 06:26:39 +03:00
github-actions[bot] 155701a7b1 [CI Skip] release/stable 10.12.5
skip-checks: true
2024-04-02 21:04:34 +00:00
Tarik Gul c6e5cb812b 10.12.5 (#5840)
* 10.12.5

* Update changelog
2024-04-02 23:57:19 +03:00
github-actions[bot] 63f3fc8a89 [CI Skip] bump/beta 10.12.5-8-x
skip-checks: true
2024-04-02 14:35:31 +00:00
Tarik Gul 591e9b145d Add assetId field to to necessary ExtrinsicPayloads (#5839)
* Add assetId field to GenericExtrinsicPayload

* Update AssetId usage

* update nits

* Update packages/types/src/extrinsic/Extrinsic.ts
2024-04-02 17:28:05 +03:00
github-actions[bot] caca8ce345 [CI Skip] bump/beta 10.12.5-7-x
skip-checks: true
2024-04-01 13:48:53 +00:00
Tarik Gul ccae7c9421 Add Updated Runtime Defintions (#5837)
* Start v15 runtime api support

* Update root too mmr_root

* fix MmrError type

* ensure type is generated

* Add ValidateStatement

* touch up statement

* Update core

* get core fixed

* Fix ExtrinsicInclusionMode type

* add mixnet

* Fix mixnet export

* fix type

* Add GenesisBuilder
2024-04-01 16:41:30 +03:00
github-actions[bot] be0a764be7 [CI Skip] bump/beta 10.12.5-6-x
skip-checks: true
2024-03-28 19:00:05 +00:00
Tarik Gul 4be19804b2 V15 Update substrate latest metadata (#5838) 2024-03-28 20:52:39 +02:00
github-actions[bot] 7874a8e723 [CI Skip] bump/beta 10.12.5-5-x
skip-checks: true
2024-03-26 01:04:15 +00:00
Tarik Gul 5e9eed426a Bump yarn to 4.1.1 (#5836) 2024-03-26 02:57:02 +02:00
github-actions[bot] ff3b798ea4 [CI Skip] bump/beta 10.12.5-4-x
skip-checks: true
2024-03-24 15:42:37 +00:00
Snoppy 62163ea5a7 chore: fix typos (#5835) 2024-03-24 11:35:30 -04:00
github-actions[bot] 96cde82c60 [CI Skip] bump/beta 10.12.5-3-x
skip-checks: true
2024-03-24 15:26:12 +00:00
Lauro Gripa a2ea6a36d1 Fix multi call of defenderVotes and isDefenderVoter flag in society.members derivation (#5834)
* Fix society members derivation and add regression test

* Remove regression test for now

* Optimize challenge round query

* Make linter happy

* Return true for isDefenderVoter even if the member vote for rejection
2024-03-24 11:18:48 -04:00
github-actions[bot] 5531d180d7 [CI Skip] bump/beta 10.12.5-2-x
skip-checks: true
2024-03-22 23:12:13 +00:00
Tarik Gul aacf0726e4 Update substrate latest metadata (#5833)
* Update substrate latest metadata

* imports
2024-03-23 01:04:57 +02:00
github-actions[bot] 9fde30a1d6 [CI Skip] bump/beta 10.12.5-1-x
skip-checks: true
2024-03-21 17:25:11 +00:00
Tarik Gul 0982f68507 Add disableAscii option for toHuman, and toPrimitive (#5831)
* Add `allowAscii` option for toHuman, and toPrimitive

* change allowAscii to disableAscii

* add test

* Ensure Struct passes down the value to Raw, and add disableAscii to other types

* ensure CodecMap also has disableAscii

* toPrimitive CodecMap disableAscii

* add toPrimitive options
2024-03-21 19:17:53 +02:00
github-actions[bot] bfabfcd99f [CI Skip] bump/beta 10.12.5-0-x
skip-checks: true
2024-03-21 14:20:42 +00:00
Tarik Gul 64ac37ee4d Update westend runtime upgrade 1009000 (#5832) 2024-03-21 16:13:22 +02:00
github-actions[bot] 442a0fbbf8 [CI Skip] release/stable 10.12.4
skip-checks: true
2024-03-19 13:22:04 +00:00
Tarik Gul 615e4c67fd 10.12.4 (#5830) 2024-03-19 15:15:00 +02:00
github-actions[bot] 1c7f3b157d [CI Skip] bump/beta 10.12.4-0-x
skip-checks: true
2024-03-19 12:37:40 +00:00
Javier Viola b0ce49de18 add muln(2), as was in the old code (#5829) 2024-03-19 08:30:22 -04:00
github-actions[bot] 95798b4636 [CI Skip] release/stable 10.12.3
skip-checks: true
2024-03-18 22:58:48 +00:00
Tarik Gul 88da5011e0 10.12.3 (#5828) 2024-03-19 00:51:39 +02:00
github-actions[bot] 18f596d448 [CI Skip] bump/beta 10.12.3-7-x
skip-checks: true
2024-03-18 21:28:49 +00:00
Javier ViolaandTarik Gul 2c7b904c37 fix: check if minimumPeriod is zero (#5827)
* fix: check if minimumPeriod is zero

* changes for https://github.com/paritytech/polkadot-sdk/pull/3732/files

* guard expectedBlockTime

* typo

* clean code and add aura interface

* Update signingInfo.ts

Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com>

* Update packages/api-derive/src/tx/signingInfo.ts

Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com>

* lint

---------

Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com>
2024-03-18 17:21:00 -04:00
github-actions[bot] c30ae402da [CI Skip] bump/beta 10.12.3-6-x
skip-checks: true
2024-03-18 16:17:51 +00:00
Dominique 1a0677800e fix: add optional chaining operator in toHuman (#5825)
* fix: add optional chaining operator in toHuman

* fix typo
2024-03-18 12:10:22 -04:00
github-actions[bot] 8dbc373ac5 [CI Skip] bump/beta 10.12.3-5-x
skip-checks: true
2024-03-16 04:09:19 +00:00
Tarik Gul cf956f869c Update westend runtime upgrade per block (#5824) 2024-03-16 06:02:03 +02:00
github-actions[bot] 09a34a7f05 [CI Skip] bump/beta 10.12.3-4-x
skip-checks: true
2024-03-16 01:04:16 +00:00
Tarik Gul 18a9205868 Update kusama runtime upgrade per block (#5823) 2024-03-16 02:57:09 +02:00
github-actions[bot] 9a9fa90f5e [CI Skip] bump/beta 10.12.3-3-x
skip-checks: true
2024-03-15 15:25:47 +00:00
Tarik Gul 114f4f82bf Update polkadot runtime upgrade per block (#5822)
* Update polkadot runtime upgrade per block

* update e2e tests

* lint
2024-03-15 17:18:25 +02:00
github-actions[bot] 3d0865d95d [CI Skip] bump/beta 10.12.3-2-x
skip-checks: true
2024-03-15 02:22:36 +00:00
Tarik Gul 60993d8fa4 Fix invalid Lookup assignment on augmentation and update polkadot and kusama metadata (#5812)
* Update kusama and polkadot

* fix type gen aug

* todo

* fix nits

* Update json metadata

* Fix xcmv3multilocation

* fix spacing

* fix tests
2024-03-15 04:15:25 +02:00
github-actions[bot] 89227fd031 [CI Skip] bump/beta 10.12.3-1-x
skip-checks: true
2024-03-13 14:25:17 +00:00
Tarik Gul 9ecf4f2ee0 Fix api.derive.staking.eraExposure for compatibility (#5815)
* Fix api.derive.staking.eraExposure

* fix nit
2024-03-13 16:17:35 +02:00
github-actions[bot] 390610127a [CI Skip] bump/beta 10.12.3-0-x
skip-checks: true
2024-03-13 01:16:58 +00:00
Matias Volpe 5ef0fedd26 Bump @substrate/connect to 0.8.8 (#5817) 2024-03-12 21:09:47 -04:00
github-actions[bot] da289238b0 [CI Skip] release/stable 10.12.2
skip-checks: true
2024-03-11 13:05:36 +00:00
Tarik Gul 8289e181cc 10.12.2 (#5814) 2024-03-11 14:58:13 +02:00
github-actions[bot] d06860861c [CI Skip] bump/beta 10.12.2-2-x
skip-checks: true
2024-03-07 13:42:56 +00:00
Tarik GulandAlberto Nicolas Penayo 1797d6b42c Update docs in types-support for retrieving metadata for typegen (#5809)
* Update docs in types-support for retrieving metadata for typegen

* nit

* copy notes

* Update packages/types-support/src/metadata/README.md

Co-authored-by: Alberto Nicolas Penayo <74352651+bee344@users.noreply.github.com>

* Update packages/types-support/src/metadata/README.md

Co-authored-by: Alberto Nicolas Penayo <74352651+bee344@users.noreply.github.com>

---------

Co-authored-by: Alberto Nicolas Penayo <74352651+bee344@users.noreply.github.com>
2024-03-07 15:35:46 +02:00
github-actions[bot] 6a9a53c48c [CI Skip] bump/beta 10.12.2-1-x
skip-checks: true
2024-03-06 18:24:57 +00:00
Tarik Gul d680b3dd39 Bump to latest Substrate metadata (#5807)
* Bump to latest substrate metadata

* Bump to latest Substrate metadata

* Update type-support docs for metadata

* Update docs again

* fix compat issues

* adjust types
2024-03-06 20:17:23 +02:00
github-actions[bot] 3b479879ca [CI Skip] bump/beta 10.12.2-0-x
skip-checks: true
2024-03-04 17:04:54 +00:00
Ermal Kaleci ea2c942ece fix cache key (rpc-provider) (#5745) 2024-03-04 11:57:45 -05:00
153 changed files with 76039 additions and 31682 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ jobs:
env:
YARN_ENABLE_SCRIPTS: false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- uses: denoland/setup-deno@v1
+2 -2
View File
@@ -18,11 +18,11 @@ jobs:
GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT_BOT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_PAT_BOT }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: ${{ matrix.step }}
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -12,4 +12,4 @@ logFilters:
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-4.1.0.cjs
yarnPath: .yarn/releases/yarn-4.1.1.cjs
+96
View File
@@ -1,5 +1,101 @@
# CHANGELOG
## 10.13.1 Apr 16, 2024
Changes:
- Update CI actions and setup_node to v4
- Update substrate metadata to latest
- Support ParachainHost runtime api v6, 7, 8, 9, 10
- Resolve correct module for council derive
- Update westend types-known for 1010000
- Update kusama types-known for 1001003
## 10.12.6 Apr 2, 2024
**NOTE**: Because of a broken CI build for 10.12.5 -> 10.12.6 is a replacement
Contributed:
- chore: fix typos in error (Thanks to https://github.com/xiaoxianBoy)
Changes:
- Upgrade westend types-known for 1009000
- Add `disableAscii` option for toHuman, and toPrimitive
- V14 Update substrate latest metadata
- V15 Update substrate latest metadata
- Bump yarn to 4.1.1
- Add `assetId` getter field to to necessary ExtrinsicPayloads
- Add Updated Runtime Defintions
- ValidateStatement
- MMRApi
- mmr_root
- mmr_leaf_count
- Core v5
- GenesisBuilder
- MixnetApi
## 10.12.5 Apr 2, 2024
Contributed:
- chore: fix typos in error (Thanks to https://github.com/xiaoxianBoy)
Changes:
- Upgrade westend types-known for 1009000
- Add `disableAscii` option for toHuman, and toPrimitive
- V14 Update substrate latest metadata
- V15 Update substrate latest metadata
- Bump yarn to 4.1.1
- Add `assetId` getter field to to necessary ExtrinsicPayloads
- Add Updated Runtime Defintions
- ValidateStatement
- MMRApi
- mmr_root
- mmr_leaf_count
- Core v5
- GenesisBuilder
- MixnetApi
## 10.12.4 Mar 19, 2024
Contributed:
- Fix add muln(2) to signingInfo Derive (Thanks to https://github.com/pepoviola)
## 10.12.3 Mar 18, 2024
Contributed:
- Bump @substrate/connect to 0.8.8 (Thanks to https://github.com/kratico)
- Fix optional chaining operator in toHuman (Thanks to https://github.com/Imod7)
- Fix check if minimumPeriod is zero (Thanks to https://github.com/pepoviola)
Changes:
- Fix api.derive.staking.eraExposure for compatibility
- Fix invalid Lookup assignment on augmentation and update polkadot and kusama metadata
- Update polkadot runtime upgrade per block
- Update kusama runtime upgrade per block
- Update westend runtime upgrade per block
## 10.12.2 Mar 11, 2024
Contributed:
- fix cache key (rpc-provider) (Thanks to https://github.com/ermalkaleci)
Changes:
- Update to latest Substrate metadata
## 10.12.1 Mar 4, 2024
Contributed:
+7 -2
View File
@@ -2,13 +2,13 @@
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
37 Keith Ingram Update contract types and rpc (#4541)
35 Stefanie Doll Updated child storage parameters (#1709)
33 Tarik Gul 10.13.1 (#5854)
20 Luke Schoen fix: Fixes TypeError: Cannot read property 'vesting' of undefined (#1970)
19 Xiliang Chen no warm for unknown signed extensions (#5601)
15 Jeremías Díaz feat(types): add correct tuple type to storage key (#3054)
14 Nikos Kontakis Bump substrate connect to 0.7.16 (#5307)
11 Ian He HttpProvider support clone() (#3949)
10 Axel Chalon Make Enum/Tuple constructor use value directly if instance (#1954)
7 Tarik Gul 10.12.1 (#5804)
6 Andreea Eftene Update check for contract instantiation (#5699)
5 Chevdor Fix metadata package link (#3458)
5 Jake Naviasky Fixing approvalFlagsToBools. (#1250)
@@ -17,6 +17,7 @@
4 Alex Wang fix issue that creates duplicate providers (#983)
4 Alexander Popiak Add asset id in signing (#4009)
4 Joshy Orndorff spelling; efect -> effect (#2295)
4 Matias Volpe Bump @substrate/connect to 0.8.8 (#5817)
4 Nantian fix bigint type (#3869)
4 Scott Twiname Add support for historical BlockNumber rpc methods (#4574)
4 Thibaut Sardan no subscription for http (#3127)
@@ -29,7 +30,6 @@
3 Hamza Tokuchi more typos (#2532)
3 Josep M Sobrepere docs: improve rpc-provider README (#4719)
3 KarishmaBothara Backward compatibility thing (#3511)
3 Matias Volpe chore: bump @substrate/connect to 0.8.7 (#5797)
3 Miguel Hervas Adding RT4 Types (#3007)
3 Shawn Tabrizi Add `isReadyOrError` when connecting to API (#2577)
3 YJ feat: Vote interface as U8a (#1061)
@@ -41,6 +41,7 @@
2 HackFisher Update maxExtrinsic definition (#4703)
2 Jakub Pánik All heads subscription (#1899)
2 James Lefrère Add `.eq()` usage to docs and fix docs typos (#1405)
2 Javier Viola add muln(2), as was in the old code (#5829)
2 Jeeyong Um Alias for Noir types (#5678)
2 Jegor Sidorenko Use Box<XcmV3MultiLocation> instead of MultiAssetId (#5700)
2 Keith Yeung Allow keyPrefix to accept an additional argument for double maps (#2230)
@@ -68,8 +69,10 @@
1 David Duong Avoid reserved words during named enum fields augmentation (#5203)
1 Denis Tsai realign AccountKey20Junction to polkadot xcm's Junction enum (#3770)
1 djuanito.eth Update fees to current constants (#2320)
1 Dominique fix: add optional chaining operator in `toHuman` (#5825)
1 Drew Stone Update evm definitions to include vicinity (#2279)
1 Dylan Galea Updated users of the polkadot-js/api (#2027)
1 Ermal Kaleci fix cache key (rpc-provider) (#5745)
1 flex Change BeefySignedCommitment signatures type to EcdsaSignature (#4204)
1 Florian Franzen metadataMd: use endpoint for rpc and runtime details too (#5628)
1 Furqan A fix: fixed 404 to the docs from the api readme (#3985)
@@ -89,6 +92,7 @@
1 Kian Paimani Update definitions.ts (#2514)
1 Krzysztof Jelski Derive for bounties and descriptions (#2925)
1 Lae Make sure awaiting on an api object won't stuck forever on error (#1763)
1 Lauro Gripa Fix multi call of `defenderVotes` and `isDefenderVoter` flag in `society.members` derivation (#5834)
1 Lezek123 BTreeSet and BTreeMap - encoding and serialization fixes (#3789)
1 Lovesh Harchandani Fix name of "getBlock" in package "api-derive" and export it in "index.ts" (#2857)
1 Marc Fornós add beefy compact signed commitment definition (#5781)
@@ -122,6 +126,7 @@
1 serge make WS provider timeout configurable (#4758)
1 Sergei Pepyakin INK! -> ink! (#1347)
1 Shunji Zhan small polish (#5276)
1 Snoppy chore: fix typos (#5835)
1 Stephen Shelton Add transaction-payment runtime API V3 (#5430)
1 Tim B added EthRTApiV5 ifaces (#5680)
1 WoeOm adapt Darwinia, Crab Network types (#3498)
+4 -4
View File
@@ -6,7 +6,7 @@
},
"homepage": "https://github.com/polkadot-js/api#readme",
"license": "Apache-2.0",
"packageManager": "yarn@4.1.0",
"packageManager": "yarn@4.1.1",
"private": true,
"repository": {
"type": "git",
@@ -14,10 +14,10 @@
},
"sideEffects": false,
"type": "module",
"version": "10.12.1",
"version": "10.13.1",
"versions": {
"git": "10.12.1",
"npm": "10.12.1"
"git": "10.13.1",
"npm": "10.13.1"
},
"workspaces": [
"packages/*"
+6 -6
View File
@@ -18,14 +18,14 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "10.12.1",
"version": "10.13.1",
"main": "index.js",
"dependencies": {
"@polkadot/api-base": "10.12.1",
"@polkadot/rpc-augment": "10.12.1",
"@polkadot/types": "10.12.1",
"@polkadot/types-augment": "10.12.1",
"@polkadot/types-codec": "10.12.1",
"@polkadot/api-base": "10.13.1",
"@polkadot/rpc-augment": "10.13.1",
"@polkadot/types": "10.13.1",
"@polkadot/types-augment": "10.13.1",
"@polkadot/types-codec": "10.13.1",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
}
+66 -52
View File
@@ -77,10 +77,6 @@ declare module '@polkadot/api-base/types/consts' {
* The maximum number of individual freeze locks that can exist on an account at any time.
**/
maxFreezes: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of holds that can exist on an account at any time.
**/
maxHolds: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of locks that should exist on an account.
* Not strictly enforced, but used for weight estimation.
@@ -206,6 +202,16 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
coretime: {
/**
* The ParaId of the broker system parachain.
**/
brokerId: u32 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
crowdloan: {
/**
* The minimum amount that may be contributed into a crowdloan. Should almost certainly be
@@ -232,11 +238,6 @@ declare module '@polkadot/api-base/types/consts' {
* "better" in the Signed phase.
**/
betterSignedThreshold: Perbill & AugmentedConst<ApiType>;
/**
* The minimum amount of improvement to the solution score that defines a solution as
* "better" in the Unsigned phase.
**/
betterUnsignedThreshold: Perbill & AugmentedConst<ApiType>;
/**
* The maximum number of winners that can be elected by this `ElectionProvider`
* implementation.
@@ -259,10 +260,6 @@ declare module '@polkadot/api-base/types/consts' {
* to submit the worker's solution.
**/
offchainRepeat: u32 & AugmentedConst<ApiType>;
/**
* Base deposit for a signed solution.
**/
signedDepositBase: u128 & AugmentedConst<ApiType>;
/**
* Per-byte deposit for a signed solution.
**/
@@ -375,18 +372,13 @@ declare module '@polkadot/api-base/types/consts' {
};
identity: {
/**
* The amount held on deposit for a registered identity
* The amount held on deposit for a registered identity.
**/
basicDeposit: u128 & AugmentedConst<ApiType>;
/**
* The amount held on deposit per additional field for a registered identity.
* The amount held on deposit per encoded byte for a registered identity.
**/
fieldDeposit: u128 & AugmentedConst<ApiType>;
/**
* Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O
* required to access an identity, but can be pretty high.
**/
maxAdditionalFields: u32 & AugmentedConst<ApiType>;
byteDeposit: u128 & AugmentedConst<ApiType>;
/**
* Maxmimum number of registrars allowed in the system. Needed to bound the complexity
* of, e.g., updating judgements.
@@ -396,6 +388,18 @@ declare module '@polkadot/api-base/types/consts' {
* The maximum number of sub-accounts allowed per identified account.
**/
maxSubAccounts: u32 & AugmentedConst<ApiType>;
/**
* The maximum length of a suffix.
**/
maxSuffixLength: u32 & AugmentedConst<ApiType>;
/**
* The maximum length of a username, including its suffix and any system-added delimiters.
**/
maxUsernameLength: u32 & AugmentedConst<ApiType>;
/**
* The number of blocks within which a username grant must be accepted.
**/
pendingUsernameExpiration: u32 & AugmentedConst<ApiType>;
/**
* The amount held on deposit for a registered subaccount. This should account for the fact
* that one storage item's value will increase by the size of an account ID, and there will
@@ -407,19 +411,6 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
imOnline: {
/**
* A configuration for base priority of unsigned transactions.
*
* This is exposed so that it can be tuned for particular runtime, when
* multiple pallets send unsigned transactions.
**/
unsignedPriority: u64 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
indices: {
/**
* The deposit needed for reserving an index.
@@ -562,10 +553,6 @@ declare module '@polkadot/api-base/types/consts' {
* The maximum number of individual freeze locks that can exist on an account at any time.
**/
maxFreezes: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of holds that can exist on an account at any time.
**/
maxHolds: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of locks that should exist on an account.
* Not strictly enforced, but used for weight estimation.
@@ -596,6 +583,10 @@ declare module '@polkadot/api-base/types/consts' {
* Such a scenario would also be the equivalent of the pool being 90% slashed.
**/
maxPointsToBalance: u8 & AugmentedConst<ApiType>;
/**
* The maximum number of simultaneous unbonding chunks that can exist per member.
**/
maxUnbonding: u32 & AugmentedConst<ApiType>;
/**
* The nomination pool's pallet id.
**/
@@ -605,6 +596,16 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
onDemandAssignmentProvider: {
/**
* The default value for the spot traffic multiplier.
**/
trafficDefaultValue: u128 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
paras: {
unsignedPriority: u64 & AugmentedConst<ApiType>;
/**
@@ -826,8 +827,8 @@ declare module '@polkadot/api-base/types/consts' {
* Following information is kept for eras in `[current_era -
* HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,
* `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,
* `ErasTotalStake`, `ErasStartSessionIndex`,
* `StakingLedger.claimed_rewards`.
* `ErasTotalStake`, `ErasStartSessionIndex`, `ClaimedRewards`, `ErasStakersPaged`,
* `ErasStakersOverview`.
*
* Must be more than the number of eras delayed by session.
* I.e. active era must always be in history. I.e. `active_era >
@@ -837,19 +838,26 @@ declare module '@polkadot/api-base/types/consts' {
* this should be set to same value or greater as in storage.
*
* Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
* item `StakingLedger.claimed_rewards`. Setting this value lower than
* item `StakingLedger.legacy_claimed_rewards`. Setting this value lower than
* the existing value can lead to inconsistencies in the
* `StakingLedger` and will need to be handled properly in a migration.
* The test `reducing_history_depth_abrupt` shows this effect.
**/
historyDepth: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of nominators rewarded for each validator.
* The maximum size of each `T::ExposurePage`.
*
* For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can
* claim their reward. This used to limit the i/o cost for the nominator payout.
* An `ExposurePage` is weakly bounded to a maximum of `MaxExposurePageSize`
* nominators.
*
* For older non-paged exposure, a reward payout was restricted to the top
* `MaxExposurePageSize` nominators. This is to limit the i/o cost for the
* nominator payout.
*
* Note: `MaxExposurePageSize` is used to bound `ClaimedRewards` and is unsafe to reduce
* without handling it in a migration.
**/
maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>;
maxExposurePageSize: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of `unlocking` chunks a [`StakingLedger`] can
* have. Effectively determines how many unique eras a staker may be
@@ -901,7 +909,7 @@ declare module '@polkadot/api-base/types/consts' {
* - [`frame_support::storage::StorageDoubleMap`]: 96 byte
*
* For more info see
* <https://www.shawntabrizi.com/substrate/querying-substrate-storage-via-rpc/>
* <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
**/
maxKeyLen: u32 & AugmentedConst<ApiType>;
/**
@@ -945,10 +953,12 @@ declare module '@polkadot/api-base/types/consts' {
};
timestamp: {
/**
* The minimum period between blocks. Beware that this is different to the *expected*
* period that the block production apparatus provides. Your chosen consensus system will
* generally work with this to determine a sensible block time. e.g. For Aura, it will be
* double this period on default settings.
* The minimum period between blocks.
*
* Be aware that this is different to the *expected* period that the block production
* apparatus provides. Your chosen consensus system will generally work with this to
* determine a sensible block time. For example, in the Aura pallet it will be double this
* period on default settings.
**/
minimumPeriod: u64 & AugmentedConst<ApiType>;
/**
@@ -958,10 +968,10 @@ declare module '@polkadot/api-base/types/consts' {
};
transactionPayment: {
/**
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
* A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
* `priority`
*
* This value is multipled by the `final_fee` to obtain a "virtual tip" that is later
* This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
* added to a tip component in regular `priority` calculations.
* It means that a `Normal` transaction can front-run a similarly-sized `Operational`
* extrinsic (with no tip), by including a tip value greater than the virtual tip.
@@ -1001,6 +1011,10 @@ declare module '@polkadot/api-base/types/consts' {
* The treasury's pallet id, used for deriving its sovereign account ID.
**/
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
/**
* The period during which an approved treasury spend has to be claimed.
**/
payoutPeriod: u32 & AugmentedConst<ApiType>;
/**
* Fraction of a proposal's value that should be bonded in order to place the proposal.
* An accepted proposal gets these back. A rejected proposal does not.
+239 -25
View File
@@ -11,6 +11,20 @@ export type __AugmentedError<ApiType extends ApiTypes> = AugmentedError<ApiType>
declare module '@polkadot/api-base/types/errors' {
interface AugmentedErrors<ApiType extends ApiTypes> {
assetRate: {
/**
* The given asset ID already has an assigned conversion rate and cannot be re-created.
**/
AlreadyExists: AugmentedError<ApiType>;
/**
* The given asset ID is unknown.
**/
UnknownAssetKind: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
auctions: {
/**
* The para is already leased out for part of this range.
@@ -72,6 +86,10 @@ declare module '@polkadot/api-base/types/errors' {
* Beneficiary account must pre-exist.
**/
DeadAccount: AugmentedError<ApiType>;
/**
* The delta cannot be zero.
**/
DeltaZero: AugmentedError<ApiType>;
/**
* Value too low to create account due to existential deposit.
**/
@@ -88,6 +106,10 @@ declare module '@polkadot/api-base/types/errors' {
* Balance too low to send value.
**/
InsufficientBalance: AugmentedError<ApiType>;
/**
* The issuance cannot be modified since it is already deactivated.
**/
IssuanceDeactivated: AugmentedError<ApiType>;
/**
* Account liquidity restrictions prevent withdrawal.
**/
@@ -97,7 +119,7 @@ declare module '@polkadot/api-base/types/errors' {
**/
TooManyFreezes: AugmentedError<ApiType>;
/**
* Number of holds exceed `MaxHolds`.
* Number of holds exceed `VariantCountOf<T::RuntimeHoldReason>`.
**/
TooManyHolds: AugmentedError<ApiType>;
/**
@@ -118,6 +140,10 @@ declare module '@polkadot/api-base/types/errors' {
* A given equivocation report is valid but already previously reported.
**/
DuplicateOffenceReport: AugmentedError<ApiType>;
/**
* Submitted configuration is invalid.
**/
InvalidConfiguration: AugmentedError<ApiType>;
/**
* An equivocation proof provided as part of an equivocation report is invalid.
**/
@@ -296,6 +322,44 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError<ApiType>;
};
coretime: {
/**
* The paraid making the call is not the coretime brokerage system parachain.
**/
NotBroker: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
coretimeAssignmentProvider: {
AssignmentsEmpty: AugmentedError<ApiType>;
/**
* Tried to add an unsorted set of assignments
**/
AssignmentsNotSorted: AugmentedError<ApiType>;
/**
* assign_core is only allowed to append new assignments at the end of already existing
* ones.
**/
DisallowedInsert: AugmentedError<ApiType>;
/**
* Tried to insert a schedule for the same core and block number as an existing schedule
**/
DuplicateInsert: AugmentedError<ApiType>;
/**
* Assignments together exceeded 57600.
**/
OverScheduled: AugmentedError<ApiType>;
/**
* Assignments together less than 57600
**/
UnderScheduled: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
crowdloan: {
/**
* The fund is already in `NewRaise`
@@ -420,6 +484,10 @@ declare module '@polkadot/api-base/types/errors' {
* OCW submitted solution for wrong round
**/
OcwCallWrongEra: AugmentedError<ApiType>;
/**
* Sumission was prepared for a different round.
**/
PreDispatchDifferentRound: AugmentedError<ApiType>;
/**
* Submission was too early.
**/
@@ -526,6 +594,10 @@ declare module '@polkadot/api-base/types/errors' {
* The member's rank is too low to vote.
**/
RankTooLow: AugmentedError<ApiType>;
/**
* The new member to exchange is the same as the old member
**/
SameMember: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -642,6 +714,10 @@ declare module '@polkadot/api-base/types/errors' {
* Canceling is requested by neither the sender nor recipient of the open channel request.
**/
CancelHrmpOpenChannelUnauthorized: AugmentedError<ApiType>;
/**
* The channel between these two chains cannot be authorized.
**/
ChannelCreationNotAuthorized: AugmentedError<ApiType>;
/**
* The channel close request is already requested.
**/
@@ -728,10 +804,22 @@ declare module '@polkadot/api-base/types/errors' {
* Invalid judgement.
**/
InvalidJudgement: AugmentedError<ApiType>;
/**
* The signature on a username was not valid.
**/
InvalidSignature: AugmentedError<ApiType>;
/**
* The provided suffix is too long.
**/
InvalidSuffix: AugmentedError<ApiType>;
/**
* The target is invalid.
**/
InvalidTarget: AugmentedError<ApiType>;
/**
* The username does not meet the requirements.
**/
InvalidUsername: AugmentedError<ApiType>;
/**
* The provided judgement was for a different identity.
**/
@@ -744,10 +832,18 @@ declare module '@polkadot/api-base/types/errors' {
* Error that occurs when there is an issue paying for judgement.
**/
JudgementPaymentFailed: AugmentedError<ApiType>;
/**
* The authority cannot allocate any more usernames.
**/
NoAllocation: AugmentedError<ApiType>;
/**
* No identity found.
**/
NoIdentity: AugmentedError<ApiType>;
/**
* The username cannot be forcefully removed because it can still be accepted.
**/
NotExpired: AugmentedError<ApiType>;
/**
* Account isn't found.
**/
@@ -764,14 +860,22 @@ declare module '@polkadot/api-base/types/errors' {
* Sender is not a sub-account.
**/
NotSub: AugmentedError<ApiType>;
/**
* The sender does not have permission to issue a username.
**/
NotUsernameAuthority: AugmentedError<ApiType>;
/**
* The requested username does not exist.
**/
NoUsername: AugmentedError<ApiType>;
/**
* Setting this username requires a signature, but none was provided.
**/
RequiresSignature: AugmentedError<ApiType>;
/**
* Sticky judgement.
**/
StickyJudgement: AugmentedError<ApiType>;
/**
* Too many additional fields.
**/
TooManyFields: AugmentedError<ApiType>;
/**
* Maximum amount of registrars reached. Cannot add any more.
**/
@@ -781,19 +885,9 @@ declare module '@polkadot/api-base/types/errors' {
**/
TooManySubAccounts: AugmentedError<ApiType>;
/**
* Generic error
* The username is already taken.
**/
[key: string]: AugmentedError<ApiType>;
};
imOnline: {
/**
* Duplicated heartbeat.
**/
DuplicatedHeartbeat: AugmentedError<ApiType>;
/**
* Non existent public key.
**/
InvalidKey: AugmentedError<ApiType>;
UsernameTaken: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -857,6 +951,10 @@ declare module '@polkadot/api-base/types/errors' {
* This can change at any time and may resolve in the future by re-trying.
**/
QueuePaused: AugmentedError<ApiType>;
/**
* Another call is in progress and needs to finish before this call can happen.
**/
RecursiveDisallowed: AugmentedError<ApiType>;
/**
* This message is temporarily unprocessable.
*
@@ -1003,6 +1101,10 @@ declare module '@polkadot/api-base/types/errors' {
* Beneficiary account must pre-exist.
**/
DeadAccount: AugmentedError<ApiType>;
/**
* The delta cannot be zero.
**/
DeltaZero: AugmentedError<ApiType>;
/**
* Value too low to create account due to existential deposit.
**/
@@ -1019,6 +1121,10 @@ declare module '@polkadot/api-base/types/errors' {
* Balance too low to send value.
**/
InsufficientBalance: AugmentedError<ApiType>;
/**
* The issuance cannot be modified since it is already deactivated.
**/
IssuanceDeactivated: AugmentedError<ApiType>;
/**
* Account liquidity restrictions prevent withdrawal.
**/
@@ -1028,7 +1134,7 @@ declare module '@polkadot/api-base/types/errors' {
**/
TooManyFreezes: AugmentedError<ApiType>;
/**
* Number of holds exceed `MaxHolds`.
* Number of holds exceed `VariantCountOf<T::RuntimeHoldReason>`.
**/
TooManyHolds: AugmentedError<ApiType>;
/**
@@ -1119,9 +1225,9 @@ declare module '@polkadot/api-base/types/errors' {
/**
* The amount does not meet the minimum bond to either join or create a pool.
*
* The depositor can never unbond to a value less than
* `Pallet::depositor_min_bond`. The caller does not have nominating
* permissions for the pool. Members can never unbond to a value below `MinJoinBond`.
* The depositor can never unbond to a value less than `Pallet::depositor_min_bond`. The
* caller does not have nominating permissions for the pool. Members can never unbond to a
* value below `MinJoinBond`.
**/
MinimumBondNotMet: AugmentedError<ApiType>;
/**
@@ -1137,6 +1243,10 @@ declare module '@polkadot/api-base/types/errors' {
* other members to be permissionlessly unbonded.
**/
NotDestroying: AugmentedError<ApiType>;
/**
* No imbalance in the ED deposit for the pool.
**/
NothingToAdjust: AugmentedError<ApiType>;
/**
* Either a) the caller cannot make a valid kick or b) the pool is not destroying.
**/
@@ -1182,6 +1292,26 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError<ApiType>;
};
onDemandAssignmentProvider: {
/**
* The `ParaId` supplied to the `place_order` call is not a valid `ParaThread`, making the
* call is invalid.
**/
InvalidParaId: AugmentedError<ApiType>;
/**
* The order queue is full, `place_order` will not continue.
**/
QueueFull: AugmentedError<ApiType>;
/**
* The current spot price is higher than the max amount specified in the `place_order`
* call, making it invalid.
**/
SpotPriceHigherThanMaxAmount: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
paraInclusion: {
/**
* Bitfield consists of zeros only.
@@ -1310,6 +1440,14 @@ declare module '@polkadot/api-base/types/errors' {
[key: string]: AugmentedError<ApiType>;
};
paraInherent: {
/**
* A candidate was backed by a disabled validator
**/
BackedByDisabled: AugmentedError<ApiType>;
/**
* A candidate was backed even though the paraid was not scheduled.
**/
BackedOnUnscheduledCore: AugmentedError<ApiType>;
/**
* Disputed candidate that was concluded invalid.
**/
@@ -1335,6 +1473,10 @@ declare module '@polkadot/api-base/types/errors' {
* Inclusion inherent called more than once per block.
**/
TooManyInclusionInherents: AugmentedError<ApiType>;
/**
* Too many candidates supplied.
**/
UnscheduledCandidate: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -1492,6 +1634,14 @@ declare module '@polkadot/api-base/types/errors' {
* Preimage is too large to store on-chain.
**/
TooBig: AugmentedError<ApiType>;
/**
* Too few hashes were requested to be upgraded (i.e. zero).
**/
TooFew: AugmentedError<ApiType>;
/**
* More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once.
**/
TooMany: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -1960,6 +2110,10 @@ declare module '@polkadot/api-base/types/errors' {
* Commission is too low. Must be at least `MinCommission`.
**/
CommissionTooLow: AugmentedError<ApiType>;
/**
* Used when attempting to use deprecated controller account logic.
**/
ControllerDeprecated: AugmentedError<ApiType>;
/**
* Duplicate index.
**/
@@ -1994,6 +2148,10 @@ declare module '@polkadot/api-base/types/errors' {
* Invalid number of nominations.
**/
InvalidNumberOfNominations: AugmentedError<ApiType>;
/**
* No nominators exist on this page.
**/
InvalidPage: AugmentedError<ApiType>;
/**
* Slash record index out of bounds.
**/
@@ -2097,17 +2255,41 @@ declare module '@polkadot/api-base/types/errors' {
* There is a non-zero reference count preventing the account from being purged.
**/
NonZeroRefCount: AugmentedError<ApiType>;
/**
* No upgrade authorized.
**/
NothingAuthorized: AugmentedError<ApiType>;
/**
* The specification version is not allowed to decrease between the current runtime
* and the new runtime.
**/
SpecVersionNeedsToIncrease: AugmentedError<ApiType>;
/**
* The submitted code is not authorized.
**/
Unauthorized: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
treasury: {
/**
* The payment has already been attempted.
**/
AlreadyAttempted: AugmentedError<ApiType>;
/**
* The spend is not yet eligible for payout.
**/
EarlyPayout: AugmentedError<ApiType>;
/**
* The balance of the asset kind is not convertible to the balance of the native asset.
**/
FailedToConvertBalance: AugmentedError<ApiType>;
/**
* The payment has neither failed nor succeeded yet.
**/
Inconclusive: AugmentedError<ApiType>;
/**
* The spend origin is valid but the amount it is allowed to spend is lower than the
* amount to be spent.
@@ -2118,13 +2300,25 @@ declare module '@polkadot/api-base/types/errors' {
**/
InsufficientProposersBalance: AugmentedError<ApiType>;
/**
* No proposal or bounty at that index.
* No proposal, bounty or spend at that index.
**/
InvalidIndex: AugmentedError<ApiType>;
/**
* The payout was not yet attempted/claimed.
**/
NotAttempted: AugmentedError<ApiType>;
/**
* There was some issue with the mechanism of payment.
**/
PayoutError: AugmentedError<ApiType>;
/**
* Proposal has not been approved.
**/
ProposalNotApproved: AugmentedError<ApiType>;
/**
* The spend has expired and cannot be claimed.
**/
SpendExpired: AugmentedError<ApiType>;
/**
* Too many approvals in the queue.
**/
@@ -2225,12 +2419,16 @@ declare module '@polkadot/api-base/types/errors' {
* The version of the `Versioned` value used is not able to be interpreted.
**/
BadVersion: AugmentedError<ApiType>;
/**
* Could not check-out the assets for teleportation to the destination chain.
**/
CannotCheckOutTeleport: AugmentedError<ApiType>;
/**
* Could not re-anchor the assets to declare the fees for the destination chain.
**/
CannotReanchor: AugmentedError<ApiType>;
/**
* The destination `MultiLocation` provided cannot be inverted.
* The destination `Location` provided cannot be inverted.
**/
DestinationNotInvertible: AugmentedError<ApiType>;
/**
@@ -2250,13 +2448,25 @@ declare module '@polkadot/api-base/types/errors' {
**/
InUse: AugmentedError<ApiType>;
/**
* Invalid asset for the operation.
* Invalid non-concrete asset.
**/
InvalidAsset: AugmentedError<ApiType>;
InvalidAssetNotConcrete: AugmentedError<ApiType>;
/**
* Invalid asset, reserve chain could not be determined for it.
**/
InvalidAssetUnknownReserve: AugmentedError<ApiType>;
/**
* Invalid asset, do not support remote asset reserves with different fees reserves.
**/
InvalidAssetUnsupportedReserve: AugmentedError<ApiType>;
/**
* Origin is invalid for sending.
**/
InvalidOrigin: AugmentedError<ApiType>;
/**
* Local XCM execution incomplete.
**/
LocalExecutionIncomplete: AugmentedError<ApiType>;
/**
* A remote lock with the corresponding data could not be found.
**/
@@ -2282,6 +2492,10 @@ declare module '@polkadot/api-base/types/errors' {
* The asset owner has too many locks on the asset.
**/
TooManyLocks: AugmentedError<ApiType>;
/**
* Too many assets with different reserve locations have been attempted for transfer.
**/
TooManyReserves: AugmentedError<ApiType>;
/**
* The desired destination was unreachable, generally because there is a no way of routing
* to it.
+177 -55
View File
@@ -10,12 +10,21 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
import type { ITuple } from '@polkadot/types-codec/types';
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSocietyGroupParams, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV5CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6CandidateReceipt, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, StagingKusamaRuntimeProxyType, StagingXcmV4AssetAssets, StagingXcmV4Location, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmV3TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
declare module '@polkadot/api-base/types/events' {
interface AugmentedEvents<ApiType extends ApiTypes> {
assetRate: {
AssetRateCreated: AugmentedEvent<ApiType, [assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset, rate: u128], { assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset, rate: u128 }>;
AssetRateRemoved: AugmentedEvent<ApiType, [assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset], { assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset }>;
AssetRateUpdated: AugmentedEvent<ApiType, [assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset, old: u128, new_: u128], { assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset, old: u128, new_: u128 }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
auctions: {
/**
* An auction ended. All funds become unreserved.
@@ -121,6 +130,10 @@ declare module '@polkadot/api-base/types/events' {
* Some balance was thawed.
**/
Thawed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
/**
* The `TotalIssuance` was forcefully changed.
**/
TotalIssuanceForced: AugmentedEvent<ApiType, [old: u128, new_: u128], { old: u128, new_: u128 }>;
/**
* Transfer succeeded.
**/
@@ -147,6 +160,10 @@ declare module '@polkadot/api-base/types/events' {
[key: string]: AugmentedEvent<ApiType>;
};
bounties: {
/**
* A bounty is approved.
**/
BountyApproved: AugmentedEvent<ApiType, [index: u32], { index: u32 }>;
/**
* A bounty is awarded to a beneficiary.
**/
@@ -175,6 +192,18 @@ declare module '@polkadot/api-base/types/events' {
* A bounty proposal was rejected; funds were slashed.
**/
BountyRejected: AugmentedEvent<ApiType, [index: u32, bond: u128], { index: u32, bond: u128 }>;
/**
* A bounty curator is accepted.
**/
CuratorAccepted: AugmentedEvent<ApiType, [bountyId: u32, curator: AccountId32], { bountyId: u32, curator: AccountId32 }>;
/**
* A bounty curator is proposed.
**/
CuratorProposed: AugmentedEvent<ApiType, [bountyId: u32, curator: AccountId32], { bountyId: u32, curator: AccountId32 }>;
/**
* A bounty curator is unassigned.
**/
CuratorUnassigned: AugmentedEvent<ApiType, [bountyId: u32], { bountyId: u32 }>;
/**
* Generic event
**/
@@ -226,6 +255,20 @@ declare module '@polkadot/api-base/types/events' {
**/
[key: string]: AugmentedEvent<ApiType>;
};
coretime: {
/**
* A core has received a new assignment from the broker chain.
**/
CoreAssigned: AugmentedEvent<ApiType, [core: u32], { core: u32 }>;
/**
* The broker chain has asked for revenue information for a specific block.
**/
RevenueInfoRequested: AugmentedEvent<ApiType, [when: u32], { when: u32 }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
crowdloan: {
/**
* A parachain has been moved to `NewRaise`
@@ -345,6 +388,10 @@ declare module '@polkadot/api-base/types/events' {
* A member `who` has been added.
**/
MemberAdded: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
/**
* The member `who` had their `AccountId` changed to `new_who`.
**/
MemberExchanged: AugmentedEvent<ApiType, [who: AccountId32, newWho: AccountId32], { who: AccountId32, newWho: AccountId32 }>;
/**
* The member `who` of given `rank` has been removed from the collective.
**/
@@ -391,7 +438,7 @@ declare module '@polkadot/api-base/types/events' {
**/
DecisionStarted: AugmentedEvent<ApiType, [index: u32, track: u16, proposal: FrameSupportPreimagesBounded, tally: PalletRankedCollectiveTally], { index: u32, track: u16, proposal: FrameSupportPreimagesBounded, tally: PalletRankedCollectiveTally }>;
/**
* A deposit has been slashaed.
* A deposit has been slashed.
**/
DepositSlashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
/**
@@ -447,34 +494,52 @@ declare module '@polkadot/api-base/types/events' {
};
hrmp: {
/**
* HRMP channel closed. `[by_parachain, channel_id]`
* HRMP channel closed.
**/
ChannelClosed: AugmentedEvent<ApiType, [u32, PolkadotParachainPrimitivesHrmpChannelId]>;
ChannelClosed: AugmentedEvent<ApiType, [byParachain: u32, channelId: PolkadotParachainPrimitivesPrimitivesHrmpChannelId], { byParachain: u32, channelId: PolkadotParachainPrimitivesPrimitivesHrmpChannelId }>;
/**
* An HRMP channel was opened via Root origin.
* `[sender, recipient, proposed_max_capacity, proposed_max_message_size]`
**/
HrmpChannelForceOpened: AugmentedEvent<ApiType, [u32, u32, u32, u32]>;
HrmpChannelForceOpened: AugmentedEvent<ApiType, [sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32], { sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32 }>;
/**
* Open HRMP channel accepted. `[sender, recipient]`
* An HRMP channel was opened between two system chains.
**/
OpenChannelAccepted: AugmentedEvent<ApiType, [u32, u32]>;
HrmpSystemChannelOpened: AugmentedEvent<ApiType, [sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32], { sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32 }>;
/**
* Open HRMP channel accepted.
**/
OpenChannelAccepted: AugmentedEvent<ApiType, [sender: u32, recipient: u32], { sender: u32, recipient: u32 }>;
/**
* An HRMP channel request sent by the receiver was canceled by either party.
* `[by_parachain, channel_id]`
**/
OpenChannelCanceled: AugmentedEvent<ApiType, [u32, PolkadotParachainPrimitivesHrmpChannelId]>;
OpenChannelCanceled: AugmentedEvent<ApiType, [byParachain: u32, channelId: PolkadotParachainPrimitivesPrimitivesHrmpChannelId], { byParachain: u32, channelId: PolkadotParachainPrimitivesPrimitivesHrmpChannelId }>;
/**
* An HRMP channel's deposits were updated.
**/
OpenChannelDepositsUpdated: AugmentedEvent<ApiType, [sender: u32, recipient: u32], { sender: u32, recipient: u32 }>;
/**
* Open HRMP channel requested.
* `[sender, recipient, proposed_max_capacity, proposed_max_message_size]`
**/
OpenChannelRequested: AugmentedEvent<ApiType, [u32, u32, u32, u32]>;
OpenChannelRequested: AugmentedEvent<ApiType, [sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32], { sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32 }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
identity: {
/**
* A username authority was added.
**/
AuthorityAdded: AugmentedEvent<ApiType, [authority: AccountId32], { authority: AccountId32 }>;
/**
* A username authority was removed.
**/
AuthorityRemoved: AugmentedEvent<ApiType, [authority: AccountId32], { authority: AccountId32 }>;
/**
* A dangling username (as in, a username corresponding to an account that has removed its
* identity) has been removed.
**/
DanglingUsernameRemoved: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], { who: AccountId32, username: Bytes }>;
/**
* A name was cleared, and the given balance returned.
**/
@@ -499,6 +564,14 @@ declare module '@polkadot/api-base/types/events' {
* A judgement request was retracted.
**/
JudgementUnrequested: AugmentedEvent<ApiType, [who: AccountId32, registrarIndex: u32], { who: AccountId32, registrarIndex: u32 }>;
/**
* A queued username passed its expiration without being claimed and was removed.
**/
PreapprovalExpired: AugmentedEvent<ApiType, [whose: AccountId32], { whose: AccountId32 }>;
/**
* A username was set as a primary and can be looked up from `who`.
**/
PrimaryUsernameSet: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], { who: AccountId32, username: Bytes }>;
/**
* A registrar was added.
**/
@@ -517,23 +590,13 @@ declare module '@polkadot/api-base/types/events' {
**/
SubIdentityRevoked: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], { sub: AccountId32, main: AccountId32, deposit: u128 }>;
/**
* Generic event
* A username was queued, but `who` must accept it prior to `expiration`.
**/
[key: string]: AugmentedEvent<ApiType>;
};
imOnline: {
UsernameQueued: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes, expiration: u32], { who: AccountId32, username: Bytes, expiration: u32 }>;
/**
* At the end of the session, no offence was committed.
* A username was set for `who`.
**/
AllGood: AugmentedEvent<ApiType, []>;
/**
* A new heartbeat was received from `AuthorityId`.
**/
HeartbeatReceived: AugmentedEvent<ApiType, [authorityId: PalletImOnlineSr25519AppSr25519Public], { authorityId: PalletImOnlineSr25519AppSr25519Public }>;
/**
* At the end of the session, at least one validator was found to be offline.
**/
SomeOffline: AugmentedEvent<ApiType, [offline: Vec<ITuple<[AccountId32, PalletStakingExposure]>>], { offline: Vec<ITuple<[AccountId32, PalletStakingExposure]>> }>;
UsernameSet: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], { who: AccountId32, username: Bytes }>;
/**
* Generic event
**/
@@ -569,11 +632,11 @@ declare module '@polkadot/api-base/types/events' {
/**
* Message is processed.
**/
Processed: AugmentedEvent<ApiType, [id: U8aFixed, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, weightUsed: SpWeightsWeightV2Weight, success: bool], { id: U8aFixed, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, weightUsed: SpWeightsWeightV2Weight, success: bool }>;
Processed: AugmentedEvent<ApiType, [id: H256, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, weightUsed: SpWeightsWeightV2Weight, success: bool], { id: H256, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, weightUsed: SpWeightsWeightV2Weight, success: bool }>;
/**
* Message discarded due to an error in the `MessageProcessor` (usually a format error).
**/
ProcessingFailed: AugmentedEvent<ApiType, [id: U8aFixed, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, error: FrameSupportMessagesProcessMessageError], { id: U8aFixed, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, error: FrameSupportMessagesProcessMessageError }>;
ProcessingFailed: AugmentedEvent<ApiType, [id: H256, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, error: FrameSupportMessagesProcessMessageError], { id: H256, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, error: FrameSupportMessagesProcessMessageError }>;
/**
* Generic event
**/
@@ -702,6 +765,10 @@ declare module '@polkadot/api-base/types/events' {
* Some balance was thawed.
**/
Thawed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
/**
* The `TotalIssuance` was forcefully changed.
**/
TotalIssuanceForced: AugmentedEvent<ApiType, [old: u128, new_: u128], { old: u128, new_: u128 }>;
/**
* Transfer succeeded.
**/
@@ -746,6 +813,14 @@ declare module '@polkadot/api-base/types/events' {
* The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked).
**/
MemberRemoved: AugmentedEvent<ApiType, [poolId: u32, member: AccountId32], { poolId: u32, member: AccountId32 }>;
/**
* Topped up deficit in frozen ED of the reward pool.
**/
MinBalanceDeficitAdjusted: AugmentedEvent<ApiType, [poolId: u32, amount: u128], { poolId: u32, amount: u128 }>;
/**
* Claimed excess frozen ED of af the reward pool.
**/
MinBalanceExcessAdjusted: AugmentedEvent<ApiType, [poolId: u32, amount: u128], { poolId: u32, amount: u128 }>;
/**
* A payout has been made to a member.
**/
@@ -758,6 +833,10 @@ declare module '@polkadot/api-base/types/events' {
* Pool commission has been claimed.
**/
PoolCommissionClaimed: AugmentedEvent<ApiType, [poolId: u32, commission: u128], { poolId: u32, commission: u128 }>;
/**
* Pool commission claim permission has been updated.
**/
PoolCommissionClaimPermissionUpdated: AugmentedEvent<ApiType, [poolId: u32, permission: Option<PalletNominationPoolsCommissionClaimPermission>], { poolId: u32, permission: Option<PalletNominationPoolsCommissionClaimPermission> }>;
/**
* A pool's commission setting has been changed.
**/
@@ -823,19 +902,33 @@ declare module '@polkadot/api-base/types/events' {
**/
[key: string]: AugmentedEvent<ApiType>;
};
onDemandAssignmentProvider: {
/**
* An order was placed at some spot price amount.
**/
OnDemandOrderPlaced: AugmentedEvent<ApiType, [paraId: u32, spotPrice: u128], { paraId: u32, spotPrice: u128 }>;
/**
* The value of the spot traffic multiplier changed.
**/
SpotTrafficSet: AugmentedEvent<ApiType, [traffic: u128], { traffic: u128 }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
paraInclusion: {
/**
* A candidate was backed. `[candidate, head_data]`
**/
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV5CandidateReceipt, Bytes, u32, u32]>;
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV6CandidateReceipt, Bytes, u32, u32]>;
/**
* A candidate was included. `[candidate, head_data]`
**/
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV5CandidateReceipt, Bytes, u32, u32]>;
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV6CandidateReceipt, Bytes, u32, u32]>;
/**
* A candidate timed out. `[candidate, head_data]`
**/
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV5CandidateReceipt, Bytes, u32]>;
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV6CandidateReceipt, Bytes, u32]>;
/**
* Some upward messages have been received and will be processed.
**/
@@ -934,7 +1027,7 @@ declare module '@polkadot/api-base/types/events' {
/**
* A proxy was added.
**/
ProxyAdded: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType: KusamaRuntimeProxyType, delay: u32], { delegator: AccountId32, delegatee: AccountId32, proxyType: KusamaRuntimeProxyType, delay: u32 }>;
ProxyAdded: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType: StagingKusamaRuntimeProxyType, delay: u32], { delegator: AccountId32, delegatee: AccountId32, proxyType: StagingKusamaRuntimeProxyType, delay: u32 }>;
/**
* A proxy was executed correctly, with the given.
**/
@@ -942,12 +1035,12 @@ declare module '@polkadot/api-base/types/events' {
/**
* A proxy was removed.
**/
ProxyRemoved: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType: KusamaRuntimeProxyType, delay: u32], { delegator: AccountId32, delegatee: AccountId32, proxyType: KusamaRuntimeProxyType, delay: u32 }>;
ProxyRemoved: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType: StagingKusamaRuntimeProxyType, delay: u32], { delegator: AccountId32, delegatee: AccountId32, proxyType: StagingKusamaRuntimeProxyType, delay: u32 }>;
/**
* A pure account has been created by new proxy with given
* disambiguation index and proxy type.
**/
PureCreated: AugmentedEvent<ApiType, [pure: AccountId32, who: AccountId32, proxyType: KusamaRuntimeProxyType, disambiguationIndex: u16], { pure: AccountId32, who: AccountId32, proxyType: KusamaRuntimeProxyType, disambiguationIndex: u16 }>;
PureCreated: AugmentedEvent<ApiType, [pure: AccountId32, who: AccountId32, proxyType: StagingKusamaRuntimeProxyType, disambiguationIndex: u16], { pure: AccountId32, who: AccountId32, proxyType: StagingKusamaRuntimeProxyType, disambiguationIndex: u16 }>;
/**
* Generic event
**/
@@ -1011,7 +1104,7 @@ declare module '@polkadot/api-base/types/events' {
**/
DecisionStarted: AugmentedEvent<ApiType, [index: u32, track: u16, proposal: FrameSupportPreimagesBounded, tally: PalletConvictionVotingTally], { index: u32, track: u16, proposal: FrameSupportPreimagesBounded, tally: PalletConvictionVotingTally }>;
/**
* A deposit has been slashaed.
* A deposit has been slashed.
**/
DepositSlashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
/**
@@ -1226,9 +1319,9 @@ declare module '@polkadot/api-base/types/events' {
**/
PayoutStarted: AugmentedEvent<ApiType, [eraIndex: u32, validatorStash: AccountId32], { eraIndex: u32, validatorStash: AccountId32 }>;
/**
* The nominator has been rewarded by this amount.
* The nominator has been rewarded by this amount to this destination.
**/
Rewarded: AugmentedEvent<ApiType, [stash: AccountId32, amount: u128], { stash: AccountId32, amount: u128 }>;
Rewarded: AugmentedEvent<ApiType, [stash: AccountId32, dest: PalletStakingRewardDestination, amount: u128], { stash: AccountId32, dest: PalletStakingRewardDestination, amount: u128 }>;
/**
* A staker (validator or nominator) has been slashed by the given amount.
**/
@@ -1320,6 +1413,10 @@ declare module '@polkadot/api-base/types/events' {
* On on-chain remark happened.
**/
Remarked: AugmentedEvent<ApiType, [sender: AccountId32, hash_: H256], { sender: AccountId32, hash_: H256 }>;
/**
* An upgrade was authorized.
**/
UpgradeAuthorized: AugmentedEvent<ApiType, [codeHash: H256, checkVersion: bool], { codeHash: H256, checkVersion: bool }>;
/**
* Generic event
**/
@@ -1337,6 +1434,14 @@ declare module '@polkadot/api-base/types/events' {
[key: string]: AugmentedEvent<ApiType>;
};
treasury: {
/**
* A new asset spend proposal has been approved.
**/
AssetSpendApproved: AugmentedEvent<ApiType, [index: u32, assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset, amount: u128, beneficiary: XcmVersionedLocation, validFrom: u32, expireAt: u32], { index: u32, assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset, amount: u128, beneficiary: XcmVersionedLocation, validFrom: u32, expireAt: u32 }>;
/**
* An approved spend was voided.
**/
AssetSpendVoided: AugmentedEvent<ApiType, [index: u32], { index: u32 }>;
/**
* Some funds have been allocated.
**/
@@ -1349,6 +1454,14 @@ declare module '@polkadot/api-base/types/events' {
* Some funds have been deposited.
**/
Deposit: AugmentedEvent<ApiType, [value: u128], { value: u128 }>;
/**
* A payment happened.
**/
Paid: AugmentedEvent<ApiType, [index: u32, paymentId: u64], { index: u32, paymentId: u64 }>;
/**
* A payment failed and can be retried.
**/
PaymentFailed: AugmentedEvent<ApiType, [index: u32, paymentId: u64], { index: u32, paymentId: u64 }>;
/**
* New proposal.
**/
@@ -1369,6 +1482,11 @@ declare module '@polkadot/api-base/types/events' {
* We have ended a spend period and will now allocate funds.
**/
Spending: AugmentedEvent<ApiType, [budgetRemaining: u128], { budgetRemaining: u128 }>;
/**
* A spend was processed and removed from the storage. It might have been successfully
* paid or it may have expired.
**/
SpendProcessed: AugmentedEvent<ApiType, [index: u32], { index: u32 }>;
/**
* The inactive funds of the pallet have been updated.
**/
@@ -1451,25 +1569,25 @@ declare module '@polkadot/api-base/types/events' {
/**
* Some assets have been claimed from an asset trap
**/
AssetsClaimed: AugmentedEvent<ApiType, [hash_: H256, origin: XcmV3MultiLocation, assets: XcmVersionedMultiAssets], { hash_: H256, origin: XcmV3MultiLocation, assets: XcmVersionedMultiAssets }>;
AssetsClaimed: AugmentedEvent<ApiType, [hash_: H256, origin: StagingXcmV4Location, assets: XcmVersionedAssets], { hash_: H256, origin: StagingXcmV4Location, assets: XcmVersionedAssets }>;
/**
* Some assets have been placed in an asset trap.
**/
AssetsTrapped: AugmentedEvent<ApiType, [hash_: H256, origin: XcmV3MultiLocation, assets: XcmVersionedMultiAssets], { hash_: H256, origin: XcmV3MultiLocation, assets: XcmVersionedMultiAssets }>;
AssetsTrapped: AugmentedEvent<ApiType, [hash_: H256, origin: StagingXcmV4Location, assets: XcmVersionedAssets], { hash_: H256, origin: StagingXcmV4Location, assets: XcmVersionedAssets }>;
/**
* Execution of an XCM message was attempted.
**/
Attempted: AugmentedEvent<ApiType, [outcome: XcmV3TraitsOutcome], { outcome: XcmV3TraitsOutcome }>;
Attempted: AugmentedEvent<ApiType, [outcome: StagingXcmV4TraitsOutcome], { outcome: StagingXcmV4TraitsOutcome }>;
/**
* Fees were paid from a location for an operation (often for using `SendXcm`).
**/
FeesPaid: AugmentedEvent<ApiType, [paying: XcmV3MultiLocation, fees: XcmV3MultiassetMultiAssets], { paying: XcmV3MultiLocation, fees: XcmV3MultiassetMultiAssets }>;
FeesPaid: AugmentedEvent<ApiType, [paying: StagingXcmV4Location, fees: StagingXcmV4AssetAssets], { paying: StagingXcmV4Location, fees: StagingXcmV4AssetAssets }>;
/**
* Expected query response has been received but the querier location of the response does
* not match the expected. The query remains registered for a later, valid, response to
* be received and acted upon.
**/
InvalidQuerier: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, queryId: u64, expectedQuerier: XcmV3MultiLocation, maybeActualQuerier: Option<XcmV3MultiLocation>], { origin: XcmV3MultiLocation, queryId: u64, expectedQuerier: XcmV3MultiLocation, maybeActualQuerier: Option<XcmV3MultiLocation> }>;
InvalidQuerier: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64, expectedQuerier: StagingXcmV4Location, maybeActualQuerier: Option<StagingXcmV4Location>], { origin: StagingXcmV4Location, queryId: u64, expectedQuerier: StagingXcmV4Location, maybeActualQuerier: Option<StagingXcmV4Location> }>;
/**
* Expected query response has been received but the expected querier location placed in
* storage by this runtime previously cannot be decoded. The query remains registered.
@@ -1479,13 +1597,13 @@ declare module '@polkadot/api-base/types/events' {
* valid response will be dropped. Manual governance intervention is probably going to be
* needed.
**/
InvalidQuerierVersion: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, queryId: u64], { origin: XcmV3MultiLocation, queryId: u64 }>;
InvalidQuerierVersion: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64], { origin: StagingXcmV4Location, queryId: u64 }>;
/**
* Expected query response has been received but the origin location of the response does
* not match that expected. The query remains registered for a later, valid, response to
* be received and acted upon.
**/
InvalidResponder: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, queryId: u64, expectedLocation: Option<XcmV3MultiLocation>], { origin: XcmV3MultiLocation, queryId: u64, expectedLocation: Option<XcmV3MultiLocation> }>;
InvalidResponder: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64, expectedLocation: Option<StagingXcmV4Location>], { origin: StagingXcmV4Location, queryId: u64, expectedLocation: Option<StagingXcmV4Location> }>;
/**
* Expected query response has been received but the expected origin location placed in
* storage by this runtime previously cannot be decoded. The query remains registered.
@@ -1495,7 +1613,7 @@ declare module '@polkadot/api-base/types/events' {
* valid response will be dropped. Manual governance intervention is probably going to be
* needed.
**/
InvalidResponderVersion: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, queryId: u64], { origin: XcmV3MultiLocation, queryId: u64 }>;
InvalidResponderVersion: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64], { origin: StagingXcmV4Location, queryId: u64 }>;
/**
* Query response has been received and query is removed. The registered notification has
* been dispatched and executed successfully.
@@ -1522,17 +1640,17 @@ declare module '@polkadot/api-base/types/events' {
* A given location which had a version change subscription was dropped owing to an error
* migrating the location to our new XCM format.
**/
NotifyTargetMigrationFail: AugmentedEvent<ApiType, [location: XcmVersionedMultiLocation, queryId: u64], { location: XcmVersionedMultiLocation, queryId: u64 }>;
NotifyTargetMigrationFail: AugmentedEvent<ApiType, [location: XcmVersionedLocation, queryId: u64], { location: XcmVersionedLocation, queryId: u64 }>;
/**
* A given location which had a version change subscription was dropped owing to an error
* sending the notification to it.
**/
NotifyTargetSendFail: AugmentedEvent<ApiType, [location: XcmV3MultiLocation, queryId: u64, error: XcmV3TraitsError], { location: XcmV3MultiLocation, queryId: u64, error: XcmV3TraitsError }>;
NotifyTargetSendFail: AugmentedEvent<ApiType, [location: StagingXcmV4Location, queryId: u64, error: XcmV3TraitsError], { location: StagingXcmV4Location, queryId: u64, error: XcmV3TraitsError }>;
/**
* Query response has been received and is ready for taking with `take_response`. There is
* no registered notification call.
**/
ResponseReady: AugmentedEvent<ApiType, [queryId: u64, response: XcmV3Response], { queryId: u64, response: XcmV3Response }>;
ResponseReady: AugmentedEvent<ApiType, [queryId: u64, response: StagingXcmV4Response], { queryId: u64, response: StagingXcmV4Response }>;
/**
* Received query response has been read and removed.
**/
@@ -1540,38 +1658,42 @@ declare module '@polkadot/api-base/types/events' {
/**
* A XCM message was sent.
**/
Sent: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, destination: XcmV3MultiLocation, message: XcmV3Xcm, messageId: U8aFixed], { origin: XcmV3MultiLocation, destination: XcmV3MultiLocation, message: XcmV3Xcm, messageId: U8aFixed }>;
Sent: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, destination: StagingXcmV4Location, message: StagingXcmV4Xcm, messageId: U8aFixed], { origin: StagingXcmV4Location, destination: StagingXcmV4Location, message: StagingXcmV4Xcm, messageId: U8aFixed }>;
/**
* The supported version of a location has been changed. This might be through an
* automatic notification or a manual intervention.
**/
SupportedVersionChanged: AugmentedEvent<ApiType, [location: XcmV3MultiLocation, version: u32], { location: XcmV3MultiLocation, version: u32 }>;
SupportedVersionChanged: AugmentedEvent<ApiType, [location: StagingXcmV4Location, version: u32], { location: StagingXcmV4Location, version: u32 }>;
/**
* Query response received which does not match a registered query. This may be because a
* matching query was never registered, it may be because it is a duplicate response, or
* because the query timed out.
**/
UnexpectedResponse: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, queryId: u64], { origin: XcmV3MultiLocation, queryId: u64 }>;
UnexpectedResponse: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64], { origin: StagingXcmV4Location, queryId: u64 }>;
/**
* An XCM version change notification message has been attempted to be sent.
*
* The cost of sending it (borne by the chain) is included.
**/
VersionChangeNotified: AugmentedEvent<ApiType, [destination: XcmV3MultiLocation, result: u32, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed], { destination: XcmV3MultiLocation, result: u32, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed }>;
VersionChangeNotified: AugmentedEvent<ApiType, [destination: StagingXcmV4Location, result: u32, cost: StagingXcmV4AssetAssets, messageId: U8aFixed], { destination: StagingXcmV4Location, result: u32, cost: StagingXcmV4AssetAssets, messageId: U8aFixed }>;
/**
* A XCM version migration finished.
**/
VersionMigrationFinished: AugmentedEvent<ApiType, [version: u32], { version: u32 }>;
/**
* We have requested that a remote chain send us XCM version change notifications.
**/
VersionNotifyRequested: AugmentedEvent<ApiType, [destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed], { destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed }>;
VersionNotifyRequested: AugmentedEvent<ApiType, [destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed], { destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed }>;
/**
* A remote has requested XCM version change notification from us and we have honored it.
* A version information message is sent to them and its cost is included.
**/
VersionNotifyStarted: AugmentedEvent<ApiType, [destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed], { destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed }>;
VersionNotifyStarted: AugmentedEvent<ApiType, [destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed], { destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed }>;
/**
* We have requested that a remote chain stops sending us XCM version change
* notifications.
**/
VersionNotifyUnrequested: AugmentedEvent<ApiType, [destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed], { destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed }>;
VersionNotifyUnrequested: AugmentedEvent<ApiType, [destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed], { destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed }>;
/**
* Generic event
**/
+229 -84
View File
@@ -11,7 +11,7 @@ import type { BTreeMap, BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, bo
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
import type { AccountId32, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeRuntimeHoldReason, KusamaRuntimeSessionKeys, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV5AssignmentAppPublic, PolkadotPrimitivesV5CandidateCommitments, PolkadotPrimitivesV5CoreOccupied, PolkadotPrimitivesV5DisputeState, PolkadotPrimitivesV5ExecutorParams, PolkadotPrimitivesV5ParasEntry, PolkadotPrimitivesV5ScrapedOnChainVotes, PolkadotPrimitivesV5SessionInfo, PolkadotPrimitivesV5SlashingPendingSlashes, PolkadotPrimitivesV5UpgradeGoAhead, PolkadotPrimitivesV5UpgradeRestriction, PolkadotPrimitivesV5ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6AssignmentAppPublic, PolkadotPrimitivesV6CandidateCommitments, PolkadotPrimitivesV6DisputeState, PolkadotPrimitivesV6ExecutorParams, PolkadotPrimitivesV6ScrapedOnChainVotes, PolkadotPrimitivesV6SessionInfo, PolkadotPrimitivesV6SlashingPendingSlashes, PolkadotPrimitivesV6UpgradeGoAhead, PolkadotPrimitivesV6UpgradeRestriction, PolkadotPrimitivesV6ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor, PolkadotRuntimeParachainsAssignerCoretimeSchedule, PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount, PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerPalletCoreOccupied, PolkadotRuntimeParachainsSchedulerPalletParasEntry, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight, StagingKusamaRuntimeRuntimeFreezeReason, StagingKusamaRuntimeRuntimeHoldReason, StagingKusamaRuntimeSessionKeys, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
import type { Observable } from '@polkadot/types/types';
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
@@ -19,6 +19,18 @@ export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorage
declare module '@polkadot/api-base/types/storage' {
interface AugmentedQueries<ApiType extends ApiTypes> {
assetRate: {
/**
* Maps an asset to its fixed point representation in the native balance.
*
* E.g. `native_amount = asset_amount * ConversionRateToNative::<T>::get(asset_kind)`
**/
conversionRateToNative: AugmentedQuery<ApiType, (arg: PolkadotRuntimeCommonImplsVersionedLocatableAsset | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Option<u128>>, [PolkadotRuntimeCommonImplsVersionedLocatableAsset]> & QueryableStorageEntry<ApiType, [PolkadotRuntimeCommonImplsVersionedLocatableAsset]>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
auctions: {
/**
* Number of auctions started so far.
@@ -48,6 +60,20 @@ declare module '@polkadot/api-base/types/storage' {
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
authorityDiscovery: {
/**
* Keys of the current authority set.
**/
keys: AugmentedQuery<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Keys of the next authority set.
**/
nextKeys: AugmentedQuery<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
authorship: {
/**
* Author of current block.
@@ -202,12 +228,15 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Freeze locks on account balances.
**/
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<{
readonly id: StagingKusamaRuntimeRuntimeFreezeReason;
readonly amount: u128;
} & Struct>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Holds on account balances.
**/
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<{
readonly id: KusamaRuntimeRuntimeHoldReason;
readonly id: StagingKusamaRuntimeRuntimeHoldReason;
readonly amount: u128;
} & Struct>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
@@ -239,8 +268,8 @@ declare module '@polkadot/api-base/types/storage' {
authorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusBeefyEcdsaCryptoPublic>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Block number where BEEFY consensus is enabled/started.
* By changing this (through governance or sudo), BEEFY consensus is effectively
* restarted from the new block number.
* By changing this (through privileged `set_new_genesis()`), BEEFY consensus is effectively
* restarted from the newly set block number.
**/
genesisBlock: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
@@ -399,6 +428,26 @@ declare module '@polkadot/api-base/types/storage' {
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
coretimeAssignmentProvider: {
/**
* Assignments which are currently active.
*
* They will be picked from `PendingAssignments` once we reach the scheduled block number in
* `PendingAssignments`.
**/
coreDescriptors: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Scheduled assignment sets.
*
* Assignments as of the given block number. They will go into state once the block number is
* reached (and replace whatever was in there before).
**/
coreSchedules: AugmentedQuery<ApiType, (arg: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<PolkadotRuntimeParachainsAssignerCoretimeSchedule>>, [ITuple<[u32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[u32, u32]>]>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
crowdloan: {
/**
* The number of auctions that have entered into their ending period so far.
@@ -424,7 +473,7 @@ declare module '@polkadot/api-base/types/storage' {
};
dmp: {
/**
* The number to multiply the base delivery fee by.
* The factor to multiply the base delivery fee by.
**/
deliveryFeeFactor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
@@ -455,6 +504,7 @@ declare module '@polkadot/api-base/types/storage' {
* Desired number of targets to elect for this round.
*
* Only exists when [`Snapshot`] is present.
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
**/
desiredTargets: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
@@ -514,12 +564,14 @@ declare module '@polkadot/api-base/types/storage' {
* Snapshot data of the round.
*
* This is created at the beginning of the signed phase and cleared upon calling `elect`.
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
**/
snapshot: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseRoundSnapshot>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The metadata of the [`RoundSnapshot`]
*
* Only exists when [`Snapshot`] is present.
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
**/
snapshotMetadata: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseSolutionOrSnapshotSize>>, []> & QueryableStorageEntry<ApiType, []>;
/**
@@ -596,7 +648,7 @@ declare module '@polkadot/api-base/types/storage' {
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
/**
* The metadata is a general information concerning the referendum.
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
* The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
* dump or IPFS hash of a JSON file.
*
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
@@ -624,6 +676,10 @@ declare module '@polkadot/api-base/types/storage' {
[key: string]: QueryableStorageEntry<ApiType>;
};
grandpa: {
/**
* The current list of authorities.
**/
authorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The number of changes (both in terms of keys and underlying economic responsibilities)
* in the "set" of Grandpa validators from genesis.
@@ -663,6 +719,20 @@ declare module '@polkadot/api-base/types/storage' {
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
historical: {
/**
* Mapping from historical session indices to session-data root hash and validator count.
**/
historicalSessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[H256, u32]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* The range of historical sessions we store. [first, last)
**/
storedRange: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
hrmp: {
/**
* This mapping tracks how many open channel requests were accepted by a given recipient para.
@@ -674,7 +744,7 @@ declare module '@polkadot/api-base/types/storage' {
* Storage for the messages for each channel.
* Invariant: cannot be non-empty if the corresponding channel in `HrmpChannels` is `None`.
**/
hrmpChannelContents: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundHrmpMessage>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
hrmpChannelContents: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundHrmpMessage>>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]>;
/**
* Maintains a mapping that can be used to answer the question: What paras sent a message at
* the given block number for a given receiver. Invariants:
@@ -689,7 +759,7 @@ declare module '@polkadot/api-base/types/storage' {
* Invariant:
* - each participant in the channel should satisfy `Paras::is_valid_para(P)` within a session.
**/
hrmpChannels: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpChannel>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
hrmpChannels: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpChannel>>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]>;
/**
* A set of pending HRMP close channel requests that are going to be closed during the session
* change. Used for checking if a given channel is registered for closure.
@@ -699,8 +769,8 @@ declare module '@polkadot/api-base/types/storage' {
* Invariant:
* - There are no channels that exists in list but not in the set and vice versa.
**/
hrmpCloseChannelRequests: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Option<Null>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
hrmpCloseChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
hrmpCloseChannelRequests: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Option<Null>>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]>;
hrmpCloseChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
hrmpEgressChannelsIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Ingress/egress indexes allow to find all the senders and receivers given the opposite side.
@@ -732,8 +802,8 @@ declare module '@polkadot/api-base/types/storage' {
* Invariant:
* - There are no channels that exists in list but not in the set and vice versa.
**/
hrmpOpenChannelRequests: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
hrmpOpenChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
hrmpOpenChannelRequests: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest>>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]>;
hrmpOpenChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The HRMP watermark associated with each para.
* Invariant:
@@ -748,11 +818,29 @@ declare module '@polkadot/api-base/types/storage' {
};
identity: {
/**
* Information that is pertinent to identify the entity behind an account.
* Reverse lookup from `username` to the `AccountId` that has registered it. The value should
* be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
*
* Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
* primary username.
**/
accountOfUsername: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<AccountId32>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
/**
* Information that is pertinent to identify the entity behind an account. First item is the
* registration, second is the account's primary username.
*
* TWOX-NOTE: OK `AccountId` is a secure hash.
**/
identityOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityRegistration>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
identityOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[PalletIdentityRegistration, Option<Bytes>]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Usernames that an authority has granted, but that the account controller has not confirmed
* that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
* because they are a pure proxy, multisig, etc. In order to confirm it, they should call
* [`Call::accept_username`].
*
* First tuple item is the account and second is the acceptance deadline.
**/
pendingUsernames: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
/**
* The set of registrars. Not expected to get very big as can only be added through a
* special origin (likely a council motion).
@@ -774,38 +862,9 @@ declare module '@polkadot/api-base/types/storage' {
**/
superOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, Data]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Generic query
* A map of the accounts who are authorized to grant usernames.
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
imOnline: {
/**
* For each session index, we keep a mapping of `ValidatorId<T>` to the
* number of blocks authored by the given authority.
**/
authoredBlocks: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<u32>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
* The block number after which it's ok to send heartbeats in the current
* session.
*
* At the beginning of each session we set this to a value that should fall
* roughly in the middle of the session duration. The idea is to first wait for
* the validators to produce a block in the current session, so that the
* heartbeat later on will not be necessary.
*
* This value will only be used as a fallback if we fail to get a proper session
* progress estimate from `NextSessionRotation`, as those estimates should be
* more accurate then the value we calculate for `HeartbeatAfter`.
**/
heartbeatAfter: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The current set of keys that may issue a heartbeat.
**/
keys: AugmentedQuery<ApiType, () => Observable<Vec<PalletImOnlineSr25519AppSr25519Public>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`.
**/
receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<bool>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
usernameAuthorities: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityAuthorityProperties>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Generic query
**/
@@ -959,7 +1018,7 @@ declare module '@polkadot/api-base/types/storage' {
* Holds on account balances.
**/
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<{
readonly id: KusamaRuntimeRuntimeHoldReason;
readonly id: StagingKusamaRuntimeRuntimeHoldReason;
readonly amount: u128;
} & Struct>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
@@ -1083,6 +1142,14 @@ declare module '@polkadot/api-base/types/storage' {
* bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
**/
subPoolsStorage: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsSubPools>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* The sum of funds across all pools.
*
* This might be lower but never higher than the sum of `total_balance` of all [`PoolMembers`]
* because calling `pool_withdraw_unbonded` might decrease the total stake of the pool's
* `bonded_account` without adjusting the pallet-internal `UnbondingPool`'s.
**/
totalValueLocked: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
@@ -1102,7 +1169,23 @@ declare module '@polkadot/api-base/types/storage' {
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
paraAssignmentProvider: {
onDemandAssignmentProvider: {
/**
* The order storage entry. Uses a VecDeque to be able to push to the front of the
* queue from the scheduler on session boundaries.
**/
onDemandQueue: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Maps a `ParaId` to `CoreIndex` and keeps track of how many assignments the scheduler has in
* it's lookahead. Keeping track of this affinity prevents parallel execution of the same
* `ParaId` on two or more `CoreIndex`es.
**/
paraIdAffinity: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Keeps track of the multiplier used to calculate the current spot price for the on demand
* assigner.
**/
spotTraffic: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
@@ -1120,7 +1203,7 @@ declare module '@polkadot/api-base/types/storage' {
/**
* The commitments of candidates pending availability, by `ParaId`.
**/
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
**/
@@ -1139,7 +1222,7 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Scraped on chain data for extracting resolved disputes as well as backing votes.
**/
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV5ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV6ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
@@ -1263,7 +1346,7 @@ declare module '@polkadot/api-base/types/storage' {
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
* the format will require migration of parachains.
**/
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* This is used by the relay-chain to communicate that there are restrictions for performing
* an upgrade for this parachain.
@@ -1275,7 +1358,7 @@ declare module '@polkadot/api-base/types/storage' {
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
* the format will require migration of parachains.
**/
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
**/
@@ -1292,7 +1375,7 @@ declare module '@polkadot/api-base/types/storage' {
* * The number of parachains and parathread multiplexers
* * The number of validators divided by `configuration.max_validators_per_core`.
**/
availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV5CoreOccupied>>, []> & QueryableStorageEntry<ApiType, []>;
availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotRuntimeParachainsSchedulerPalletCoreOccupied>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* One entry for each availability core. The `VecDeque` represents the assignments to be
* scheduled on that core. `None` is used to signal to not schedule the next para of the core
@@ -1300,7 +1383,7 @@ declare module '@polkadot/api-base/types/storage' {
* `CoreState` in the runtime API. The value contained here will not be valid after the end of
* a block. Runtime APIs should be used to determine scheduled cores/ for the upcoming block.
**/
claimQueue: AugmentedQuery<ApiType, () => Observable<BTreeMap<u32, Vec<Option<PolkadotPrimitivesV5ParasEntry>>>>, []> & QueryableStorageEntry<ApiType, []>;
claimQueue: AugmentedQuery<ApiType, () => Observable<BTreeMap<u32, Vec<PolkadotRuntimeParachainsSchedulerPalletParasEntry>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The block number where the session start occurred. Used to track how many group rotations
* have occurred.
@@ -1335,7 +1418,7 @@ declare module '@polkadot/api-base/types/storage' {
/**
* All ongoing or concluded disputes for the last several sessions.
**/
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV5DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV6DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
/**
* Whether the chain is frozen. Starts as `None`. When this is `Some`,
* the chain will not accept any new parachain blocks for backing or inclusion,
@@ -1368,7 +1451,7 @@ declare module '@polkadot/api-base/types/storage' {
* Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
* When in doubt, use `Sessions` API instead.
**/
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV5AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV6AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The earliest session for which previous session info is stored.
**/
@@ -1376,13 +1459,13 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Executor parameter set for a given session index
**/
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Session information in a rolling window.
* Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
* Does not have any entries before the session index in the first session change notification.
**/
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
**/
@@ -1398,7 +1481,7 @@ declare module '@polkadot/api-base/types/storage' {
* The parachain attestation keys of the validators actively participating in parachain
* consensus. This should be the same length as `ActiveValidatorIndices`.
**/
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV5ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV6ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* All allowed relay-parents.
**/
@@ -1416,7 +1499,7 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Validators pending dispute slashes.
**/
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV5SlashingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV6SlashingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
/**
* `ValidatorSetCount` per session.
**/
@@ -1431,7 +1514,11 @@ declare module '@polkadot/api-base/types/storage' {
/**
* The request status of a given hash.
**/
statusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
requestStatusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
/**
* The request status of a given hash.
**/
statusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageOldRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
/**
* Generic query
**/
@@ -1482,7 +1569,7 @@ declare module '@polkadot/api-base/types/storage' {
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
/**
* The metadata is a general information concerning the referendum.
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
* The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
* dump or IPFS hash of a JSON file.
*
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
@@ -1568,7 +1655,7 @@ declare module '@polkadot/api-base/types/storage' {
/**
* The next session keys for a validator.
**/
nextKeys: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<KusamaRuntimeSessionKeys>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
nextKeys: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<StagingKusamaRuntimeSessionKeys>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* True if the underlying economic identities or weighting behind the validators
* has changed in the queued validator set.
@@ -1578,7 +1665,7 @@ declare module '@polkadot/api-base/types/storage' {
* The queued keys for the next session. When the next session begins, these keys
* will be used to determine the validator's session keys.
**/
queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, KusamaRuntimeSessionKeys]>>>, []> & QueryableStorageEntry<ApiType, []>;
queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, StagingKusamaRuntimeSessionKeys]>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The current set of validators.
**/
@@ -1732,6 +1819,15 @@ declare module '@polkadot/api-base/types/storage' {
* (`CountFor*`) in the system compared to the configured max (`Max*Count`).
**/
chillThreshold: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* History of claimed paged rewards by era and validator.
*
* This is keyed by era and validator stash which maps to the set of page indexes which have
* been claimed.
*
* It is removed after [`Config::HistoryDepth`] eras.
**/
claimedRewards: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Vec<u32>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
* Counter for the related counted storage map
**/
@@ -1754,7 +1850,7 @@ declare module '@polkadot/api-base/types/storage' {
**/
currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Rewards for the last `HISTORY_DEPTH` eras.
* Rewards for the last [`Config::HistoryDepth`] eras.
* If reward hasn't been set or has been removed then 0 reward is returned.
**/
erasRewardPoints: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletStakingEraRewardPoints>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
@@ -1763,33 +1859,64 @@ declare module '@polkadot/api-base/types/storage' {
*
* This is keyed first by the era index to allow bulk deletion and then the stash account.
*
* Is it removed after `HISTORY_DEPTH` eras.
* Is it removed after [`Config::HistoryDepth`] eras.
* If stakers hasn't been set or has been removed then empty exposure is returned.
*
* Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
**/
erasStakers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
erasStakers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<SpStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
* Clipped Exposure of validator at era.
*
* Note: This is deprecated, should be used as read-only and will be removed in the future.
* New `Exposure`s are stored in a paged manner in `ErasStakersPaged` instead.
*
* This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the
* `T::MaxNominatorRewardedPerValidator` biggest stakers.
* `T::MaxExposurePageSize` biggest stakers.
* (Note: the field `total` and `own` of the exposure remains unchanged).
* This is used to limit the i/o cost for the nominator payout.
*
* This is keyed fist by the era index to allow bulk deletion and then the stash account.
*
* Is it removed after `HISTORY_DEPTH` eras.
* It is removed after [`Config::HistoryDepth`] eras.
* If stakers hasn't been set or has been removed then empty exposure is returned.
*
* Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
**/
erasStakersClipped: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
erasStakersClipped: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<SpStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
* The session index at which the era start for the last `HISTORY_DEPTH` eras.
* Summary of validator exposure at a given era.
*
* This contains the total stake in support of the validator and their own stake. In addition,
* it can also be used to get the number of nominators backing this validator and the number of
* exposure pages they are divided into. The page count is useful to determine the number of
* pages of rewards that needs to be claimed.
*
* This is keyed first by the era index to allow bulk deletion and then the stash account.
* Should only be accessed through `EraInfo`.
*
* Is it removed after [`Config::HistoryDepth`] eras.
* If stakers hasn't been set or has been removed then empty overview is returned.
**/
erasStakersOverview: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<SpStakingPagedExposureMetadata>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
* Paginated exposure of a validator at given era.
*
* This is keyed first by the era index to allow bulk deletion, then stash account and finally
* the page. Should only be accessed through `EraInfo`.
*
* This is cleared after [`Config::HistoryDepth`] eras.
**/
erasStakersPaged: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<Option<SpStakingExposurePage>>, [u32, AccountId32, u32]> & QueryableStorageEntry<ApiType, [u32, AccountId32, u32]>;
/**
* The session index at which the era start for the last [`Config::HistoryDepth`] eras.
*
* Note: This tracks the starting session (i.e. session index when era start being active)
* for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`.
**/
erasStartSessionIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* The total amount staked for the last `HISTORY_DEPTH` eras.
* The total amount staked for the last [`Config::HistoryDepth`] eras.
* If total hasn't been set or has been removed then 0 stake is returned.
**/
erasTotalStake: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
@@ -1798,11 +1925,11 @@ declare module '@polkadot/api-base/types/storage' {
*
* This is keyed first by the era index to allow bulk deletion and then the stash account.
*
* Is it removed after `HISTORY_DEPTH` eras.
* Is it removed after [`Config::HistoryDepth`] eras.
**/
erasValidatorPrefs: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
* The total validator era payout for the last `HISTORY_DEPTH` eras.
* The total validator era payout for the last [`Config::HistoryDepth`] eras.
*
* Eras that haven't finished yet or has been removed doesn't have reward.
**/
@@ -1819,6 +1946,9 @@ declare module '@polkadot/api-base/types/storage' {
invulnerables: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Map from all (unlocked) "controller" accounts to the info regarding the staking.
*
* Note: All the reads and mutations to this storage *MUST* be done through the methods exposed
* by [`StakingLedger`] to ensure data and lock consistency.
**/
ledger: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingStakingLedger>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
@@ -1898,7 +2028,7 @@ declare module '@polkadot/api-base/types/storage' {
*
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
**/
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingRewardDestination>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingRewardDestination>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Slashing spans for stash accounts.
**/
@@ -1972,6 +2102,10 @@ declare module '@polkadot/api-base/types/storage' {
* Total length (in bytes) for all extrinsics put together, for the current block.
**/
allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* `Some` if a code upgrade has been authorized.
**/
authorizedUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemCodeUpgradeAuthorization>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Map of block numbers to block hashes.
**/
@@ -2051,11 +2185,14 @@ declare module '@polkadot/api-base/types/storage' {
};
timestamp: {
/**
* Did the timestamp get updated in this block?
* Whether the timestamp has been updated in this block.
*
* This value is updated to `true` upon successful submission of a timestamp by a node.
* It is then checked at the end of each block execution in the `on_finalize` hook.
**/
didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Current time for the current block.
* The current time for the current block.
**/
now: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
/**
@@ -2088,6 +2225,14 @@ declare module '@polkadot/api-base/types/storage' {
* Proposals that have been made.
**/
proposals: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTreasuryProposal>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* The count of spends that have been made.
**/
spendCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Spends that have been approved and being processed.
**/
spends: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTreasurySpendStatus>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
**/
@@ -2142,7 +2287,7 @@ declare module '@polkadot/api-base/types/storage' {
/**
* The existing asset traps.
*
* Key is the blake2 256 hash of (origin, versioned `MultiAssets`) pair. Value is the number of
* Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of
* times this pair has been trapped (usually just 1 if it exists at all).
**/
assetTraps: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<u32>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
@@ -2153,7 +2298,7 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Fungible assets which we know are locked on this chain.
**/
lockedFungibles: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Vec<ITuple<[u128, XcmVersionedMultiLocation]>>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
lockedFungibles: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Vec<ITuple<[u128, XcmVersionedLocation]>>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* The ongoing queries.
**/
@@ -2165,7 +2310,7 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Fungible assets which we know are locked on a remote chain.
**/
remoteLockedFungibles: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: XcmVersionedAssetId | { V3: any } | string | Uint8Array) => Observable<Option<PalletXcmRemoteLockedFungibleRecord>>, [u32, AccountId32, XcmVersionedAssetId]> & QueryableStorageEntry<ApiType, [u32, AccountId32, XcmVersionedAssetId]>;
remoteLockedFungibles: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Option<PalletXcmRemoteLockedFungibleRecord>>, [u32, AccountId32, XcmVersionedAssetId]> & QueryableStorageEntry<ApiType, [u32, AccountId32, XcmVersionedAssetId]>;
/**
* Default version to encode XCM when latest version of destination is unknown. If `None`,
* then the destinations whose XCM version is unknown are considered unreachable.
@@ -2174,22 +2319,22 @@ declare module '@polkadot/api-base/types/storage' {
/**
* The Latest versions that we know various locations support.
**/
supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<u32>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Option<u32>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
/**
* Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
* the `u32` counter is the number of times that a send to the destination has been attempted,
* which is used as a prioritization.
**/
versionDiscoveryQueue: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[XcmVersionedMultiLocation, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
versionDiscoveryQueue: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[XcmVersionedLocation, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* All locations that we have requested version notifications from.
**/
versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<u64>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Option<u64>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
/**
* The target locations that are subscribed to our version changes, as well as the most recent
* of our versions we informed them of.
**/
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
/**
* Global suspension state of the XCM executor.
**/
+50 -5
View File
@@ -6,7 +6,7 @@
import '@polkadot/api-base/types/calls';
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec';
import type { Bytes, Null, Option, Result, U64, Vec, bool, u32 } from '@polkadot/types-codec';
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
import type { BeefyAuthoritySet, BeefyEquivocationProof, BeefyNextAuthoritySet, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
@@ -14,14 +14,16 @@ import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfa
import type { BlockHash } from '@polkadot/types/interfaces/chain';
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
import type { CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreState, DisputeProof, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PendingSlashes, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
import type { ApprovalVotingParams, AsyncBackingParams, BackingState, CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreState, DisputeProof, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, NodeFeatures, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PendingSlashes, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
import type { SessionIndex } from '@polkadot/types/interfaces/session';
import type { ValidatorIndex } from '@polkadot/types/interfaces/staking';
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
@@ -165,6 +167,21 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xfbc577b9d747efd6/1 */
genesisBuilder: {
/**
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
**/
buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
/**
* Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
**/
createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xed99c5acb25eedf5/3 */
grandpaApi: {
/**
@@ -213,10 +230,14 @@ declare module '@polkadot/api-base/types/calls' {
* Generate MMR proof for the given block numbers.
**/
generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
/**
* Return the number of MMR blocks in the chain.
**/
mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<U64, MmrError>>>;
/**
* Return the on-chain MMR root hash.
**/
root: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
/**
* Verify MMR proof against on-chain MMR.
**/
@@ -260,12 +281,20 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xaf2c0297a23e6d3d/5 */
/** 0xaf2c0297a23e6d3d/10 */
parachainHost: {
/**
* Approval voting configuration parameters
**/
approvalVotingParams: AugmentedCall<ApiType, () => Observable<ApprovalVotingParams>>;
/**
* Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.
**/
assumedValidationData: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, hash: Hash | string | Uint8Array) => Observable<Option<ITuple<[PersistedValidationData, ValidationCodeHash]>>>>;
/**
* Returns candidate's acceptance limitations for asynchronous backing for a relay parent
**/
asyncBackingParams: AugmentedCall<ApiType, () => Observable<AsyncBackingParams>>;
/**
* Yields information on all availability cores as relevant to the child block.
**/
@@ -282,6 +311,10 @@ declare module '@polkadot/api-base/types/calls' {
* Checks if the given validation outputs pass the acceptance criteria.
**/
checkValidationOutputs: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, outputs: CandidateCommitments | { upwardMessages?: any; horizontalMessages?: any; newValidationCode?: any; headData?: any; processedDownwardMessages?: any; hrmpWatermark?: any } | string | Uint8Array) => Observable<bool>>;
/**
* Returns a list of all disabled validators at the given block
**/
disabledValidators: AugmentedCall<ApiType, () => Observable<ValidatorIndex>>;
/**
* Returns all onchain disputes.
**/
@@ -298,10 +331,22 @@ declare module '@polkadot/api-base/types/calls' {
* Returns a merkle proof of a validator session key
**/
keyOwnershipProof: AugmentedCall<ApiType, (validatorId: ValidatorId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
/**
* Get the minimum number of backing votes for a parachain candidate. This is a staging method! Do not use on production runtimes!
**/
minimumBackingVotes: AugmentedCall<ApiType, () => Observable<u32>>;
/**
* Get node features. This is a staging method! Do not use on production runtimes!
**/
nodeFeatures: AugmentedCall<ApiType, () => Observable<NodeFeatures>>;
/**
* Scrape dispute relevant from on-chain, backing votes and resolved disputes.
**/
onChainVotes: AugmentedCall<ApiType, () => Observable<Option<ScrapedOnChainVotes>>>;
/**
* Returns the state of parachain backing for a given para
**/
paraBackingState: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Option<BackingState>>>;
/**
* Yields the persisted validation data for the given `ParaId` along with an assumption that should be used if the para currently occupies a core.
**/
@@ -337,7 +382,7 @@ declare module '@polkadot/api-base/types/calls' {
/**
* Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.
**/
validationCode: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<ValidationCode>>;
validationCode: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<ValidationCode>>>;
/**
* Get the validation code from its hash.
**/
+208 -60
View File
@@ -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 { EthereumAddress } from '@polkadot/types/interfaces/eth';
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV5ExecutorParams, PolkadotPrimitivesV5InherentData, PolkadotPrimitivesV5PvfCheckStatement, PolkadotPrimitivesV5SlashingDisputeProof, PolkadotPrimitivesV5ValidatorAppSignature, PolkadotPrimitivesVstagingAsyncBackingParams, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyEquivocationProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, PalletBalancesAdjustmentDirection, PalletBrokerCoretimeInterfaceCoreAssignment, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletVestingVestingInfo, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6AsyncBackingAsyncBackingParams, PolkadotPrimitivesV6ExecutorParams, PolkadotPrimitivesV6InherentData, PolkadotPrimitivesV6PvfCheckStatement, PolkadotPrimitivesV6SlashingDisputeProof, PolkadotPrimitivesV6ValidatorAppSignature, PolkadotPrimitivesVstagingApprovalVotingParams, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyEquivocationProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, StagingKusamaRuntimeOriginCaller, StagingKusamaRuntimeProxyType, StagingKusamaRuntimeSessionKeys, StagingXcmV4Location, XcmV3WeightLimit, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
@@ -19,6 +19,24 @@ export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = Submittab
declare module '@polkadot/api-base/types/submittable' {
interface AugmentedSubmittables<ApiType extends ApiTypes> {
assetRate: {
/**
* See [`Pallet::create`].
**/
create: AugmentedSubmittable<(assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset | { V3: any } | { V4: any } | string | Uint8Array, rate: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeCommonImplsVersionedLocatableAsset, u128]>;
/**
* See [`Pallet::remove`].
**/
remove: AugmentedSubmittable<(assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeCommonImplsVersionedLocatableAsset]>;
/**
* See [`Pallet::update`].
**/
update: AugmentedSubmittable<(assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset | { V3: any } | { V4: any } | string | Uint8Array, rate: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeCommonImplsVersionedLocatableAsset, u128]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
auctions: {
/**
* See [`Pallet::bid`].
@@ -56,6 +74,10 @@ declare module '@polkadot/api-base/types/submittable' {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
balances: {
/**
* See [`Pallet::force_adjust_total_issuance`].
**/
forceAdjustTotalIssuance: AugmentedSubmittable<(direction: PalletBalancesAdjustmentDirection | 'Increase' | 'Decrease' | number | Uint8Array, delta: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBalancesAdjustmentDirection, Compact<u128>]>;
/**
* See [`Pallet::force_set_balance`].
**/
@@ -68,14 +90,6 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::force_unreserve`].
**/
forceUnreserve: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
/**
* See [`Pallet::set_balance_deprecated`].
**/
setBalanceDeprecated: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, oldReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;
/**
* See [`Pallet::transfer`].
**/
transfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
/**
* See [`Pallet::transfer_all`].
**/
@@ -106,6 +120,10 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::report_equivocation_unsigned`].
**/
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyEquivocationProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyEquivocationProof, SpSessionMembershipProof]>;
/**
* See [`Pallet::set_new_genesis`].
**/
setNewGenesis: AugmentedSubmittable<(delayInBlocks: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* Generic tx
**/
@@ -214,10 +232,14 @@ declare module '@polkadot/api-base/types/submittable' {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
configuration: {
/**
* See [`Pallet::set_approval_voting_params`].
**/
setApprovalVotingParams: AugmentedSubmittable<(updated: PolkadotPrimitivesVstagingApprovalVotingParams | { maxApprovalCoalesceCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesVstagingApprovalVotingParams]>;
/**
* See [`Pallet::set_async_backing_params`].
**/
setAsyncBackingParams: AugmentedSubmittable<(updated: PolkadotPrimitivesVstagingAsyncBackingParams | { maxCandidateDepth?: any; allowedAncestryLen?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesVstagingAsyncBackingParams]>;
setAsyncBackingParams: AugmentedSubmittable<(updated: PolkadotPrimitivesV6AsyncBackingAsyncBackingParams | { maxCandidateDepth?: any; allowedAncestryLen?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV6AsyncBackingAsyncBackingParams]>;
/**
* See [`Pallet::set_bypass_consistency_check`].
**/
@@ -226,6 +248,10 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::set_code_retention_period`].
**/
setCodeRetentionPeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* See [`Pallet::set_coretime_cores`].
**/
setCoretimeCores: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* See [`Pallet::set_dispute_period`].
**/
@@ -237,7 +263,7 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::set_executor_params`].
**/
setExecutorParams: AugmentedSubmittable<(updated: PolkadotPrimitivesV5ExecutorParams) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV5ExecutorParams]>;
setExecutorParams: AugmentedSubmittable<(updated: PolkadotPrimitivesV6ExecutorParams) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV6ExecutorParams]>;
/**
* See [`Pallet::set_group_rotation_frequency`].
**/
@@ -318,6 +344,10 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::set_max_validators_per_core`].
**/
setMaxValidatorsPerCore: AugmentedSubmittable<(updated: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
/**
* See [`Pallet::set_minimum_backing_votes`].
**/
setMinimumBackingVotes: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* See [`Pallet::set_minimum_validation_upgrade_delay`].
**/
@@ -330,6 +360,10 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::set_needed_approvals`].
**/
setNeededApprovals: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* See [`Pallet::set_node_feature`].
**/
setNodeFeature: AugmentedSubmittable<(index: u8 | AnyNumber | Uint8Array, value: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u8, bool]>;
/**
* See [`Pallet::set_no_show_slots`].
**/
@@ -338,10 +372,6 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::set_on_demand_base_fee`].
**/
setOnDemandBaseFee: AugmentedSubmittable<(updated: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;
/**
* See [`Pallet::set_on_demand_cores`].
**/
setOnDemandCores: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* See [`Pallet::set_on_demand_fee_variability`].
**/
@@ -425,6 +455,20 @@ declare module '@polkadot/api-base/types/submittable' {
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
coretime: {
/**
* See [`Pallet::assign_core`].
**/
assignCore: AugmentedSubmittable<(core: u16 | AnyNumber | Uint8Array, begin: u32 | AnyNumber | Uint8Array, assignment: Vec<ITuple<[PalletBrokerCoretimeInterfaceCoreAssignment, u16]>> | ([PalletBrokerCoretimeInterfaceCoreAssignment | { Idle: any } | { Pool: any } | { Task: any } | string | Uint8Array, u16 | AnyNumber | Uint8Array])[], endHint: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [u16, u32, Vec<ITuple<[PalletBrokerCoretimeInterfaceCoreAssignment, u16]>>, Option<u32>]>;
/**
* See [`Pallet::request_core_count`].
**/
requestCoreCount: AugmentedSubmittable<(count: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
crowdloan: {
/**
* See [`Pallet::add_memo`].
@@ -524,6 +568,10 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::demote_member`].
**/
demoteMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
/**
* See [`Pallet::exchange_member`].
**/
exchangeMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newWho: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress]>;
/**
* See [`Pallet::promote_member`].
**/
@@ -577,7 +625,7 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::submit`].
**/
submit: AugmentedSubmittable<(proposalOrigin: KusamaRuntimeOriginCaller | { system: any } | { Void: any } | { Origins: any } | { ParachainsOrigin: any } | { XcmPallet: any } | string | Uint8Array, proposal: FrameSupportPreimagesBounded | { Legacy: any } | { Inline: any } | { Lookup: any } | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | { At: any } | { After: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KusamaRuntimeOriginCaller, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime]>;
submit: AugmentedSubmittable<(proposalOrigin: StagingKusamaRuntimeOriginCaller | { system: any } | { Void: any } | { Origins: any } | { ParachainsOrigin: any } | { XcmPallet: any } | string | Uint8Array, proposal: FrameSupportPreimagesBounded | { Legacy: any } | { Inline: any } | { Lookup: any } | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | { At: any } | { After: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [StagingKusamaRuntimeOriginCaller, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime]>;
/**
* Generic tx
**/
@@ -602,10 +650,14 @@ declare module '@polkadot/api-base/types/submittable' {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
hrmp: {
/**
* See [`Pallet::establish_system_channel`].
**/
establishSystemChannel: AugmentedSubmittable<(sender: u32 | AnyNumber | Uint8Array, recipient: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
/**
* See [`Pallet::force_clean_hrmp`].
**/
forceCleanHrmp: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array, inbound: u32 | AnyNumber | Uint8Array, outbound: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
forceCleanHrmp: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array, numInbound: u32 | AnyNumber | Uint8Array, numOutbound: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
/**
* See [`Pallet::force_open_hrmp_channel`].
**/
@@ -625,21 +677,29 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::hrmp_cancel_open_request`].
**/
hrmpCancelOpenRequest: AugmentedSubmittable<(channelId: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array, openRequests: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotParachainPrimitivesHrmpChannelId, u32]>;
hrmpCancelOpenRequest: AugmentedSubmittable<(channelId: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array, openRequests: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId, u32]>;
/**
* See [`Pallet::hrmp_close_channel`].
**/
hrmpCloseChannel: AugmentedSubmittable<(channelId: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotParachainPrimitivesHrmpChannelId]>;
hrmpCloseChannel: AugmentedSubmittable<(channelId: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]>;
/**
* See [`Pallet::hrmp_init_open_channel`].
**/
hrmpInitOpenChannel: AugmentedSubmittable<(recipient: u32 | AnyNumber | Uint8Array, proposedMaxCapacity: u32 | AnyNumber | Uint8Array, proposedMaxMessageSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
/**
* See [`Pallet::poke_channel_deposits`].
**/
pokeChannelDeposits: AugmentedSubmittable<(sender: u32 | AnyNumber | Uint8Array, recipient: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
identity: {
/**
* See [`Pallet::accept_username`].
**/
acceptUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
/**
* See [`Pallet::add_registrar`].
**/
@@ -648,6 +708,10 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::add_sub`].
**/
addSub: AugmentedSubmittable<(sub: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, data: Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Data]>;
/**
* See [`Pallet::add_username_authority`].
**/
addUsernameAuthority: AugmentedSubmittable<(authority: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, suffix: Bytes | string | Uint8Array, allocation: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Bytes, u32]>;
/**
* See [`Pallet::cancel_request`].
**/
@@ -668,10 +732,22 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::quit_sub`].
**/
quitSub: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
/**
* See [`Pallet::remove_dangling_username`].
**/
removeDanglingUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
/**
* See [`Pallet::remove_expired_approval`].
**/
removeExpiredApproval: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
/**
* See [`Pallet::remove_sub`].
**/
removeSub: AugmentedSubmittable<(sub: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
/**
* See [`Pallet::remove_username_authority`].
**/
removeUsernameAuthority: AugmentedSubmittable<(authority: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
/**
* See [`Pallet::rename_sub`].
**/
@@ -691,25 +767,23 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::set_fields`].
**/
setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: PalletIdentityBitFlags) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletIdentityBitFlags]>;
setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, u64]>;
/**
* See [`Pallet::set_identity`].
**/
setIdentity: AugmentedSubmittable<(info: PalletIdentityIdentityInfo | { additional?: any; display?: any; legal?: any; web?: any; riot?: any; email?: any; pgpFingerprint?: any; image?: any; twitter?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletIdentityIdentityInfo]>;
setIdentity: AugmentedSubmittable<(info: PalletIdentityLegacyIdentityInfo | { additional?: any; display?: any; legal?: any; web?: any; riot?: any; email?: any; pgpFingerprint?: any; image?: any; twitter?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletIdentityLegacyIdentityInfo]>;
/**
* See [`Pallet::set_primary_username`].
**/
setPrimaryUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
/**
* See [`Pallet::set_subs`].
**/
setSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, Data]>> | ([AccountId32 | string | Uint8Array, Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, Data]>>]>;
/**
* Generic tx
* See [`Pallet::set_username_for`].
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
imOnline: {
/**
* See [`Pallet::heartbeat`].
**/
heartbeat: AugmentedSubmittable<(heartbeat: PalletImOnlineHeartbeat | { blockNumber?: any; sessionIndex?: any; authorityIndex?: any; validatorsLen?: any } | string | Uint8Array, signature: PalletImOnlineSr25519AppSr25519Signature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature]>;
setUsernameFor: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, username: Bytes | string | Uint8Array, signature: Option<SpRuntimeMultiSignature> | null | Uint8Array | SpRuntimeMultiSignature | { Ed25519: any } | { Sr25519: any } | { Ecdsa: any } | string) => SubmittableExtrinsic<ApiType>, [MultiAddress, Bytes, Option<SpRuntimeMultiSignature>]>;
/**
* Generic tx
**/
@@ -822,6 +896,10 @@ declare module '@polkadot/api-base/types/submittable' {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
nisCounterpartBalances: {
/**
* See [`Pallet::force_adjust_total_issuance`].
**/
forceAdjustTotalIssuance: AugmentedSubmittable<(direction: PalletBalancesAdjustmentDirection | 'Increase' | 'Decrease' | number | Uint8Array, delta: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBalancesAdjustmentDirection, Compact<u128>]>;
/**
* See [`Pallet::force_set_balance`].
**/
@@ -834,14 +912,6 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::force_unreserve`].
**/
forceUnreserve: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
/**
* See [`Pallet::set_balance_deprecated`].
**/
setBalanceDeprecated: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, oldReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;
/**
* See [`Pallet::transfer`].
**/
transfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
/**
* See [`Pallet::transfer_all`].
**/
@@ -864,6 +934,10 @@ declare module '@polkadot/api-base/types/submittable' {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
nominationPools: {
/**
* See [`Pallet::adjust_pool_deposit`].
**/
adjustPoolDeposit: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* See [`Pallet::bond_extra`].
**/
@@ -920,6 +994,10 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::set_commission_change_rate`].
**/
setCommissionChangeRate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, changeRate: PalletNominationPoolsCommissionChangeRate | { maxIncrease?: any; minDelay?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsCommissionChangeRate]>;
/**
* See [`Pallet::set_commission_claim_permission`].
**/
setCommissionClaimPermission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, permission: Option<PalletNominationPoolsCommissionClaimPermission> | null | Uint8Array | PalletNominationPoolsCommissionClaimPermission | { Permissionless: any } | { Account: any } | string) => SubmittableExtrinsic<ApiType>, [u32, Option<PalletNominationPoolsCommissionClaimPermission>]>;
/**
* See [`Pallet::set_commission_max`].
**/
@@ -953,6 +1031,20 @@ declare module '@polkadot/api-base/types/submittable' {
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
onDemandAssignmentProvider: {
/**
* See [`Pallet::place_order_allow_death`].
**/
placeOrderAllowDeath: AugmentedSubmittable<(maxAmount: u128 | AnyNumber | Uint8Array, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, u32]>;
/**
* See [`Pallet::place_order_keep_alive`].
**/
placeOrderKeepAlive: AugmentedSubmittable<(maxAmount: u128 | AnyNumber | Uint8Array, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, u32]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
paraInclusion: {
/**
* Generic tx
@@ -963,7 +1055,7 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::enter`].
**/
enter: AugmentedSubmittable<(data: PolkadotPrimitivesV5InherentData | { bitfields?: any; backedCandidates?: any; disputes?: any; parentHeader?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV5InherentData]>;
enter: AugmentedSubmittable<(data: PolkadotPrimitivesV6InherentData | { bitfields?: any; backedCandidates?: any; disputes?: any; parentHeader?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV6InherentData]>;
/**
* Generic tx
**/
@@ -1001,7 +1093,7 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::include_pvf_check_statement`].
**/
includePvfCheckStatement: AugmentedSubmittable<(stmt: PolkadotPrimitivesV5PvfCheckStatement | { accept?: any; subject?: any; sessionIndex?: any; validatorIndex?: any } | string | Uint8Array, signature: PolkadotPrimitivesV5ValidatorAppSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV5PvfCheckStatement, PolkadotPrimitivesV5ValidatorAppSignature]>;
includePvfCheckStatement: AugmentedSubmittable<(stmt: PolkadotPrimitivesV6PvfCheckStatement | { accept?: any; subject?: any; sessionIndex?: any; validatorIndex?: any } | string | Uint8Array, signature: PolkadotPrimitivesV6ValidatorAppSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV6PvfCheckStatement, PolkadotPrimitivesV6ValidatorAppSignature]>;
/**
* See [`Pallet::poke_unused_validation_code`].
**/
@@ -1031,13 +1123,17 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::report_dispute_lost_unsigned`].
**/
reportDisputeLostUnsigned: AugmentedSubmittable<(disputeProof: PolkadotPrimitivesV5SlashingDisputeProof | { timeSlot?: any; kind?: any; validatorIndex?: any; validatorId?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV5SlashingDisputeProof, SpSessionMembershipProof]>;
reportDisputeLostUnsigned: AugmentedSubmittable<(disputeProof: PolkadotPrimitivesV6SlashingDisputeProof | { timeSlot?: any; kind?: any; validatorIndex?: any; validatorId?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV6SlashingDisputeProof, SpSessionMembershipProof]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
preimage: {
/**
* See [`Pallet::ensure_updated`].
**/
ensureUpdated: AugmentedSubmittable<(hashes: Vec<H256> | (H256 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<H256>]>;
/**
* See [`Pallet::note_preimage`].
**/
@@ -1063,7 +1159,7 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::add_proxy`].
**/
addProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, KusamaRuntimeProxyType, u32]>;
addProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, StagingKusamaRuntimeProxyType, u32]>;
/**
* See [`Pallet::announce`].
**/
@@ -1071,19 +1167,19 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::create_pure`].
**/
createPure: AugmentedSubmittable<(proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [KusamaRuntimeProxyType, u32, u16]>;
createPure: AugmentedSubmittable<(proxyType: StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StagingKusamaRuntimeProxyType, u32, u16]>;
/**
* See [`Pallet::kill_pure`].
**/
killPure: AugmentedSubmittable<(spawner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, KusamaRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
killPure: AugmentedSubmittable<(spawner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, StagingKusamaRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
/**
* See [`Pallet::proxy`].
**/
proxy: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<KusamaRuntimeProxyType> | null | Uint8Array | KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<KusamaRuntimeProxyType>, Call]>;
proxy: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<StagingKusamaRuntimeProxyType> | null | Uint8Array | StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<StagingKusamaRuntimeProxyType>, Call]>;
/**
* See [`Pallet::proxy_announced`].
**/
proxyAnnounced: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<KusamaRuntimeProxyType> | null | Uint8Array | KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Option<KusamaRuntimeProxyType>, Call]>;
proxyAnnounced: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<StagingKusamaRuntimeProxyType> | null | Uint8Array | StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Option<StagingKusamaRuntimeProxyType>, Call]>;
/**
* See [`Pallet::reject_announcement`].
**/
@@ -1099,7 +1195,7 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::remove_proxy`].
**/
removeProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, KusamaRuntimeProxyType, u32]>;
removeProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, StagingKusamaRuntimeProxyType, u32]>;
/**
* Generic tx
**/
@@ -1183,7 +1279,7 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::submit`].
**/
submit: AugmentedSubmittable<(proposalOrigin: KusamaRuntimeOriginCaller | { system: any } | { Void: any } | { Origins: any } | { ParachainsOrigin: any } | { XcmPallet: any } | string | Uint8Array, proposal: FrameSupportPreimagesBounded | { Legacy: any } | { Inline: any } | { Lookup: any } | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | { At: any } | { After: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KusamaRuntimeOriginCaller, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime]>;
submit: AugmentedSubmittable<(proposalOrigin: StagingKusamaRuntimeOriginCaller | { system: any } | { Void: any } | { Origins: any } | { ParachainsOrigin: any } | { XcmPallet: any } | string | Uint8Array, proposal: FrameSupportPreimagesBounded | { Legacy: any } | { Inline: any } | { Lookup: any } | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | { At: any } | { After: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [StagingKusamaRuntimeOriginCaller, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime]>;
/**
* Generic tx
**/
@@ -1269,7 +1365,7 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::set_keys`].
**/
setKeys: AugmentedSubmittable<(keys: KusamaRuntimeSessionKeys | { grandpa?: any; babe?: any; imOnline?: any; paraValidator?: any; paraAssignment?: any; authorityDiscovery?: any; beefy?: any } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KusamaRuntimeSessionKeys, Bytes]>;
setKeys: AugmentedSubmittable<(keys: StagingKusamaRuntimeSessionKeys | { grandpa?: any; babe?: any; paraValidator?: any; paraAssignment?: any; authorityDiscovery?: any; beefy?: any } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [StagingKusamaRuntimeSessionKeys, Bytes]>;
/**
* Generic tx
**/
@@ -1399,7 +1495,11 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::chill_other`].
**/
chillOther: AugmentedSubmittable<(controller: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
chillOther: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
/**
* See [`Pallet::deprecate_controller_batch`].
**/
deprecateControllerBatch: AugmentedSubmittable<(controllers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
/**
* See [`Pallet::force_apply_min_commission`].
**/
@@ -1436,6 +1536,10 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::payout_stakers`].
**/
payoutStakers: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
/**
* See [`Pallet::payout_stakers_by_page`].
**/
payoutStakersByPage: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array, page: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32, u32]>;
/**
* See [`Pallet::reap_stash`].
**/
@@ -1476,6 +1580,10 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::unbond`].
**/
unbond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
/**
* See [`Pallet::update_payee`].
**/
updatePayee: AugmentedSubmittable<(controller: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
/**
* See [`Pallet::validate`].
**/
@@ -1520,6 +1628,18 @@ declare module '@polkadot/api-base/types/submittable' {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
system: {
/**
* See [`Pallet::apply_authorized_upgrade`].
**/
applyAuthorizedUpgrade: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
/**
* See [`Pallet::authorize_upgrade`].
**/
authorizeUpgrade: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
/**
* See [`Pallet::authorize_upgrade_without_checks`].
**/
authorizeUpgradeWithoutChecks: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
/**
* See [`Pallet::kill_prefix`].
**/
@@ -1572,6 +1692,14 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::approve_proposal`].
**/
approveProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
/**
* See [`Pallet::check_status`].
**/
checkStatus: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* See [`Pallet::payout`].
**/
payout: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* See [`Pallet::propose_spend`].
**/
@@ -1587,7 +1715,15 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::spend`].
**/
spend: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress]>;
spend: AugmentedSubmittable<(assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset | { V3: any } | { V4: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, validFrom: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeCommonImplsVersionedLocatableAsset, Compact<u128>, XcmVersionedLocation, Option<u32>]>;
/**
* See [`Pallet::spend_local`].
**/
spendLocal: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress]>;
/**
* See [`Pallet::void_spend`].
**/
voidSpend: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* Generic tx
**/
@@ -1609,7 +1745,7 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::dispatch_as`].
**/
dispatchAs: AugmentedSubmittable<(asOrigin: KusamaRuntimeOriginCaller | { system: any } | { Void: any } | { Origins: any } | { ParachainsOrigin: any } | { XcmPallet: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KusamaRuntimeOriginCaller, Call]>;
dispatchAs: AugmentedSubmittable<(asOrigin: StagingKusamaRuntimeOriginCaller | { system: any } | { Void: any } | { Origins: any } | { ParachainsOrigin: any } | { XcmPallet: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [StagingKusamaRuntimeOriginCaller, Call]>;
/**
* See [`Pallet::force_batch`].
**/
@@ -1624,6 +1760,10 @@ declare module '@polkadot/api-base/types/submittable' {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
vesting: {
/**
* See [`Pallet::force_remove_vesting_schedule`].
**/
forceRemoveVestingSchedule: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, scheduleIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32]>;
/**
* See [`Pallet::force_vested_transfer`].
**/
@@ -1690,10 +1830,14 @@ declare module '@polkadot/api-base/types/submittable' {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
xcmPallet: {
/**
* See [`Pallet::claim_assets`].
**/
claimAssets: AugmentedSubmittable<(assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedAssets, XcmVersionedLocation]>;
/**
* See [`Pallet::execute`].
**/
execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V2: any } | { V3: any } | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, SpWeightsWeightV2Weight]>;
execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, SpWeightsWeightV2Weight]>;
/**
* See [`Pallet::force_default_xcm_version`].
**/
@@ -1701,7 +1845,7 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::force_subscribe_version_notify`].
**/
forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation]>;
/**
* See [`Pallet::force_suspension`].
**/
@@ -1709,31 +1853,35 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::force_unsubscribe_version_notify`].
**/
forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation]>;
/**
* See [`Pallet::force_xcm_version`].
**/
forceXcmVersion: AugmentedSubmittable<(location: XcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, version: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmV3MultiLocation, u32]>;
forceXcmVersion: AugmentedSubmittable<(location: StagingXcmV4Location | { parents?: any; interior?: any } | string | Uint8Array, version: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StagingXcmV4Location, u32]>;
/**
* See [`Pallet::limited_reserve_transfer_assets`].
**/
limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV3WeightLimit]>;
limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
/**
* See [`Pallet::limited_teleport_assets`].
**/
limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV3WeightLimit]>;
limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
/**
* See [`Pallet::reserve_transfer_assets`].
**/
reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;
reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32]>;
/**
* See [`Pallet::send`].
**/
send: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, message: XcmVersionedXcm | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedXcm]>;
send: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedXcm]>;
/**
* See [`Pallet::teleport_assets`].
**/
teleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;
teleportAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32]>;
/**
* See [`Pallet::transfer_assets`].
**/
transferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
/**
* Generic tx
**/
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '10.12.1' };
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '10.13.1' };
+68 -47
View File
@@ -77,10 +77,6 @@ declare module '@polkadot/api-base/types/consts' {
* The maximum number of individual freeze locks that can exist on an account at any time.
**/
maxFreezes: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of holds that can exist on an account at any time.
**/
maxHolds: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of locks that should exist on an account.
* Not strictly enforced, but used for weight estimation.
@@ -95,6 +91,29 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
beefy: {
/**
* The maximum number of authorities that can be added.
**/
maxAuthorities: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of nominators for each validator.
**/
maxNominators: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of entries to keep in the set id to session index mapping.
*
* Since the `SetIdSession` map is only used for validating equivocations this
* value should relate to the bonding duration of whatever staking system is
* being used (if any). If equivocation handling is not enabled then this value
* can be zero.
**/
maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
bounties: {
/**
* The amount held on deposit for placing a bounty proposal.
@@ -209,11 +228,6 @@ declare module '@polkadot/api-base/types/consts' {
* "better" in the Signed phase.
**/
betterSignedThreshold: Perbill & AugmentedConst<ApiType>;
/**
* The minimum amount of improvement to the solution score that defines a solution as
* "better" in the Unsigned phase.
**/
betterUnsignedThreshold: Perbill & AugmentedConst<ApiType>;
/**
* The maximum number of winners that can be elected by this `ElectionProvider`
* implementation.
@@ -236,10 +250,6 @@ declare module '@polkadot/api-base/types/consts' {
* to submit the worker's solution.
**/
offchainRepeat: u32 & AugmentedConst<ApiType>;
/**
* Base deposit for a signed solution.
**/
signedDepositBase: u128 & AugmentedConst<ApiType>;
/**
* Per-byte deposit for a signed solution.
**/
@@ -323,18 +333,13 @@ declare module '@polkadot/api-base/types/consts' {
};
identity: {
/**
* The amount held on deposit for a registered identity
* The amount held on deposit for a registered identity.
**/
basicDeposit: u128 & AugmentedConst<ApiType>;
/**
* The amount held on deposit per additional field for a registered identity.
* The amount held on deposit per encoded byte for a registered identity.
**/
fieldDeposit: u128 & AugmentedConst<ApiType>;
/**
* Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O
* required to access an identity, but can be pretty high.
**/
maxAdditionalFields: u32 & AugmentedConst<ApiType>;
byteDeposit: u128 & AugmentedConst<ApiType>;
/**
* Maxmimum number of registrars allowed in the system. Needed to bound the complexity
* of, e.g., updating judgements.
@@ -344,6 +349,18 @@ declare module '@polkadot/api-base/types/consts' {
* The maximum number of sub-accounts allowed per identified account.
**/
maxSubAccounts: u32 & AugmentedConst<ApiType>;
/**
* The maximum length of a suffix.
**/
maxSuffixLength: u32 & AugmentedConst<ApiType>;
/**
* The maximum length of a username, including its suffix and any system-added delimiters.
**/
maxUsernameLength: u32 & AugmentedConst<ApiType>;
/**
* The number of blocks within which a username grant must be accepted.
**/
pendingUsernameExpiration: u32 & AugmentedConst<ApiType>;
/**
* The amount held on deposit for a registered subaccount. This should account for the fact
* that one storage item's value will increase by the size of an account ID, and there will
@@ -355,19 +372,6 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
imOnline: {
/**
* A configuration for base priority of unsigned transactions.
*
* This is exposed so that it can be tuned for particular runtime, when
* multiple pallets send unsigned transactions.
**/
unsignedPriority: u64 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
indices: {
/**
* The deposit needed for reserving an index.
@@ -447,6 +451,10 @@ declare module '@polkadot/api-base/types/consts' {
* Such a scenario would also be the equivalent of the pool being 90% slashed.
**/
maxPointsToBalance: u8 & AugmentedConst<ApiType>;
/**
* The maximum number of simultaneous unbonding chunks that can exist per member.
**/
maxUnbonding: u32 & AugmentedConst<ApiType>;
/**
* The nomination pool's pallet id.
**/
@@ -593,8 +601,8 @@ declare module '@polkadot/api-base/types/consts' {
* Following information is kept for eras in `[current_era -
* HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,
* `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,
* `ErasTotalStake`, `ErasStartSessionIndex`,
* `StakingLedger.claimed_rewards`.
* `ErasTotalStake`, `ErasStartSessionIndex`, `ClaimedRewards`, `ErasStakersPaged`,
* `ErasStakersOverview`.
*
* Must be more than the number of eras delayed by session.
* I.e. active era must always be in history. I.e. `active_era >
@@ -604,19 +612,26 @@ declare module '@polkadot/api-base/types/consts' {
* this should be set to same value or greater as in storage.
*
* Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
* item `StakingLedger.claimed_rewards`. Setting this value lower than
* item `StakingLedger.legacy_claimed_rewards`. Setting this value lower than
* the existing value can lead to inconsistencies in the
* `StakingLedger` and will need to be handled properly in a migration.
* The test `reducing_history_depth_abrupt` shows this effect.
**/
historyDepth: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of nominators rewarded for each validator.
* The maximum size of each `T::ExposurePage`.
*
* For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can
* claim their reward. This used to limit the i/o cost for the nominator payout.
* An `ExposurePage` is weakly bounded to a maximum of `MaxExposurePageSize`
* nominators.
*
* For older non-paged exposure, a reward payout was restricted to the top
* `MaxExposurePageSize` nominators. This is to limit the i/o cost for the
* nominator payout.
*
* Note: `MaxExposurePageSize` is used to bound `ClaimedRewards` and is unsafe to reduce
* without handling it in a migration.
**/
maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>;
maxExposurePageSize: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of `unlocking` chunks a [`StakingLedger`] can
* have. Effectively determines how many unique eras a staker may be
@@ -682,10 +697,12 @@ declare module '@polkadot/api-base/types/consts' {
};
timestamp: {
/**
* The minimum period between blocks. Beware that this is different to the *expected*
* period that the block production apparatus provides. Your chosen consensus system will
* generally work with this to determine a sensible block time. e.g. For Aura, it will be
* double this period on default settings.
* The minimum period between blocks.
*
* Be aware that this is different to the *expected* period that the block production
* apparatus provides. Your chosen consensus system will generally work with this to
* determine a sensible block time. For example, in the Aura pallet it will be double this
* period on default settings.
**/
minimumPeriod: u64 & AugmentedConst<ApiType>;
/**
@@ -695,10 +712,10 @@ declare module '@polkadot/api-base/types/consts' {
};
transactionPayment: {
/**
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
* A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
* `priority`
*
* This value is multipled by the `final_fee` to obtain a "virtual tip" that is later
* This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
* added to a tip component in regular `priority` calculations.
* It means that a `Normal` transaction can front-run a similarly-sized `Operational`
* extrinsic (with no tip), by including a tip value greater than the virtual tip.
@@ -738,6 +755,10 @@ declare module '@polkadot/api-base/types/consts' {
* The treasury's pallet id, used for deriving its sovereign account ID.
**/
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
/**
* The period during which an approved treasury spend has to be claimed.
**/
payoutPeriod: u32 & AugmentedConst<ApiType>;
/**
* Fraction of a proposal's value that should be bonded in order to place the proposal.
* An accepted proposal gets these back. A rejected proposal does not.
+186 -24
View File
@@ -11,6 +11,20 @@ export type __AugmentedError<ApiType extends ApiTypes> = AugmentedError<ApiType>
declare module '@polkadot/api-base/types/errors' {
interface AugmentedErrors<ApiType extends ApiTypes> {
assetRate: {
/**
* The given asset ID already has an assigned conversion rate and cannot be re-created.
**/
AlreadyExists: AugmentedError<ApiType>;
/**
* The given asset ID is unknown.
**/
UnknownAssetKind: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
auctions: {
/**
* The para is already leased out for part of this range.
@@ -72,6 +86,10 @@ declare module '@polkadot/api-base/types/errors' {
* Beneficiary account must pre-exist.
**/
DeadAccount: AugmentedError<ApiType>;
/**
* The delta cannot be zero.
**/
DeltaZero: AugmentedError<ApiType>;
/**
* Value too low to create account due to existential deposit.
**/
@@ -88,6 +106,10 @@ declare module '@polkadot/api-base/types/errors' {
* Balance too low to send value.
**/
InsufficientBalance: AugmentedError<ApiType>;
/**
* The issuance cannot be modified since it is already deactivated.
**/
IssuanceDeactivated: AugmentedError<ApiType>;
/**
* Account liquidity restrictions prevent withdrawal.
**/
@@ -97,7 +119,7 @@ declare module '@polkadot/api-base/types/errors' {
**/
TooManyFreezes: AugmentedError<ApiType>;
/**
* Number of holds exceed `MaxHolds`.
* Number of holds exceed `VariantCountOf<T::RuntimeHoldReason>`.
**/
TooManyHolds: AugmentedError<ApiType>;
/**
@@ -113,6 +135,28 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError<ApiType>;
};
beefy: {
/**
* A given equivocation report is valid but already previously reported.
**/
DuplicateOffenceReport: AugmentedError<ApiType>;
/**
* Submitted configuration is invalid.
**/
InvalidConfiguration: AugmentedError<ApiType>;
/**
* An equivocation proof provided as part of an equivocation report is invalid.
**/
InvalidEquivocationProof: AugmentedError<ApiType>;
/**
* A key ownership proof provided as part of an equivocation report is invalid.
**/
InvalidKeyOwnershipProof: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
bounties: {
/**
* The bounty cannot be closed because it has active child bounties.
@@ -402,6 +446,10 @@ declare module '@polkadot/api-base/types/errors' {
* OCW submitted solution for wrong round
**/
OcwCallWrongEra: AugmentedError<ApiType>;
/**
* Sumission was prepared for a different round.
**/
PreDispatchDifferentRound: AugmentedError<ApiType>;
/**
* Submission was too early.
**/
@@ -524,6 +572,10 @@ declare module '@polkadot/api-base/types/errors' {
* Canceling is requested by neither the sender nor recipient of the open channel request.
**/
CancelHrmpOpenChannelUnauthorized: AugmentedError<ApiType>;
/**
* The channel between these two chains cannot be authorized.
**/
ChannelCreationNotAuthorized: AugmentedError<ApiType>;
/**
* The channel close request is already requested.
**/
@@ -610,10 +662,22 @@ declare module '@polkadot/api-base/types/errors' {
* Invalid judgement.
**/
InvalidJudgement: AugmentedError<ApiType>;
/**
* The signature on a username was not valid.
**/
InvalidSignature: AugmentedError<ApiType>;
/**
* The provided suffix is too long.
**/
InvalidSuffix: AugmentedError<ApiType>;
/**
* The target is invalid.
**/
InvalidTarget: AugmentedError<ApiType>;
/**
* The username does not meet the requirements.
**/
InvalidUsername: AugmentedError<ApiType>;
/**
* The provided judgement was for a different identity.
**/
@@ -626,10 +690,18 @@ declare module '@polkadot/api-base/types/errors' {
* Error that occurs when there is an issue paying for judgement.
**/
JudgementPaymentFailed: AugmentedError<ApiType>;
/**
* The authority cannot allocate any more usernames.
**/
NoAllocation: AugmentedError<ApiType>;
/**
* No identity found.
**/
NoIdentity: AugmentedError<ApiType>;
/**
* The username cannot be forcefully removed because it can still be accepted.
**/
NotExpired: AugmentedError<ApiType>;
/**
* Account isn't found.
**/
@@ -646,14 +718,22 @@ declare module '@polkadot/api-base/types/errors' {
* Sender is not a sub-account.
**/
NotSub: AugmentedError<ApiType>;
/**
* The sender does not have permission to issue a username.
**/
NotUsernameAuthority: AugmentedError<ApiType>;
/**
* The requested username does not exist.
**/
NoUsername: AugmentedError<ApiType>;
/**
* Setting this username requires a signature, but none was provided.
**/
RequiresSignature: AugmentedError<ApiType>;
/**
* Sticky judgement.
**/
StickyJudgement: AugmentedError<ApiType>;
/**
* Too many additional fields.
**/
TooManyFields: AugmentedError<ApiType>;
/**
* Maximum amount of registrars reached. Cannot add any more.
**/
@@ -663,19 +743,9 @@ declare module '@polkadot/api-base/types/errors' {
**/
TooManySubAccounts: AugmentedError<ApiType>;
/**
* Generic error
* The username is already taken.
**/
[key: string]: AugmentedError<ApiType>;
};
imOnline: {
/**
* Duplicated heartbeat.
**/
DuplicatedHeartbeat: AugmentedError<ApiType>;
/**
* Non existent public key.
**/
InvalidKey: AugmentedError<ApiType>;
UsernameTaken: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -739,6 +809,10 @@ declare module '@polkadot/api-base/types/errors' {
* This can change at any time and may resolve in the future by re-trying.
**/
QueuePaused: AugmentedError<ApiType>;
/**
* Another call is in progress and needs to finish before this call can happen.
**/
RecursiveDisallowed: AugmentedError<ApiType>;
/**
* This message is temporarily unprocessable.
*
@@ -888,9 +962,9 @@ declare module '@polkadot/api-base/types/errors' {
/**
* The amount does not meet the minimum bond to either join or create a pool.
*
* The depositor can never unbond to a value less than
* `Pallet::depositor_min_bond`. The caller does not have nominating
* permissions for the pool. Members can never unbond to a value below `MinJoinBond`.
* The depositor can never unbond to a value less than `Pallet::depositor_min_bond`. The
* caller does not have nominating permissions for the pool. Members can never unbond to a
* value below `MinJoinBond`.
**/
MinimumBondNotMet: AugmentedError<ApiType>;
/**
@@ -906,6 +980,10 @@ declare module '@polkadot/api-base/types/errors' {
* other members to be permissionlessly unbonded.
**/
NotDestroying: AugmentedError<ApiType>;
/**
* No imbalance in the ED deposit for the pool.
**/
NothingToAdjust: AugmentedError<ApiType>;
/**
* Either a) the caller cannot make a valid kick or b) the pool is not destroying.
**/
@@ -1079,6 +1157,14 @@ declare module '@polkadot/api-base/types/errors' {
[key: string]: AugmentedError<ApiType>;
};
paraInherent: {
/**
* A candidate was backed by a disabled validator
**/
BackedByDisabled: AugmentedError<ApiType>;
/**
* A candidate was backed even though the paraid was not scheduled.
**/
BackedOnUnscheduledCore: AugmentedError<ApiType>;
/**
* Disputed candidate that was concluded invalid.
**/
@@ -1104,6 +1190,10 @@ declare module '@polkadot/api-base/types/errors' {
* Inclusion inherent called more than once per block.
**/
TooManyInclusionInherents: AugmentedError<ApiType>;
/**
* Too many candidates supplied.
**/
UnscheduledCandidate: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -1261,6 +1351,14 @@ declare module '@polkadot/api-base/types/errors' {
* Preimage is too large to store on-chain.
**/
TooBig: AugmentedError<ApiType>;
/**
* Too few hashes were requested to be upgraded (i.e. zero).
**/
TooFew: AugmentedError<ApiType>;
/**
* More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once.
**/
TooMany: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -1525,6 +1623,10 @@ declare module '@polkadot/api-base/types/errors' {
* Commission is too low. Must be at least `MinCommission`.
**/
CommissionTooLow: AugmentedError<ApiType>;
/**
* Used when attempting to use deprecated controller account logic.
**/
ControllerDeprecated: AugmentedError<ApiType>;
/**
* Duplicate index.
**/
@@ -1559,6 +1661,10 @@ declare module '@polkadot/api-base/types/errors' {
* Invalid number of nominations.
**/
InvalidNumberOfNominations: AugmentedError<ApiType>;
/**
* No nominators exist on this page.
**/
InvalidPage: AugmentedError<ApiType>;
/**
* Slash record index out of bounds.
**/
@@ -1626,17 +1732,41 @@ declare module '@polkadot/api-base/types/errors' {
* There is a non-zero reference count preventing the account from being purged.
**/
NonZeroRefCount: AugmentedError<ApiType>;
/**
* No upgrade authorized.
**/
NothingAuthorized: AugmentedError<ApiType>;
/**
* The specification version is not allowed to decrease between the current runtime
* and the new runtime.
**/
SpecVersionNeedsToIncrease: AugmentedError<ApiType>;
/**
* The submitted code is not authorized.
**/
Unauthorized: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
treasury: {
/**
* The payment has already been attempted.
**/
AlreadyAttempted: AugmentedError<ApiType>;
/**
* The spend is not yet eligible for payout.
**/
EarlyPayout: AugmentedError<ApiType>;
/**
* The balance of the asset kind is not convertible to the balance of the native asset.
**/
FailedToConvertBalance: AugmentedError<ApiType>;
/**
* The payment has neither failed nor succeeded yet.
**/
Inconclusive: AugmentedError<ApiType>;
/**
* The spend origin is valid but the amount it is allowed to spend is lower than the
* amount to be spent.
@@ -1647,13 +1777,25 @@ declare module '@polkadot/api-base/types/errors' {
**/
InsufficientProposersBalance: AugmentedError<ApiType>;
/**
* No proposal or bounty at that index.
* No proposal, bounty or spend at that index.
**/
InvalidIndex: AugmentedError<ApiType>;
/**
* The payout was not yet attempted/claimed.
**/
NotAttempted: AugmentedError<ApiType>;
/**
* There was some issue with the mechanism of payment.
**/
PayoutError: AugmentedError<ApiType>;
/**
* Proposal has not been approved.
**/
ProposalNotApproved: AugmentedError<ApiType>;
/**
* The spend has expired and cannot be claimed.
**/
SpendExpired: AugmentedError<ApiType>;
/**
* Too many approvals in the queue.
**/
@@ -1754,12 +1896,16 @@ declare module '@polkadot/api-base/types/errors' {
* The version of the `Versioned` value used is not able to be interpreted.
**/
BadVersion: AugmentedError<ApiType>;
/**
* Could not check-out the assets for teleportation to the destination chain.
**/
CannotCheckOutTeleport: AugmentedError<ApiType>;
/**
* Could not re-anchor the assets to declare the fees for the destination chain.
**/
CannotReanchor: AugmentedError<ApiType>;
/**
* The destination `MultiLocation` provided cannot be inverted.
* The destination `Location` provided cannot be inverted.
**/
DestinationNotInvertible: AugmentedError<ApiType>;
/**
@@ -1779,13 +1925,25 @@ declare module '@polkadot/api-base/types/errors' {
**/
InUse: AugmentedError<ApiType>;
/**
* Invalid asset for the operation.
* Invalid non-concrete asset.
**/
InvalidAsset: AugmentedError<ApiType>;
InvalidAssetNotConcrete: AugmentedError<ApiType>;
/**
* Invalid asset, reserve chain could not be determined for it.
**/
InvalidAssetUnknownReserve: AugmentedError<ApiType>;
/**
* Invalid asset, do not support remote asset reserves with different fees reserves.
**/
InvalidAssetUnsupportedReserve: AugmentedError<ApiType>;
/**
* Origin is invalid for sending.
**/
InvalidOrigin: AugmentedError<ApiType>;
/**
* Local XCM execution incomplete.
**/
LocalExecutionIncomplete: AugmentedError<ApiType>;
/**
* A remote lock with the corresponding data could not be found.
**/
@@ -1811,6 +1969,10 @@ declare module '@polkadot/api-base/types/errors' {
* The asset owner has too many locks on the asset.
**/
TooManyLocks: AugmentedError<ApiType>;
/**
* Too many assets with different reserve locations have been attempted for transfer.
**/
TooManyReserves: AugmentedError<ApiType>;
/**
* The desired destination was unreachable, generally because there is a no way of routing
* to it.
+137 -51
View File
@@ -10,12 +10,21 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
import type { ITuple } from '@polkadot/types-codec/types';
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
import type { AccountId32, H256, Perbill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV5CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeProxyType, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6CandidateReceipt, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeProxyType, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, StagingXcmV4AssetAssets, StagingXcmV4Location, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmV3TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
declare module '@polkadot/api-base/types/events' {
interface AugmentedEvents<ApiType extends ApiTypes> {
assetRate: {
AssetRateCreated: AugmentedEvent<ApiType, [assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset, rate: u128], { assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset, rate: u128 }>;
AssetRateRemoved: AugmentedEvent<ApiType, [assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset], { assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset }>;
AssetRateUpdated: AugmentedEvent<ApiType, [assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset, old: u128, new_: u128], { assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset, old: u128, new_: u128 }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
auctions: {
/**
* An auction ended. All funds become unreserved.
@@ -121,6 +130,10 @@ declare module '@polkadot/api-base/types/events' {
* Some balance was thawed.
**/
Thawed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
/**
* The `TotalIssuance` was forcefully changed.
**/
TotalIssuanceForced: AugmentedEvent<ApiType, [old: u128, new_: u128], { old: u128, new_: u128 }>;
/**
* Transfer succeeded.
**/
@@ -147,6 +160,10 @@ declare module '@polkadot/api-base/types/events' {
[key: string]: AugmentedEvent<ApiType>;
};
bounties: {
/**
* A bounty is approved.
**/
BountyApproved: AugmentedEvent<ApiType, [index: u32], { index: u32 }>;
/**
* A bounty is awarded to a beneficiary.
**/
@@ -175,6 +192,18 @@ declare module '@polkadot/api-base/types/events' {
* A bounty proposal was rejected; funds were slashed.
**/
BountyRejected: AugmentedEvent<ApiType, [index: u32, bond: u128], { index: u32, bond: u128 }>;
/**
* A bounty curator is accepted.
**/
CuratorAccepted: AugmentedEvent<ApiType, [bountyId: u32, curator: AccountId32], { bountyId: u32, curator: AccountId32 }>;
/**
* A bounty curator is proposed.
**/
CuratorProposed: AugmentedEvent<ApiType, [bountyId: u32, curator: AccountId32], { bountyId: u32, curator: AccountId32 }>;
/**
* A bounty curator is unassigned.
**/
CuratorUnassigned: AugmentedEvent<ApiType, [bountyId: u32], { bountyId: u32 }>;
/**
* Generic event
**/
@@ -360,34 +389,52 @@ declare module '@polkadot/api-base/types/events' {
};
hrmp: {
/**
* HRMP channel closed. `[by_parachain, channel_id]`
* HRMP channel closed.
**/
ChannelClosed: AugmentedEvent<ApiType, [u32, PolkadotParachainPrimitivesHrmpChannelId]>;
ChannelClosed: AugmentedEvent<ApiType, [byParachain: u32, channelId: PolkadotParachainPrimitivesPrimitivesHrmpChannelId], { byParachain: u32, channelId: PolkadotParachainPrimitivesPrimitivesHrmpChannelId }>;
/**
* An HRMP channel was opened via Root origin.
* `[sender, recipient, proposed_max_capacity, proposed_max_message_size]`
**/
HrmpChannelForceOpened: AugmentedEvent<ApiType, [u32, u32, u32, u32]>;
HrmpChannelForceOpened: AugmentedEvent<ApiType, [sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32], { sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32 }>;
/**
* Open HRMP channel accepted. `[sender, recipient]`
* An HRMP channel was opened between two system chains.
**/
OpenChannelAccepted: AugmentedEvent<ApiType, [u32, u32]>;
HrmpSystemChannelOpened: AugmentedEvent<ApiType, [sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32], { sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32 }>;
/**
* Open HRMP channel accepted.
**/
OpenChannelAccepted: AugmentedEvent<ApiType, [sender: u32, recipient: u32], { sender: u32, recipient: u32 }>;
/**
* An HRMP channel request sent by the receiver was canceled by either party.
* `[by_parachain, channel_id]`
**/
OpenChannelCanceled: AugmentedEvent<ApiType, [u32, PolkadotParachainPrimitivesHrmpChannelId]>;
OpenChannelCanceled: AugmentedEvent<ApiType, [byParachain: u32, channelId: PolkadotParachainPrimitivesPrimitivesHrmpChannelId], { byParachain: u32, channelId: PolkadotParachainPrimitivesPrimitivesHrmpChannelId }>;
/**
* An HRMP channel's deposits were updated.
**/
OpenChannelDepositsUpdated: AugmentedEvent<ApiType, [sender: u32, recipient: u32], { sender: u32, recipient: u32 }>;
/**
* Open HRMP channel requested.
* `[sender, recipient, proposed_max_capacity, proposed_max_message_size]`
**/
OpenChannelRequested: AugmentedEvent<ApiType, [u32, u32, u32, u32]>;
OpenChannelRequested: AugmentedEvent<ApiType, [sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32], { sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32 }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
identity: {
/**
* A username authority was added.
**/
AuthorityAdded: AugmentedEvent<ApiType, [authority: AccountId32], { authority: AccountId32 }>;
/**
* A username authority was removed.
**/
AuthorityRemoved: AugmentedEvent<ApiType, [authority: AccountId32], { authority: AccountId32 }>;
/**
* A dangling username (as in, a username corresponding to an account that has removed its
* identity) has been removed.
**/
DanglingUsernameRemoved: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], { who: AccountId32, username: Bytes }>;
/**
* A name was cleared, and the given balance returned.
**/
@@ -412,6 +459,14 @@ declare module '@polkadot/api-base/types/events' {
* A judgement request was retracted.
**/
JudgementUnrequested: AugmentedEvent<ApiType, [who: AccountId32, registrarIndex: u32], { who: AccountId32, registrarIndex: u32 }>;
/**
* A queued username passed its expiration without being claimed and was removed.
**/
PreapprovalExpired: AugmentedEvent<ApiType, [whose: AccountId32], { whose: AccountId32 }>;
/**
* A username was set as a primary and can be looked up from `who`.
**/
PrimaryUsernameSet: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], { who: AccountId32, username: Bytes }>;
/**
* A registrar was added.
**/
@@ -430,23 +485,13 @@ declare module '@polkadot/api-base/types/events' {
**/
SubIdentityRevoked: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], { sub: AccountId32, main: AccountId32, deposit: u128 }>;
/**
* Generic event
* A username was queued, but `who` must accept it prior to `expiration`.
**/
[key: string]: AugmentedEvent<ApiType>;
};
imOnline: {
UsernameQueued: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes, expiration: u32], { who: AccountId32, username: Bytes, expiration: u32 }>;
/**
* At the end of the session, no offence was committed.
* A username was set for `who`.
**/
AllGood: AugmentedEvent<ApiType, []>;
/**
* A new heartbeat was received from `AuthorityId`.
**/
HeartbeatReceived: AugmentedEvent<ApiType, [authorityId: PalletImOnlineSr25519AppSr25519Public], { authorityId: PalletImOnlineSr25519AppSr25519Public }>;
/**
* At the end of the session, at least one validator was found to be offline.
**/
SomeOffline: AugmentedEvent<ApiType, [offline: Vec<ITuple<[AccountId32, PalletStakingExposure]>>], { offline: Vec<ITuple<[AccountId32, PalletStakingExposure]>> }>;
UsernameSet: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], { who: AccountId32, username: Bytes }>;
/**
* Generic event
**/
@@ -482,11 +527,11 @@ declare module '@polkadot/api-base/types/events' {
/**
* Message is processed.
**/
Processed: AugmentedEvent<ApiType, [id: U8aFixed, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, weightUsed: SpWeightsWeightV2Weight, success: bool], { id: U8aFixed, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, weightUsed: SpWeightsWeightV2Weight, success: bool }>;
Processed: AugmentedEvent<ApiType, [id: H256, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, weightUsed: SpWeightsWeightV2Weight, success: bool], { id: H256, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, weightUsed: SpWeightsWeightV2Weight, success: bool }>;
/**
* Message discarded due to an error in the `MessageProcessor` (usually a format error).
**/
ProcessingFailed: AugmentedEvent<ApiType, [id: U8aFixed, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, error: FrameSupportMessagesProcessMessageError], { id: U8aFixed, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, error: FrameSupportMessagesProcessMessageError }>;
ProcessingFailed: AugmentedEvent<ApiType, [id: H256, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, error: FrameSupportMessagesProcessMessageError], { id: H256, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, error: FrameSupportMessagesProcessMessageError }>;
/**
* Generic event
**/
@@ -533,6 +578,14 @@ declare module '@polkadot/api-base/types/events' {
* The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked).
**/
MemberRemoved: AugmentedEvent<ApiType, [poolId: u32, member: AccountId32], { poolId: u32, member: AccountId32 }>;
/**
* Topped up deficit in frozen ED of the reward pool.
**/
MinBalanceDeficitAdjusted: AugmentedEvent<ApiType, [poolId: u32, amount: u128], { poolId: u32, amount: u128 }>;
/**
* Claimed excess frozen ED of af the reward pool.
**/
MinBalanceExcessAdjusted: AugmentedEvent<ApiType, [poolId: u32, amount: u128], { poolId: u32, amount: u128 }>;
/**
* A payout has been made to a member.
**/
@@ -545,6 +598,10 @@ declare module '@polkadot/api-base/types/events' {
* Pool commission has been claimed.
**/
PoolCommissionClaimed: AugmentedEvent<ApiType, [poolId: u32, commission: u128], { poolId: u32, commission: u128 }>;
/**
* Pool commission claim permission has been updated.
**/
PoolCommissionClaimPermissionUpdated: AugmentedEvent<ApiType, [poolId: u32, permission: Option<PalletNominationPoolsCommissionClaimPermission>], { poolId: u32, permission: Option<PalletNominationPoolsCommissionClaimPermission> }>;
/**
* A pool's commission setting has been changed.
**/
@@ -614,15 +671,15 @@ declare module '@polkadot/api-base/types/events' {
/**
* A candidate was backed. `[candidate, head_data]`
**/
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV5CandidateReceipt, Bytes, u32, u32]>;
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV6CandidateReceipt, Bytes, u32, u32]>;
/**
* A candidate was included. `[candidate, head_data]`
**/
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV5CandidateReceipt, Bytes, u32, u32]>;
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV6CandidateReceipt, Bytes, u32, u32]>;
/**
* A candidate timed out. `[candidate, head_data]`
**/
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV5CandidateReceipt, Bytes, u32]>;
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV6CandidateReceipt, Bytes, u32]>;
/**
* Some upward messages have been received and will be processed.
**/
@@ -768,7 +825,7 @@ declare module '@polkadot/api-base/types/events' {
**/
DecisionStarted: AugmentedEvent<ApiType, [index: u32, track: u16, proposal: FrameSupportPreimagesBounded, tally: PalletConvictionVotingTally], { index: u32, track: u16, proposal: FrameSupportPreimagesBounded, tally: PalletConvictionVotingTally }>;
/**
* A deposit has been slashaed.
* A deposit has been slashed.
**/
DepositSlashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
/**
@@ -906,9 +963,9 @@ declare module '@polkadot/api-base/types/events' {
**/
PayoutStarted: AugmentedEvent<ApiType, [eraIndex: u32, validatorStash: AccountId32], { eraIndex: u32, validatorStash: AccountId32 }>;
/**
* The nominator has been rewarded by this amount.
* The nominator has been rewarded by this amount to this destination.
**/
Rewarded: AugmentedEvent<ApiType, [stash: AccountId32, amount: u128], { stash: AccountId32, amount: u128 }>;
Rewarded: AugmentedEvent<ApiType, [stash: AccountId32, dest: PalletStakingRewardDestination, amount: u128], { stash: AccountId32, dest: PalletStakingRewardDestination, amount: u128 }>;
/**
* A staker (validator or nominator) has been slashed by the given amount.
**/
@@ -977,6 +1034,10 @@ declare module '@polkadot/api-base/types/events' {
* On on-chain remark happened.
**/
Remarked: AugmentedEvent<ApiType, [sender: AccountId32, hash_: H256], { sender: AccountId32, hash_: H256 }>;
/**
* An upgrade was authorized.
**/
UpgradeAuthorized: AugmentedEvent<ApiType, [codeHash: H256, checkVersion: bool], { codeHash: H256, checkVersion: bool }>;
/**
* Generic event
**/
@@ -994,6 +1055,14 @@ declare module '@polkadot/api-base/types/events' {
[key: string]: AugmentedEvent<ApiType>;
};
treasury: {
/**
* A new asset spend proposal has been approved.
**/
AssetSpendApproved: AugmentedEvent<ApiType, [index: u32, assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset, amount: u128, beneficiary: XcmVersionedLocation, validFrom: u32, expireAt: u32], { index: u32, assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset, amount: u128, beneficiary: XcmVersionedLocation, validFrom: u32, expireAt: u32 }>;
/**
* An approved spend was voided.
**/
AssetSpendVoided: AugmentedEvent<ApiType, [index: u32], { index: u32 }>;
/**
* Some funds have been allocated.
**/
@@ -1006,6 +1075,14 @@ declare module '@polkadot/api-base/types/events' {
* Some funds have been deposited.
**/
Deposit: AugmentedEvent<ApiType, [value: u128], { value: u128 }>;
/**
* A payment happened.
**/
Paid: AugmentedEvent<ApiType, [index: u32, paymentId: u64], { index: u32, paymentId: u64 }>;
/**
* A payment failed and can be retried.
**/
PaymentFailed: AugmentedEvent<ApiType, [index: u32, paymentId: u64], { index: u32, paymentId: u64 }>;
/**
* New proposal.
**/
@@ -1026,6 +1103,11 @@ declare module '@polkadot/api-base/types/events' {
* We have ended a spend period and will now allocate funds.
**/
Spending: AugmentedEvent<ApiType, [budgetRemaining: u128], { budgetRemaining: u128 }>;
/**
* A spend was processed and removed from the storage. It might have been successfully
* paid or it may have expired.
**/
SpendProcessed: AugmentedEvent<ApiType, [index: u32], { index: u32 }>;
/**
* The inactive funds of the pallet have been updated.
**/
@@ -1108,25 +1190,25 @@ declare module '@polkadot/api-base/types/events' {
/**
* Some assets have been claimed from an asset trap
**/
AssetsClaimed: AugmentedEvent<ApiType, [hash_: H256, origin: XcmV3MultiLocation, assets: XcmVersionedMultiAssets], { hash_: H256, origin: XcmV3MultiLocation, assets: XcmVersionedMultiAssets }>;
AssetsClaimed: AugmentedEvent<ApiType, [hash_: H256, origin: StagingXcmV4Location, assets: XcmVersionedAssets], { hash_: H256, origin: StagingXcmV4Location, assets: XcmVersionedAssets }>;
/**
* Some assets have been placed in an asset trap.
**/
AssetsTrapped: AugmentedEvent<ApiType, [hash_: H256, origin: XcmV3MultiLocation, assets: XcmVersionedMultiAssets], { hash_: H256, origin: XcmV3MultiLocation, assets: XcmVersionedMultiAssets }>;
AssetsTrapped: AugmentedEvent<ApiType, [hash_: H256, origin: StagingXcmV4Location, assets: XcmVersionedAssets], { hash_: H256, origin: StagingXcmV4Location, assets: XcmVersionedAssets }>;
/**
* Execution of an XCM message was attempted.
**/
Attempted: AugmentedEvent<ApiType, [outcome: XcmV3TraitsOutcome], { outcome: XcmV3TraitsOutcome }>;
Attempted: AugmentedEvent<ApiType, [outcome: StagingXcmV4TraitsOutcome], { outcome: StagingXcmV4TraitsOutcome }>;
/**
* Fees were paid from a location for an operation (often for using `SendXcm`).
**/
FeesPaid: AugmentedEvent<ApiType, [paying: XcmV3MultiLocation, fees: XcmV3MultiassetMultiAssets], { paying: XcmV3MultiLocation, fees: XcmV3MultiassetMultiAssets }>;
FeesPaid: AugmentedEvent<ApiType, [paying: StagingXcmV4Location, fees: StagingXcmV4AssetAssets], { paying: StagingXcmV4Location, fees: StagingXcmV4AssetAssets }>;
/**
* Expected query response has been received but the querier location of the response does
* not match the expected. The query remains registered for a later, valid, response to
* be received and acted upon.
**/
InvalidQuerier: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, queryId: u64, expectedQuerier: XcmV3MultiLocation, maybeActualQuerier: Option<XcmV3MultiLocation>], { origin: XcmV3MultiLocation, queryId: u64, expectedQuerier: XcmV3MultiLocation, maybeActualQuerier: Option<XcmV3MultiLocation> }>;
InvalidQuerier: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64, expectedQuerier: StagingXcmV4Location, maybeActualQuerier: Option<StagingXcmV4Location>], { origin: StagingXcmV4Location, queryId: u64, expectedQuerier: StagingXcmV4Location, maybeActualQuerier: Option<StagingXcmV4Location> }>;
/**
* Expected query response has been received but the expected querier location placed in
* storage by this runtime previously cannot be decoded. The query remains registered.
@@ -1136,13 +1218,13 @@ declare module '@polkadot/api-base/types/events' {
* valid response will be dropped. Manual governance intervention is probably going to be
* needed.
**/
InvalidQuerierVersion: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, queryId: u64], { origin: XcmV3MultiLocation, queryId: u64 }>;
InvalidQuerierVersion: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64], { origin: StagingXcmV4Location, queryId: u64 }>;
/**
* Expected query response has been received but the origin location of the response does
* not match that expected. The query remains registered for a later, valid, response to
* be received and acted upon.
**/
InvalidResponder: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, queryId: u64, expectedLocation: Option<XcmV3MultiLocation>], { origin: XcmV3MultiLocation, queryId: u64, expectedLocation: Option<XcmV3MultiLocation> }>;
InvalidResponder: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64, expectedLocation: Option<StagingXcmV4Location>], { origin: StagingXcmV4Location, queryId: u64, expectedLocation: Option<StagingXcmV4Location> }>;
/**
* Expected query response has been received but the expected origin location placed in
* storage by this runtime previously cannot be decoded. The query remains registered.
@@ -1152,7 +1234,7 @@ declare module '@polkadot/api-base/types/events' {
* valid response will be dropped. Manual governance intervention is probably going to be
* needed.
**/
InvalidResponderVersion: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, queryId: u64], { origin: XcmV3MultiLocation, queryId: u64 }>;
InvalidResponderVersion: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64], { origin: StagingXcmV4Location, queryId: u64 }>;
/**
* Query response has been received and query is removed. The registered notification has
* been dispatched and executed successfully.
@@ -1179,17 +1261,17 @@ declare module '@polkadot/api-base/types/events' {
* A given location which had a version change subscription was dropped owing to an error
* migrating the location to our new XCM format.
**/
NotifyTargetMigrationFail: AugmentedEvent<ApiType, [location: XcmVersionedMultiLocation, queryId: u64], { location: XcmVersionedMultiLocation, queryId: u64 }>;
NotifyTargetMigrationFail: AugmentedEvent<ApiType, [location: XcmVersionedLocation, queryId: u64], { location: XcmVersionedLocation, queryId: u64 }>;
/**
* A given location which had a version change subscription was dropped owing to an error
* sending the notification to it.
**/
NotifyTargetSendFail: AugmentedEvent<ApiType, [location: XcmV3MultiLocation, queryId: u64, error: XcmV3TraitsError], { location: XcmV3MultiLocation, queryId: u64, error: XcmV3TraitsError }>;
NotifyTargetSendFail: AugmentedEvent<ApiType, [location: StagingXcmV4Location, queryId: u64, error: XcmV3TraitsError], { location: StagingXcmV4Location, queryId: u64, error: XcmV3TraitsError }>;
/**
* Query response has been received and is ready for taking with `take_response`. There is
* no registered notification call.
**/
ResponseReady: AugmentedEvent<ApiType, [queryId: u64, response: XcmV3Response], { queryId: u64, response: XcmV3Response }>;
ResponseReady: AugmentedEvent<ApiType, [queryId: u64, response: StagingXcmV4Response], { queryId: u64, response: StagingXcmV4Response }>;
/**
* Received query response has been read and removed.
**/
@@ -1197,38 +1279,42 @@ declare module '@polkadot/api-base/types/events' {
/**
* A XCM message was sent.
**/
Sent: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, destination: XcmV3MultiLocation, message: XcmV3Xcm, messageId: U8aFixed], { origin: XcmV3MultiLocation, destination: XcmV3MultiLocation, message: XcmV3Xcm, messageId: U8aFixed }>;
Sent: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, destination: StagingXcmV4Location, message: StagingXcmV4Xcm, messageId: U8aFixed], { origin: StagingXcmV4Location, destination: StagingXcmV4Location, message: StagingXcmV4Xcm, messageId: U8aFixed }>;
/**
* The supported version of a location has been changed. This might be through an
* automatic notification or a manual intervention.
**/
SupportedVersionChanged: AugmentedEvent<ApiType, [location: XcmV3MultiLocation, version: u32], { location: XcmV3MultiLocation, version: u32 }>;
SupportedVersionChanged: AugmentedEvent<ApiType, [location: StagingXcmV4Location, version: u32], { location: StagingXcmV4Location, version: u32 }>;
/**
* Query response received which does not match a registered query. This may be because a
* matching query was never registered, it may be because it is a duplicate response, or
* because the query timed out.
**/
UnexpectedResponse: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, queryId: u64], { origin: XcmV3MultiLocation, queryId: u64 }>;
UnexpectedResponse: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64], { origin: StagingXcmV4Location, queryId: u64 }>;
/**
* An XCM version change notification message has been attempted to be sent.
*
* The cost of sending it (borne by the chain) is included.
**/
VersionChangeNotified: AugmentedEvent<ApiType, [destination: XcmV3MultiLocation, result: u32, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed], { destination: XcmV3MultiLocation, result: u32, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed }>;
VersionChangeNotified: AugmentedEvent<ApiType, [destination: StagingXcmV4Location, result: u32, cost: StagingXcmV4AssetAssets, messageId: U8aFixed], { destination: StagingXcmV4Location, result: u32, cost: StagingXcmV4AssetAssets, messageId: U8aFixed }>;
/**
* A XCM version migration finished.
**/
VersionMigrationFinished: AugmentedEvent<ApiType, [version: u32], { version: u32 }>;
/**
* We have requested that a remote chain send us XCM version change notifications.
**/
VersionNotifyRequested: AugmentedEvent<ApiType, [destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed], { destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed }>;
VersionNotifyRequested: AugmentedEvent<ApiType, [destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed], { destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed }>;
/**
* A remote has requested XCM version change notification from us and we have honored it.
* A version information message is sent to them and its cost is included.
**/
VersionNotifyStarted: AugmentedEvent<ApiType, [destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed], { destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed }>;
VersionNotifyStarted: AugmentedEvent<ApiType, [destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed], { destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed }>;
/**
* We have requested that a remote chain stops sending us XCM version change
* notifications.
**/
VersionNotifyUnrequested: AugmentedEvent<ApiType, [destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed], { destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed }>;
VersionNotifyUnrequested: AugmentedEvent<ApiType, [destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed], { destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed }>;
/**
* Generic event
**/
+258 -81
View File
@@ -7,11 +7,11 @@ import '@polkadot/api-base/types/storage';
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
import type { Data } from '@polkadot/types';
import type { BTreeMap, BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
import type { BTreeMap, BTreeSet, Bytes, Null, Option, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
import type { AccountId32, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletReferendaReferendumInfo, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV5AssignmentAppPublic, PolkadotPrimitivesV5CandidateCommitments, PolkadotPrimitivesV5CoreOccupied, PolkadotPrimitivesV5DisputeState, PolkadotPrimitivesV5ExecutorParams, PolkadotPrimitivesV5ParasEntry, PolkadotPrimitivesV5ScrapedOnChainVotes, PolkadotPrimitivesV5SessionInfo, PolkadotPrimitivesV5SlashingPendingSlashes, PolkadotPrimitivesV5UpgradeGoAhead, PolkadotPrimitivesV5UpgradeRestriction, PolkadotPrimitivesV5ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, PolkadotRuntimeRuntimeHoldReason, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesIdAmountRuntimeHoldReason, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletReferendaReferendumInfo, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6AssignmentAppPublic, PolkadotPrimitivesV6CandidateCommitments, PolkadotPrimitivesV6DisputeState, PolkadotPrimitivesV6ExecutorParams, PolkadotPrimitivesV6ScrapedOnChainVotes, PolkadotPrimitivesV6SessionInfo, PolkadotPrimitivesV6SlashingPendingSlashes, PolkadotPrimitivesV6UpgradeGoAhead, PolkadotPrimitivesV6UpgradeRestriction, PolkadotPrimitivesV6ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerPalletCoreOccupied, PolkadotRuntimeParachainsSchedulerPalletParasEntry, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, PolkadotRuntimeSessionKeys, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
import type { Observable } from '@polkadot/types/types';
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
@@ -19,6 +19,18 @@ export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorage
declare module '@polkadot/api-base/types/storage' {
interface AugmentedQueries<ApiType extends ApiTypes> {
assetRate: {
/**
* Maps an asset to its fixed point representation in the native balance.
*
* E.g. `native_amount = asset_amount * ConversionRateToNative::<T>::get(asset_kind)`
**/
conversionRateToNative: AugmentedQuery<ApiType, (arg: PolkadotRuntimeCommonImplsVersionedLocatableAsset | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Option<u128>>, [PolkadotRuntimeCommonImplsVersionedLocatableAsset]> & QueryableStorageEntry<ApiType, [PolkadotRuntimeCommonImplsVersionedLocatableAsset]>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
auctions: {
/**
* Number of auctions started so far.
@@ -48,6 +60,20 @@ declare module '@polkadot/api-base/types/storage' {
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
authorityDiscovery: {
/**
* Keys of the current authority set.
**/
keys: AugmentedQuery<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Keys of the next authority set.
**/
nextKeys: AugmentedQuery<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
authorship: {
/**
* Author of current block.
@@ -202,14 +228,11 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Freeze locks on account balances.
**/
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmountRuntimeFreezeReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Holds on account balances.
**/
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<{
readonly id: PolkadotRuntimeRuntimeHoldReason;
readonly amount: u128;
} & Struct>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmountRuntimeHoldReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* The total units of outstanding deactivated balance in the system.
**/
@@ -232,6 +255,59 @@ declare module '@polkadot/api-base/types/storage' {
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
beefy: {
/**
* The current authorities set
**/
authorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusBeefyEcdsaCryptoPublic>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Block number where BEEFY consensus is enabled/started.
* By changing this (through privileged `set_new_genesis()`), BEEFY consensus is effectively
* restarted from the newly set block number.
**/
genesisBlock: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Authorities set scheduled to be used with the next session
**/
nextAuthorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusBeefyEcdsaCryptoPublic>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* A mapping from BEEFY set ID to the index of the *most recent* session for which its
* members were responsible.
*
* This is only used for validating equivocation proofs. An equivocation proof must
* contains a key-ownership proof for a given session, therefore we need a way to tie
* together sessions and BEEFY set ids, i.e. we need to validate that a validator
* was the owner of a given key on a given session, and what the active set ID was
* during that session.
*
* TWOX-NOTE: `ValidatorSetId` is not under user control.
**/
setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
/**
* The current validator set id
**/
validatorSetId: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
beefyMmrLeaf: {
/**
* Details of current BEEFY authority set.
**/
beefyAuthorities: AugmentedQuery<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Details of next BEEFY authority set.
*
* This storage entry is used as cache for calls to `update_beefy_next_authority_set`.
**/
beefyNextAuthorities: AugmentedQuery<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
bounties: {
/**
* Bounties that have been made.
@@ -371,7 +447,7 @@ declare module '@polkadot/api-base/types/storage' {
};
dmp: {
/**
* The number to multiply the base delivery fee by.
* The factor to multiply the base delivery fee by.
**/
deliveryFeeFactor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
@@ -402,6 +478,7 @@ declare module '@polkadot/api-base/types/storage' {
* Desired number of targets to elect for this round.
*
* Only exists when [`Snapshot`] is present.
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
**/
desiredTargets: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
@@ -461,12 +538,14 @@ declare module '@polkadot/api-base/types/storage' {
* Snapshot data of the round.
*
* This is created at the beginning of the signed phase and cleared upon calling `elect`.
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
**/
snapshot: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseRoundSnapshot>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The metadata of the [`RoundSnapshot`]
*
* Only exists when [`Snapshot`] is present.
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
**/
snapshotMetadata: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseSolutionOrSnapshotSize>>, []> & QueryableStorageEntry<ApiType, []>;
/**
@@ -508,6 +587,10 @@ declare module '@polkadot/api-base/types/storage' {
[key: string]: QueryableStorageEntry<ApiType>;
};
grandpa: {
/**
* The current list of authorities.
**/
authorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The number of changes (both in terms of keys and underlying economic responsibilities)
* in the "set" of Grandpa validators from genesis.
@@ -547,6 +630,20 @@ declare module '@polkadot/api-base/types/storage' {
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
historical: {
/**
* Mapping from historical session indices to session-data root hash and validator count.
**/
historicalSessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[H256, u32]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* The range of historical sessions we store. [first, last)
**/
storedRange: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
hrmp: {
/**
* This mapping tracks how many open channel requests were accepted by a given recipient para.
@@ -558,7 +655,7 @@ declare module '@polkadot/api-base/types/storage' {
* Storage for the messages for each channel.
* Invariant: cannot be non-empty if the corresponding channel in `HrmpChannels` is `None`.
**/
hrmpChannelContents: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundHrmpMessage>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
hrmpChannelContents: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundHrmpMessage>>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]>;
/**
* Maintains a mapping that can be used to answer the question: What paras sent a message at
* the given block number for a given receiver. Invariants:
@@ -573,7 +670,7 @@ declare module '@polkadot/api-base/types/storage' {
* Invariant:
* - each participant in the channel should satisfy `Paras::is_valid_para(P)` within a session.
**/
hrmpChannels: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpChannel>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
hrmpChannels: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpChannel>>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]>;
/**
* A set of pending HRMP close channel requests that are going to be closed during the session
* change. Used for checking if a given channel is registered for closure.
@@ -583,8 +680,8 @@ declare module '@polkadot/api-base/types/storage' {
* Invariant:
* - There are no channels that exists in list but not in the set and vice versa.
**/
hrmpCloseChannelRequests: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Option<Null>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
hrmpCloseChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
hrmpCloseChannelRequests: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Option<Null>>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]>;
hrmpCloseChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
hrmpEgressChannelsIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Ingress/egress indexes allow to find all the senders and receivers given the opposite side.
@@ -616,8 +713,8 @@ declare module '@polkadot/api-base/types/storage' {
* Invariant:
* - There are no channels that exists in list but not in the set and vice versa.
**/
hrmpOpenChannelRequests: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
hrmpOpenChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
hrmpOpenChannelRequests: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest>>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]>;
hrmpOpenChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The HRMP watermark associated with each para.
* Invariant:
@@ -632,11 +729,29 @@ declare module '@polkadot/api-base/types/storage' {
};
identity: {
/**
* Information that is pertinent to identify the entity behind an account.
* Reverse lookup from `username` to the `AccountId` that has registered it. The value should
* be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
*
* Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
* primary username.
**/
accountOfUsername: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<AccountId32>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
/**
* Information that is pertinent to identify the entity behind an account. First item is the
* registration, second is the account's primary username.
*
* TWOX-NOTE: OK `AccountId` is a secure hash.
**/
identityOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityRegistration>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
identityOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[PalletIdentityRegistration, Option<Bytes>]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Usernames that an authority has granted, but that the account controller has not confirmed
* that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
* because they are a pure proxy, multisig, etc. In order to confirm it, they should call
* [`Call::accept_username`].
*
* First tuple item is the account and second is the acceptance deadline.
**/
pendingUsernames: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
/**
* The set of registrars. Not expected to get very big as can only be added through a
* special origin (likely a council motion).
@@ -658,38 +773,9 @@ declare module '@polkadot/api-base/types/storage' {
**/
superOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, Data]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Generic query
* A map of the accounts who are authorized to grant usernames.
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
imOnline: {
/**
* For each session index, we keep a mapping of `ValidatorId<T>` to the
* number of blocks authored by the given authority.
**/
authoredBlocks: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<u32>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
* The block number after which it's ok to send heartbeats in the current
* session.
*
* At the beginning of each session we set this to a value that should fall
* roughly in the middle of the session duration. The idea is to first wait for
* the validators to produce a block in the current session, so that the
* heartbeat later on will not be necessary.
*
* This value will only be used as a fallback if we fail to get a proper session
* progress estimate from `NextSessionRotation`, as those estimates should be
* more accurate then the value we calculate for `HeartbeatAfter`.
**/
heartbeatAfter: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The current set of keys that may issue a heartbeat.
**/
keys: AugmentedQuery<ApiType, () => Observable<Vec<PalletImOnlineSr25519AppSr25519Public>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`.
**/
receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<bool>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
usernameAuthorities: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityAuthorityProperties>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Generic query
**/
@@ -750,6 +836,27 @@ declare module '@polkadot/api-base/types/storage' {
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
mmr: {
/**
* Hashes of the nodes in the MMR.
*
* Note this collection only contains MMR peaks, the inner nodes (and leaves)
* are pruned and only stored in the Offchain DB.
**/
nodes: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
/**
* Current size of the MMR (number of leaves).
**/
numberOfLeaves: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Latest MMR Root hash.
**/
rootHash: AugmentedQuery<ApiType, () => Observable<H256>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
multisig: {
/**
* The set of open multisig operations.
@@ -859,6 +966,14 @@ declare module '@polkadot/api-base/types/storage' {
* bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
**/
subPoolsStorage: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsSubPools>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* The sum of funds across all pools.
*
* This might be lower but never higher than the sum of `total_balance` of all [`PoolMembers`]
* because calling `pool_withdraw_unbonded` might decrease the total stake of the pool's
* `bonded_account` without adjusting the pallet-internal `UnbondingPool`'s.
**/
totalValueLocked: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
@@ -890,7 +1005,7 @@ declare module '@polkadot/api-base/types/storage' {
/**
* The commitments of candidates pending availability, by `ParaId`.
**/
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
**/
@@ -909,7 +1024,7 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Scraped on chain data for extracting resolved disputes as well as backing votes.
**/
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV5ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV6ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
@@ -1033,7 +1148,7 @@ declare module '@polkadot/api-base/types/storage' {
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
* the format will require migration of parachains.
**/
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* This is used by the relay-chain to communicate that there are restrictions for performing
* an upgrade for this parachain.
@@ -1045,7 +1160,7 @@ declare module '@polkadot/api-base/types/storage' {
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
* the format will require migration of parachains.
**/
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
**/
@@ -1062,7 +1177,7 @@ declare module '@polkadot/api-base/types/storage' {
* * The number of parachains and parathread multiplexers
* * The number of validators divided by `configuration.max_validators_per_core`.
**/
availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV5CoreOccupied>>, []> & QueryableStorageEntry<ApiType, []>;
availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotRuntimeParachainsSchedulerPalletCoreOccupied>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* One entry for each availability core. The `VecDeque` represents the assignments to be
* scheduled on that core. `None` is used to signal to not schedule the next para of the core
@@ -1070,7 +1185,7 @@ declare module '@polkadot/api-base/types/storage' {
* `CoreState` in the runtime API. The value contained here will not be valid after the end of
* a block. Runtime APIs should be used to determine scheduled cores/ for the upcoming block.
**/
claimQueue: AugmentedQuery<ApiType, () => Observable<BTreeMap<u32, Vec<Option<PolkadotPrimitivesV5ParasEntry>>>>, []> & QueryableStorageEntry<ApiType, []>;
claimQueue: AugmentedQuery<ApiType, () => Observable<BTreeMap<u32, Vec<PolkadotRuntimeParachainsSchedulerPalletParasEntry>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The block number where the session start occurred. Used to track how many group rotations
* have occurred.
@@ -1105,7 +1220,7 @@ declare module '@polkadot/api-base/types/storage' {
/**
* All ongoing or concluded disputes for the last several sessions.
**/
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV5DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV6DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
/**
* Whether the chain is frozen. Starts as `None`. When this is `Some`,
* the chain will not accept any new parachain blocks for backing or inclusion,
@@ -1138,7 +1253,7 @@ declare module '@polkadot/api-base/types/storage' {
* Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
* When in doubt, use `Sessions` API instead.
**/
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV5AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV6AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The earliest session for which previous session info is stored.
**/
@@ -1146,13 +1261,13 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Executor parameter set for a given session index
**/
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Session information in a rolling window.
* Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
* Does not have any entries before the session index in the first session change notification.
**/
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
**/
@@ -1168,7 +1283,7 @@ declare module '@polkadot/api-base/types/storage' {
* The parachain attestation keys of the validators actively participating in parachain
* consensus. This should be the same length as `ActiveValidatorIndices`.
**/
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV5ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV6ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* All allowed relay-parents.
**/
@@ -1186,7 +1301,7 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Validators pending dispute slashes.
**/
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV5SlashingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV6SlashingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
/**
* `ValidatorSetCount` per session.
**/
@@ -1201,7 +1316,11 @@ declare module '@polkadot/api-base/types/storage' {
/**
* The request status of a given hash.
**/
statusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
requestStatusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
/**
* The request status of a given hash.
**/
statusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageOldRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
/**
* Generic query
**/
@@ -1229,7 +1348,7 @@ declare module '@polkadot/api-base/types/storage' {
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
/**
* The metadata is a general information concerning the referendum.
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
* The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
* dump or IPFS hash of a JSON file.
*
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
@@ -1392,6 +1511,15 @@ declare module '@polkadot/api-base/types/storage' {
* (`CountFor*`) in the system compared to the configured max (`Max*Count`).
**/
chillThreshold: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* History of claimed paged rewards by era and validator.
*
* This is keyed by era and validator stash which maps to the set of page indexes which have
* been claimed.
*
* It is removed after [`Config::HistoryDepth`] eras.
**/
claimedRewards: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Vec<u32>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
* Counter for the related counted storage map
**/
@@ -1414,7 +1542,7 @@ declare module '@polkadot/api-base/types/storage' {
**/
currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Rewards for the last `HISTORY_DEPTH` eras.
* Rewards for the last [`Config::HistoryDepth`] eras.
* If reward hasn't been set or has been removed then 0 reward is returned.
**/
erasRewardPoints: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletStakingEraRewardPoints>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
@@ -1423,33 +1551,64 @@ declare module '@polkadot/api-base/types/storage' {
*
* This is keyed first by the era index to allow bulk deletion and then the stash account.
*
* Is it removed after `HISTORY_DEPTH` eras.
* Is it removed after [`Config::HistoryDepth`] eras.
* If stakers hasn't been set or has been removed then empty exposure is returned.
*
* Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
**/
erasStakers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
erasStakers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<SpStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
* Clipped Exposure of validator at era.
*
* Note: This is deprecated, should be used as read-only and will be removed in the future.
* New `Exposure`s are stored in a paged manner in `ErasStakersPaged` instead.
*
* This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the
* `T::MaxNominatorRewardedPerValidator` biggest stakers.
* `T::MaxExposurePageSize` biggest stakers.
* (Note: the field `total` and `own` of the exposure remains unchanged).
* This is used to limit the i/o cost for the nominator payout.
*
* This is keyed fist by the era index to allow bulk deletion and then the stash account.
*
* Is it removed after `HISTORY_DEPTH` eras.
* It is removed after [`Config::HistoryDepth`] eras.
* If stakers hasn't been set or has been removed then empty exposure is returned.
*
* Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
**/
erasStakersClipped: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
erasStakersClipped: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<SpStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
* The session index at which the era start for the last `HISTORY_DEPTH` eras.
* Summary of validator exposure at a given era.
*
* This contains the total stake in support of the validator and their own stake. In addition,
* it can also be used to get the number of nominators backing this validator and the number of
* exposure pages they are divided into. The page count is useful to determine the number of
* pages of rewards that needs to be claimed.
*
* This is keyed first by the era index to allow bulk deletion and then the stash account.
* Should only be accessed through `EraInfo`.
*
* Is it removed after [`Config::HistoryDepth`] eras.
* If stakers hasn't been set or has been removed then empty overview is returned.
**/
erasStakersOverview: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<SpStakingPagedExposureMetadata>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
* Paginated exposure of a validator at given era.
*
* This is keyed first by the era index to allow bulk deletion, then stash account and finally
* the page. Should only be accessed through `EraInfo`.
*
* This is cleared after [`Config::HistoryDepth`] eras.
**/
erasStakersPaged: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<Option<SpStakingExposurePage>>, [u32, AccountId32, u32]> & QueryableStorageEntry<ApiType, [u32, AccountId32, u32]>;
/**
* The session index at which the era start for the last [`Config::HistoryDepth`] eras.
*
* Note: This tracks the starting session (i.e. session index when era start being active)
* for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`.
**/
erasStartSessionIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* The total amount staked for the last `HISTORY_DEPTH` eras.
* The total amount staked for the last [`Config::HistoryDepth`] eras.
* If total hasn't been set or has been removed then 0 stake is returned.
**/
erasTotalStake: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
@@ -1458,11 +1617,11 @@ declare module '@polkadot/api-base/types/storage' {
*
* This is keyed first by the era index to allow bulk deletion and then the stash account.
*
* Is it removed after `HISTORY_DEPTH` eras.
* Is it removed after [`Config::HistoryDepth`] eras.
**/
erasValidatorPrefs: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
* The total validator era payout for the last `HISTORY_DEPTH` eras.
* The total validator era payout for the last [`Config::HistoryDepth`] eras.
*
* Eras that haven't finished yet or has been removed doesn't have reward.
**/
@@ -1479,6 +1638,9 @@ declare module '@polkadot/api-base/types/storage' {
invulnerables: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Map from all (unlocked) "controller" accounts to the info regarding the staking.
*
* Note: All the reads and mutations to this storage *MUST* be done through the methods exposed
* by [`StakingLedger`] to ensure data and lock consistency.
**/
ledger: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingStakingLedger>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
@@ -1558,7 +1720,7 @@ declare module '@polkadot/api-base/types/storage' {
*
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
**/
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingRewardDestination>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingRewardDestination>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Slashing spans for stash accounts.
**/
@@ -1607,6 +1769,10 @@ declare module '@polkadot/api-base/types/storage' {
* Total length (in bytes) for all extrinsics put together, for the current block.
**/
allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* `Some` if a code upgrade has been authorized.
**/
authorizedUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemCodeUpgradeAuthorization>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Map of block numbers to block hashes.
**/
@@ -1686,11 +1852,14 @@ declare module '@polkadot/api-base/types/storage' {
};
timestamp: {
/**
* Did the timestamp get updated in this block?
* Whether the timestamp has been updated in this block.
*
* This value is updated to `true` upon successful submission of a timestamp by a node.
* It is then checked at the end of each block execution in the `on_finalize` hook.
**/
didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Current time for the current block.
* The current time for the current block.
**/
now: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
/**
@@ -1723,6 +1892,14 @@ declare module '@polkadot/api-base/types/storage' {
* Proposals that have been made.
**/
proposals: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTreasuryProposal>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* The count of spends that have been made.
**/
spendCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Spends that have been approved and being processed.
**/
spends: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTreasurySpendStatus>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
**/
@@ -1777,7 +1954,7 @@ declare module '@polkadot/api-base/types/storage' {
/**
* The existing asset traps.
*
* Key is the blake2 256 hash of (origin, versioned `MultiAssets`) pair. Value is the number of
* Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of
* times this pair has been trapped (usually just 1 if it exists at all).
**/
assetTraps: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<u32>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
@@ -1788,7 +1965,7 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Fungible assets which we know are locked on this chain.
**/
lockedFungibles: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Vec<ITuple<[u128, XcmVersionedMultiLocation]>>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
lockedFungibles: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Vec<ITuple<[u128, XcmVersionedLocation]>>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* The ongoing queries.
**/
@@ -1800,7 +1977,7 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Fungible assets which we know are locked on a remote chain.
**/
remoteLockedFungibles: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: XcmVersionedAssetId | { V3: any } | string | Uint8Array) => Observable<Option<PalletXcmRemoteLockedFungibleRecord>>, [u32, AccountId32, XcmVersionedAssetId]> & QueryableStorageEntry<ApiType, [u32, AccountId32, XcmVersionedAssetId]>;
remoteLockedFungibles: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Option<PalletXcmRemoteLockedFungibleRecord>>, [u32, AccountId32, XcmVersionedAssetId]> & QueryableStorageEntry<ApiType, [u32, AccountId32, XcmVersionedAssetId]>;
/**
* Default version to encode XCM when latest version of destination is unknown. If `None`,
* then the destinations whose XCM version is unknown are considered unreachable.
@@ -1809,22 +1986,22 @@ declare module '@polkadot/api-base/types/storage' {
/**
* The Latest versions that we know various locations support.
**/
supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<u32>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Option<u32>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
/**
* Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
* the `u32` counter is the number of times that a send to the destination has been attempted,
* which is used as a prioritization.
**/
versionDiscoveryQueue: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[XcmVersionedMultiLocation, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
versionDiscoveryQueue: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[XcmVersionedLocation, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* All locations that we have requested version notifications from.
**/
versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<u64>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Option<u64>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
/**
* The target locations that are subscribed to our version changes, as well as the most recent
* of our versions we informed them of.
**/
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
/**
* Global suspension state of the XCM executor.
**/
+39 -4
View File
@@ -6,14 +6,15 @@
import '@polkadot/api-base/types/calls';
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec';
import type { Bytes, Null, Option, Result, U64, Vec, bool, u32 } from '@polkadot/types-codec';
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
import type { BeefyEquivocationProof, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
import type { BeefyAuthoritySet, BeefyEquivocationProof, BeefyNextAuthoritySet, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
import type { BlockHash } from '@polkadot/types/interfaces/chain';
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
@@ -108,6 +109,21 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x2a5e924655399e60/1 */
beefyMmrApi: {
/**
* Return the currently active BEEFY authority set proof.
**/
authoritySetProof: AugmentedCall<ApiType, () => Observable<BeefyAuthoritySet>>;
/**
* Return the next/queued BEEFY authority set proof.
**/
nextAuthoritySetProof: AugmentedCall<ApiType, () => Observable<BeefyNextAuthoritySet>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x40fe3ad401f8959a/6 */
blockBuilder: {
/**
@@ -150,6 +166,21 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xfbc577b9d747efd6/1 */
genesisBuilder: {
/**
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
**/
buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
/**
* Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
**/
createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xed99c5acb25eedf5/3 */
grandpaApi: {
/**
@@ -198,10 +229,14 @@ declare module '@polkadot/api-base/types/calls' {
* Generate MMR proof for the given block numbers.
**/
generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
/**
* Return the number of MMR blocks in the chain.
**/
mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<U64, MmrError>>>;
/**
* Return the on-chain MMR root hash.
**/
root: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
/**
* Verify MMR proof against on-chain MMR.
**/
@@ -322,7 +357,7 @@ declare module '@polkadot/api-base/types/calls' {
/**
* Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.
**/
validationCode: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<ValidationCode>>;
validationCode: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<ValidationCode>>>;
/**
* Get the validation code from its hash.
**/
+177 -43
View File
@@ -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 { EthereumAddress } from '@polkadot/types/interfaces/eth';
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV5ExecutorParams, PolkadotPrimitivesV5InherentData, PolkadotPrimitivesV5PvfCheckStatement, PolkadotPrimitivesV5SlashingDisputeProof, PolkadotPrimitivesV5ValidatorAppSignature, PolkadotPrimitivesVstagingAsyncBackingParams, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, PalletBalancesAdjustmentDirection, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6AsyncBackingAsyncBackingParams, PolkadotPrimitivesV6ExecutorParams, PolkadotPrimitivesV6InherentData, PolkadotPrimitivesV6PvfCheckStatement, PolkadotPrimitivesV6SlashingDisputeProof, PolkadotPrimitivesV6ValidatorAppSignature, PolkadotPrimitivesVstagingApprovalVotingParams, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeOriginCaller, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyEquivocationProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, StagingXcmV4Location, XcmV3WeightLimit, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
@@ -19,6 +19,24 @@ export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = Submittab
declare module '@polkadot/api-base/types/submittable' {
interface AugmentedSubmittables<ApiType extends ApiTypes> {
assetRate: {
/**
* See [`Pallet::create`].
**/
create: AugmentedSubmittable<(assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset | { V3: any } | { V4: any } | string | Uint8Array, rate: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeCommonImplsVersionedLocatableAsset, u128]>;
/**
* See [`Pallet::remove`].
**/
remove: AugmentedSubmittable<(assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeCommonImplsVersionedLocatableAsset]>;
/**
* See [`Pallet::update`].
**/
update: AugmentedSubmittable<(assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset | { V3: any } | { V4: any } | string | Uint8Array, rate: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeCommonImplsVersionedLocatableAsset, u128]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
auctions: {
/**
* See [`Pallet::bid`].
@@ -56,6 +74,10 @@ declare module '@polkadot/api-base/types/submittable' {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
balances: {
/**
* See [`Pallet::force_adjust_total_issuance`].
**/
forceAdjustTotalIssuance: AugmentedSubmittable<(direction: PalletBalancesAdjustmentDirection | 'Increase' | 'Decrease' | number | Uint8Array, delta: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBalancesAdjustmentDirection, Compact<u128>]>;
/**
* See [`Pallet::force_set_balance`].
**/
@@ -68,14 +90,6 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::force_unreserve`].
**/
forceUnreserve: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
/**
* See [`Pallet::set_balance_deprecated`].
**/
setBalanceDeprecated: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, oldReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;
/**
* See [`Pallet::transfer`].
**/
transfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
/**
* See [`Pallet::transfer_all`].
**/
@@ -97,6 +111,24 @@ declare module '@polkadot/api-base/types/submittable' {
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
beefy: {
/**
* See [`Pallet::report_equivocation`].
**/
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyEquivocationProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyEquivocationProof, SpSessionMembershipProof]>;
/**
* See [`Pallet::report_equivocation_unsigned`].
**/
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyEquivocationProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyEquivocationProof, SpSessionMembershipProof]>;
/**
* See [`Pallet::set_new_genesis`].
**/
setNewGenesis: AugmentedSubmittable<(delayInBlocks: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
bounties: {
/**
* See [`Pallet::accept_curator`].
@@ -200,10 +232,14 @@ declare module '@polkadot/api-base/types/submittable' {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
configuration: {
/**
* See [`Pallet::set_approval_voting_params`].
**/
setApprovalVotingParams: AugmentedSubmittable<(updated: PolkadotPrimitivesVstagingApprovalVotingParams | { maxApprovalCoalesceCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesVstagingApprovalVotingParams]>;
/**
* See [`Pallet::set_async_backing_params`].
**/
setAsyncBackingParams: AugmentedSubmittable<(updated: PolkadotPrimitivesVstagingAsyncBackingParams | { maxCandidateDepth?: any; allowedAncestryLen?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesVstagingAsyncBackingParams]>;
setAsyncBackingParams: AugmentedSubmittable<(updated: PolkadotPrimitivesV6AsyncBackingAsyncBackingParams | { maxCandidateDepth?: any; allowedAncestryLen?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV6AsyncBackingAsyncBackingParams]>;
/**
* See [`Pallet::set_bypass_consistency_check`].
**/
@@ -212,6 +248,10 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::set_code_retention_period`].
**/
setCodeRetentionPeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* See [`Pallet::set_coretime_cores`].
**/
setCoretimeCores: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* See [`Pallet::set_dispute_period`].
**/
@@ -223,7 +263,7 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::set_executor_params`].
**/
setExecutorParams: AugmentedSubmittable<(updated: PolkadotPrimitivesV5ExecutorParams) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV5ExecutorParams]>;
setExecutorParams: AugmentedSubmittable<(updated: PolkadotPrimitivesV6ExecutorParams) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV6ExecutorParams]>;
/**
* See [`Pallet::set_group_rotation_frequency`].
**/
@@ -304,6 +344,10 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::set_max_validators_per_core`].
**/
setMaxValidatorsPerCore: AugmentedSubmittable<(updated: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
/**
* See [`Pallet::set_minimum_backing_votes`].
**/
setMinimumBackingVotes: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* See [`Pallet::set_minimum_validation_upgrade_delay`].
**/
@@ -316,6 +360,10 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::set_needed_approvals`].
**/
setNeededApprovals: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* See [`Pallet::set_node_feature`].
**/
setNodeFeature: AugmentedSubmittable<(index: u8 | AnyNumber | Uint8Array, value: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u8, bool]>;
/**
* See [`Pallet::set_no_show_slots`].
**/
@@ -324,10 +372,6 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::set_on_demand_base_fee`].
**/
setOnDemandBaseFee: AugmentedSubmittable<(updated: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;
/**
* See [`Pallet::set_on_demand_cores`].
**/
setOnDemandCores: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* See [`Pallet::set_on_demand_fee_variability`].
**/
@@ -516,10 +560,14 @@ declare module '@polkadot/api-base/types/submittable' {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
hrmp: {
/**
* See [`Pallet::establish_system_channel`].
**/
establishSystemChannel: AugmentedSubmittable<(sender: u32 | AnyNumber | Uint8Array, recipient: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
/**
* See [`Pallet::force_clean_hrmp`].
**/
forceCleanHrmp: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array, inbound: u32 | AnyNumber | Uint8Array, outbound: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
forceCleanHrmp: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array, numInbound: u32 | AnyNumber | Uint8Array, numOutbound: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
/**
* See [`Pallet::force_open_hrmp_channel`].
**/
@@ -539,21 +587,29 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::hrmp_cancel_open_request`].
**/
hrmpCancelOpenRequest: AugmentedSubmittable<(channelId: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array, openRequests: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotParachainPrimitivesHrmpChannelId, u32]>;
hrmpCancelOpenRequest: AugmentedSubmittable<(channelId: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array, openRequests: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId, u32]>;
/**
* See [`Pallet::hrmp_close_channel`].
**/
hrmpCloseChannel: AugmentedSubmittable<(channelId: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotParachainPrimitivesHrmpChannelId]>;
hrmpCloseChannel: AugmentedSubmittable<(channelId: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]>;
/**
* See [`Pallet::hrmp_init_open_channel`].
**/
hrmpInitOpenChannel: AugmentedSubmittable<(recipient: u32 | AnyNumber | Uint8Array, proposedMaxCapacity: u32 | AnyNumber | Uint8Array, proposedMaxMessageSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
/**
* See [`Pallet::poke_channel_deposits`].
**/
pokeChannelDeposits: AugmentedSubmittable<(sender: u32 | AnyNumber | Uint8Array, recipient: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
identity: {
/**
* See [`Pallet::accept_username`].
**/
acceptUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
/**
* See [`Pallet::add_registrar`].
**/
@@ -562,6 +618,10 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::add_sub`].
**/
addSub: AugmentedSubmittable<(sub: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, data: Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Data]>;
/**
* See [`Pallet::add_username_authority`].
**/
addUsernameAuthority: AugmentedSubmittable<(authority: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, suffix: Bytes | string | Uint8Array, allocation: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Bytes, u32]>;
/**
* See [`Pallet::cancel_request`].
**/
@@ -582,10 +642,22 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::quit_sub`].
**/
quitSub: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
/**
* See [`Pallet::remove_dangling_username`].
**/
removeDanglingUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
/**
* See [`Pallet::remove_expired_approval`].
**/
removeExpiredApproval: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
/**
* See [`Pallet::remove_sub`].
**/
removeSub: AugmentedSubmittable<(sub: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
/**
* See [`Pallet::remove_username_authority`].
**/
removeUsernameAuthority: AugmentedSubmittable<(authority: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
/**
* See [`Pallet::rename_sub`].
**/
@@ -605,25 +677,23 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::set_fields`].
**/
setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: PalletIdentityBitFlags) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletIdentityBitFlags]>;
setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, u64]>;
/**
* See [`Pallet::set_identity`].
**/
setIdentity: AugmentedSubmittable<(info: PalletIdentityIdentityInfo | { additional?: any; display?: any; legal?: any; web?: any; riot?: any; email?: any; pgpFingerprint?: any; image?: any; twitter?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletIdentityIdentityInfo]>;
setIdentity: AugmentedSubmittable<(info: PalletIdentityLegacyIdentityInfo | { additional?: any; display?: any; legal?: any; web?: any; riot?: any; email?: any; pgpFingerprint?: any; image?: any; twitter?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletIdentityLegacyIdentityInfo]>;
/**
* See [`Pallet::set_primary_username`].
**/
setPrimaryUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
/**
* See [`Pallet::set_subs`].
**/
setSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, Data]>> | ([AccountId32 | string | Uint8Array, Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, Data]>>]>;
/**
* Generic tx
* See [`Pallet::set_username_for`].
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
imOnline: {
/**
* See [`Pallet::heartbeat`].
**/
heartbeat: AugmentedSubmittable<(heartbeat: PalletImOnlineHeartbeat | { blockNumber?: any; sessionIndex?: any; authorityIndex?: any; validatorsLen?: any } | string | Uint8Array, signature: PalletImOnlineSr25519AppSr25519Signature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature]>;
setUsernameFor: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, username: Bytes | string | Uint8Array, signature: Option<SpRuntimeMultiSignature> | null | Uint8Array | SpRuntimeMultiSignature | { Ed25519: any } | { Sr25519: any } | { Ecdsa: any } | string) => SubmittableExtrinsic<ApiType>, [MultiAddress, Bytes, Option<SpRuntimeMultiSignature>]>;
/**
* Generic tx
**/
@@ -702,6 +772,10 @@ declare module '@polkadot/api-base/types/submittable' {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
nominationPools: {
/**
* See [`Pallet::adjust_pool_deposit`].
**/
adjustPoolDeposit: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* See [`Pallet::bond_extra`].
**/
@@ -758,6 +832,10 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::set_commission_change_rate`].
**/
setCommissionChangeRate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, changeRate: PalletNominationPoolsCommissionChangeRate | { maxIncrease?: any; minDelay?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsCommissionChangeRate]>;
/**
* See [`Pallet::set_commission_claim_permission`].
**/
setCommissionClaimPermission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, permission: Option<PalletNominationPoolsCommissionClaimPermission> | null | Uint8Array | PalletNominationPoolsCommissionClaimPermission | { Permissionless: any } | { Account: any } | string) => SubmittableExtrinsic<ApiType>, [u32, Option<PalletNominationPoolsCommissionClaimPermission>]>;
/**
* See [`Pallet::set_commission_max`].
**/
@@ -801,7 +879,7 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::enter`].
**/
enter: AugmentedSubmittable<(data: PolkadotPrimitivesV5InherentData | { bitfields?: any; backedCandidates?: any; disputes?: any; parentHeader?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV5InherentData]>;
enter: AugmentedSubmittable<(data: PolkadotPrimitivesV6InherentData | { bitfields?: any; backedCandidates?: any; disputes?: any; parentHeader?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV6InherentData]>;
/**
* Generic tx
**/
@@ -839,7 +917,7 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::include_pvf_check_statement`].
**/
includePvfCheckStatement: AugmentedSubmittable<(stmt: PolkadotPrimitivesV5PvfCheckStatement | { accept?: any; subject?: any; sessionIndex?: any; validatorIndex?: any } | string | Uint8Array, signature: PolkadotPrimitivesV5ValidatorAppSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV5PvfCheckStatement, PolkadotPrimitivesV5ValidatorAppSignature]>;
includePvfCheckStatement: AugmentedSubmittable<(stmt: PolkadotPrimitivesV6PvfCheckStatement | { accept?: any; subject?: any; sessionIndex?: any; validatorIndex?: any } | string | Uint8Array, signature: PolkadotPrimitivesV6ValidatorAppSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV6PvfCheckStatement, PolkadotPrimitivesV6ValidatorAppSignature]>;
/**
* See [`Pallet::poke_unused_validation_code`].
**/
@@ -869,13 +947,17 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::report_dispute_lost_unsigned`].
**/
reportDisputeLostUnsigned: AugmentedSubmittable<(disputeProof: PolkadotPrimitivesV5SlashingDisputeProof | { timeSlot?: any; kind?: any; validatorIndex?: any; validatorId?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV5SlashingDisputeProof, SpSessionMembershipProof]>;
reportDisputeLostUnsigned: AugmentedSubmittable<(disputeProof: PolkadotPrimitivesV6SlashingDisputeProof | { timeSlot?: any; kind?: any; validatorIndex?: any; validatorId?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV6SlashingDisputeProof, SpSessionMembershipProof]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
preimage: {
/**
* See [`Pallet::ensure_updated`].
**/
ensureUpdated: AugmentedSubmittable<(hashes: Vec<H256> | (H256 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<H256>]>;
/**
* See [`Pallet::note_preimage`].
**/
@@ -1065,7 +1147,7 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::set_keys`].
**/
setKeys: AugmentedSubmittable<(keys: PolkadotRuntimeSessionKeys | { grandpa?: any; babe?: any; imOnline?: any; paraValidator?: any; paraAssignment?: any; authorityDiscovery?: any } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeSessionKeys, Bytes]>;
setKeys: AugmentedSubmittable<(keys: PolkadotRuntimeSessionKeys | { grandpa?: any; babe?: any; paraValidator?: any; paraAssignment?: any; authorityDiscovery?: any; beefy?: any } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeSessionKeys, Bytes]>;
/**
* Generic tx
**/
@@ -1109,7 +1191,11 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::chill_other`].
**/
chillOther: AugmentedSubmittable<(controller: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
chillOther: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
/**
* See [`Pallet::deprecate_controller_batch`].
**/
deprecateControllerBatch: AugmentedSubmittable<(controllers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
/**
* See [`Pallet::force_apply_min_commission`].
**/
@@ -1146,6 +1232,10 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::payout_stakers`].
**/
payoutStakers: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
/**
* See [`Pallet::payout_stakers_by_page`].
**/
payoutStakersByPage: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array, page: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32, u32]>;
/**
* See [`Pallet::reap_stash`].
**/
@@ -1186,6 +1276,10 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::unbond`].
**/
unbond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
/**
* See [`Pallet::update_payee`].
**/
updatePayee: AugmentedSubmittable<(controller: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
/**
* See [`Pallet::validate`].
**/
@@ -1200,6 +1294,18 @@ declare module '@polkadot/api-base/types/submittable' {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
system: {
/**
* See [`Pallet::apply_authorized_upgrade`].
**/
applyAuthorizedUpgrade: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
/**
* See [`Pallet::authorize_upgrade`].
**/
authorizeUpgrade: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
/**
* See [`Pallet::authorize_upgrade_without_checks`].
**/
authorizeUpgradeWithoutChecks: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
/**
* See [`Pallet::kill_prefix`].
**/
@@ -1252,6 +1358,14 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::approve_proposal`].
**/
approveProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
/**
* See [`Pallet::check_status`].
**/
checkStatus: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* See [`Pallet::payout`].
**/
payout: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* See [`Pallet::propose_spend`].
**/
@@ -1267,7 +1381,15 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::spend`].
**/
spend: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress]>;
spend: AugmentedSubmittable<(assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset | { V3: any } | { V4: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, validFrom: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeCommonImplsVersionedLocatableAsset, Compact<u128>, XcmVersionedLocation, Option<u32>]>;
/**
* See [`Pallet::spend_local`].
**/
spendLocal: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress]>;
/**
* See [`Pallet::void_spend`].
**/
voidSpend: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* Generic tx
**/
@@ -1304,6 +1426,10 @@ declare module '@polkadot/api-base/types/submittable' {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
vesting: {
/**
* See [`Pallet::force_remove_vesting_schedule`].
**/
forceRemoveVestingSchedule: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, scheduleIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32]>;
/**
* See [`Pallet::force_vested_transfer`].
**/
@@ -1370,10 +1496,14 @@ declare module '@polkadot/api-base/types/submittable' {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
xcmPallet: {
/**
* See [`Pallet::claim_assets`].
**/
claimAssets: AugmentedSubmittable<(assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedAssets, XcmVersionedLocation]>;
/**
* See [`Pallet::execute`].
**/
execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V2: any } | { V3: any } | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, SpWeightsWeightV2Weight]>;
execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, SpWeightsWeightV2Weight]>;
/**
* See [`Pallet::force_default_xcm_version`].
**/
@@ -1381,7 +1511,7 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::force_subscribe_version_notify`].
**/
forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation]>;
/**
* See [`Pallet::force_suspension`].
**/
@@ -1389,31 +1519,35 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* See [`Pallet::force_unsubscribe_version_notify`].
**/
forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation]>;
/**
* See [`Pallet::force_xcm_version`].
**/
forceXcmVersion: AugmentedSubmittable<(location: XcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, version: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmV3MultiLocation, u32]>;
forceXcmVersion: AugmentedSubmittable<(location: StagingXcmV4Location | { parents?: any; interior?: any } | string | Uint8Array, version: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StagingXcmV4Location, u32]>;
/**
* See [`Pallet::limited_reserve_transfer_assets`].
**/
limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV3WeightLimit]>;
limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
/**
* See [`Pallet::limited_teleport_assets`].
**/
limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV3WeightLimit]>;
limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
/**
* See [`Pallet::reserve_transfer_assets`].
**/
reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;
reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32]>;
/**
* See [`Pallet::send`].
**/
send: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, message: XcmVersionedXcm | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedXcm]>;
send: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedXcm]>;
/**
* See [`Pallet::teleport_assets`].
**/
teleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;
teleportAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32]>;
/**
* See [`Pallet::transfer_assets`].
**/
transferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
/**
* Generic tx
**/
+88 -31
View File
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { Codec, ITuple } from '@polkadot/types-codec/types';
import type { Perbill, Percent, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsEnvironment, PalletContractsSchedule, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
import type { FrameSupportPalletId, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsEnvironment, PalletContractsSchedule, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
@@ -52,10 +52,6 @@ declare module '@polkadot/api-base/types/consts' {
[key: string]: Codec;
};
assetConversion: {
/**
* A setting to allow creating pools with both non-native assets.
**/
allowMultiAssetPools: bool & AugmentedConst<ApiType>;
/**
* A fee to withdraw the liquidity.
**/
@@ -80,6 +76,10 @@ declare module '@polkadot/api-base/types/consts' {
* A one-time fee to setup the pool.
**/
poolSetupFee: u128 & AugmentedConst<ApiType>;
/**
* Asset class from [`Config::Assets`] used to pay the [`Config::PoolSetupFee`].
**/
poolSetupFeeAsset: FrameSupportTokensFungibleUnionOfNativeOrWithId & AugmentedConst<ApiType>;
/**
* Generic const
**/
@@ -167,17 +167,17 @@ declare module '@polkadot/api-base/types/consts' {
* The maximum number of individual freeze locks that can exist on an account at any time.
**/
maxFreezes: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of holds that can exist on an account at any time.
**/
maxHolds: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of locks that should exist on an account.
* Not strictly enforced, but used for weight estimation.
*
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
**/
maxLocks: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of named reserves that can exist on an account.
*
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
**/
maxReserves: u32 & AugmentedConst<ApiType>;
/**
@@ -185,6 +185,29 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
beefy: {
/**
* The maximum number of authorities that can be added.
**/
maxAuthorities: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of nominators for each validator.
**/
maxNominators: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of entries to keep in the set id to session index mapping.
*
* Since the `SetIdSession` map is only used for validating equivocations this
* value should relate to the bonding duration of whatever staking system is
* being used (if any). If equivocation handling is not enabled then this value
* can be zero.
**/
maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
bounties: {
/**
* The amount held on deposit for placing a bounty proposal.
@@ -269,9 +292,15 @@ declare module '@polkadot/api-base/types/consts' {
[key: string]: Codec;
};
contracts: {
/**
* The version of the HostFn APIs that are available in the runtime.
*
* Only valid value is `()`.
**/
apiVersion: u16 & AugmentedConst<ApiType>;
/**
* The percentage of the storage deposit that should be held for using a code hash.
* Instantiating a contract, or calling [`chain_extension::Ext::add_delegate_dependency`]
* Instantiating a contract, or calling [`chain_extension::Ext::lock_delegate_dependency`]
* protects the code from being removed. In order to prevent abuse these actions are
* protected with a percentage of the code deposit.
**/
@@ -317,7 +346,7 @@ declare module '@polkadot/api-base/types/consts' {
maxDebugBufferLen: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of delegate_dependencies that a contract can lock with
* [`chain_extension::Ext::add_delegate_dependency`].
* [`chain_extension::Ext::lock_delegate_dependency`].
**/
maxDelegateDependencies: u32 & AugmentedConst<ApiType>;
/**
@@ -457,11 +486,6 @@ declare module '@polkadot/api-base/types/consts' {
* "better" in the Signed phase.
**/
betterSignedThreshold: Perbill & AugmentedConst<ApiType>;
/**
* The minimum amount of improvement to the solution score that defines a solution as
* "better" in the Unsigned phase.
**/
betterUnsignedThreshold: Perbill & AugmentedConst<ApiType>;
/**
* The maximum number of winners that can be elected by this `ElectionProvider`
* implementation.
@@ -514,18 +538,10 @@ declare module '@polkadot/api-base/types/consts' {
* this value.
**/
signedMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
/**
* Duration of the signed phase.
**/
signedPhase: u32 & AugmentedConst<ApiType>;
/**
* Base reward for a signed solution
**/
signedRewardBase: u128 & AugmentedConst<ApiType>;
/**
* Duration of the unsigned phase.
**/
unsignedPhase: u32 & AugmentedConst<ApiType>;
/**
* Generic const
**/
@@ -631,7 +647,7 @@ declare module '@polkadot/api-base/types/consts' {
};
identity: {
/**
* The amount held on deposit for a registered identity
* The amount held on deposit for a registered identity.
**/
basicDeposit: u128 & AugmentedConst<ApiType>;
/**
@@ -639,7 +655,7 @@ declare module '@polkadot/api-base/types/consts' {
**/
byteDeposit: u128 & AugmentedConst<ApiType>;
/**
* Maxmimum number of registrars allowed in the system. Needed to bound the complexity
* Maximum number of registrars allowed in the system. Needed to bound the complexity
* of, e.g., updating judgements.
**/
maxRegistrars: u32 & AugmentedConst<ApiType>;
@@ -647,6 +663,18 @@ declare module '@polkadot/api-base/types/consts' {
* The maximum number of sub-accounts allowed per identified account.
**/
maxSubAccounts: u32 & AugmentedConst<ApiType>;
/**
* The maximum length of a suffix.
**/
maxSuffixLength: u32 & AugmentedConst<ApiType>;
/**
* The maximum length of a username, including its suffix and any system-added delimiters.
**/
maxUsernameLength: u32 & AugmentedConst<ApiType>;
/**
* The number of blocks within which a username grant must be accepted.
**/
pendingUsernameExpiration: u32 & AugmentedConst<ApiType>;
/**
* The amount held on deposit for a registered subaccount. This should account for the fact
* that one storage item's value will increase by the size of an account ID, and there will
@@ -710,6 +738,14 @@ declare module '@polkadot/api-base/types/consts' {
* size is slightly lower than this as defined by [`MaxMessageLenOf`].
**/
heapSize: u32 & AugmentedConst<ApiType>;
/**
* The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
* should be provided to the message queue for servicing enqueued items `on_idle`.
* Useful for parachains to process messages at the same block they are received.
*
* If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
**/
idleMaxServiceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
/**
* The maximum number of stale pages (i.e. of overweight messages) allowed before culling
* can happen. Once there are more stale pages than this, then historical pages may be
@@ -718,10 +754,11 @@ declare module '@polkadot/api-base/types/consts' {
maxStale: u32 & AugmentedConst<ApiType>;
/**
* The amount of weight (if any) which should be provided to the message queue for
* servicing enqueued items.
* servicing enqueued items `on_initialize`.
*
* This may be legitimately `None` in the case that you will call
* `ServiceQueues::service_queues` manually.
* `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
* it run in `on_idle`.
**/
serviceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
/**
@@ -781,6 +818,26 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
multiBlockMigrations: {
/**
* The maximal length of an encoded cursor.
*
* A good default needs to selected such that no migration will ever have a cursor with MEL
* above this limit. This is statically checked in `integrity_test`.
**/
cursorMaxLen: u32 & AugmentedConst<ApiType>;
/**
* The maximal length of an encoded identifier.
*
* A good default needs to selected such that no migration will ever have an identifier
* with MEL above this limit. This is statically checked in `integrity_test`.
**/
identifierMaxLen: u32 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
multisig: {
/**
* The base amount of currency needed to reserve for creating a multisig execution or to
@@ -1418,7 +1475,7 @@ declare module '@polkadot/api-base/types/consts' {
* - [`frame_support::storage::StorageDoubleMap`]: 96 byte
*
* For more info see
* <https://www.shawntabrizi.com/substrate/querying-substrate-storage-via-rpc/>
* <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
**/
maxKeyLen: u32 & AugmentedConst<ApiType>;
/**
@@ -1452,7 +1509,7 @@ declare module '@polkadot/api-base/types/consts' {
**/
ss58Prefix: u16 & AugmentedConst<ApiType>;
/**
* Get the chain's current version.
* Get the chain's in-code version.
**/
version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
/**
@@ -1509,7 +1566,7 @@ declare module '@polkadot/api-base/types/consts' {
**/
tipFindersFee: Percent & AugmentedConst<ApiType>;
/**
* The amount held on deposit for placing a tip report.
* The non-zero amount held on deposit for placing a tip report.
**/
tipReportDepositBase: u128 & AugmentedConst<ApiType>;
/**
+121 -35
View File
@@ -196,27 +196,21 @@ declare module '@polkadot/api-base/types/errors' {
**/
AssetTwoWithdrawalDidNotMeetMinimum: AugmentedError<ApiType>;
/**
* Unable to find an element in an array/vec that should have one-to-one correspondence
* with another. For example, an array of assets constituting a `path` should have a
* corresponding array of `amounts` along the path.
* The destination account cannot exist with the swapped funds.
**/
CorrespondenceError: AugmentedError<ApiType>;
/**
* Provided assets are equal.
**/
EqualAssets: AugmentedError<ApiType>;
BelowMinimum: AugmentedError<ApiType>;
/**
* It was not possible to get or increment the Id of the pool.
**/
IncorrectPoolAssetId: AugmentedError<ApiType>;
/**
* Insufficient liquidity in the pool.
**/
InsufficientLiquidity: AugmentedError<ApiType>;
/**
* Insufficient liquidity minted.
**/
InsufficientLiquidityMinted: AugmentedError<ApiType>;
/**
* Provided asset pair is not supported for pool.
**/
InvalidAssetPair: AugmentedError<ApiType>;
/**
* The provided path must consists of 2 assets at least.
**/
@@ -233,18 +227,10 @@ declare module '@polkadot/api-base/types/errors' {
* An overflow happened.
**/
Overflow: AugmentedError<ApiType>;
/**
* It was not possible to calculate path data.
**/
PathError: AugmentedError<ApiType>;
/**
* Pool already exists.
**/
PoolExists: AugmentedError<ApiType>;
/**
* Only pools with native on one side are valid.
**/
PoolMustContainNativeCurrency: AugmentedError<ApiType>;
/**
* The pool doesn't exist.
**/
@@ -262,10 +248,6 @@ declare module '@polkadot/api-base/types/errors' {
* minimal amount.
**/
ReserveLeftLessThanMinimal: AugmentedError<ApiType>;
/**
* Provided asset is not supported for pool.
**/
UnsupportedAsset: AugmentedError<ApiType>;
/**
* Desired amount can't be zero.
**/
@@ -288,6 +270,10 @@ declare module '@polkadot/api-base/types/errors' {
* The given asset ID already has an assigned conversion rate and cannot be re-created.
**/
AlreadyExists: AugmentedError<ApiType>;
/**
* Overflow ocurred when calculating the inverse rate.
**/
Overflow: AugmentedError<ApiType>;
/**
* The given asset ID is unknown.
**/
@@ -413,6 +399,10 @@ declare module '@polkadot/api-base/types/errors' {
* Beneficiary account must pre-exist.
**/
DeadAccount: AugmentedError<ApiType>;
/**
* The delta cannot be zero.
**/
DeltaZero: AugmentedError<ApiType>;
/**
* Value too low to create account due to existential deposit.
**/
@@ -429,6 +419,10 @@ declare module '@polkadot/api-base/types/errors' {
* Balance too low to send value.
**/
InsufficientBalance: AugmentedError<ApiType>;
/**
* The issuance cannot be modified since it is already deactivated.
**/
IssuanceDeactivated: AugmentedError<ApiType>;
/**
* Account liquidity restrictions prevent withdrawal.
**/
@@ -438,7 +432,7 @@ declare module '@polkadot/api-base/types/errors' {
**/
TooManyFreezes: AugmentedError<ApiType>;
/**
* Number of holds exceed `MaxHolds`.
* Number of holds exceed `VariantCountOf<T::RuntimeHoldReason>`.
**/
TooManyHolds: AugmentedError<ApiType>;
/**
@@ -454,6 +448,28 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError<ApiType>;
};
beefy: {
/**
* A given equivocation report is valid but already previously reported.
**/
DuplicateOffenceReport: AugmentedError<ApiType>;
/**
* Submitted configuration is invalid.
**/
InvalidConfiguration: AugmentedError<ApiType>;
/**
* An equivocation proof provided as part of an equivocation report is invalid.
**/
InvalidEquivocationProof: AugmentedError<ApiType>;
/**
* A key ownership proof provided as part of an equivocation report is invalid.
**/
InvalidKeyOwnershipProof: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
bounties: {
/**
* The bounty cannot be closed because it has active child bounties.
@@ -709,7 +725,7 @@ declare module '@polkadot/api-base/types/errors' {
**/
DuplicateContract: AugmentedError<ApiType>;
/**
* An indetermistic code was used in a context where this is not permitted.
* An indeterministic code was used in a context where this is not permitted.
**/
Indeterministic: AugmentedError<ApiType>;
/**
@@ -818,7 +834,7 @@ declare module '@polkadot/api-base/types/errors' {
AlreadyDelegating: AugmentedError<ApiType>;
/**
* The account currently has votes attached to it and the operation cannot succeed until
* these are removed, either through `unvote` or `reap_vote`.
* these are removed through `remove_vote`.
**/
AlreadyVoting: AugmentedError<ApiType>;
/**
@@ -1088,6 +1104,10 @@ declare module '@polkadot/api-base/types/errors' {
* OCW submitted solution for wrong round
**/
OcwCallWrongEra: AugmentedError<ApiType>;
/**
* Submission was prepared for a different round.
**/
PreDispatchDifferentRound: AugmentedError<ApiType>;
/**
* Submission was too early.
**/
@@ -1304,10 +1324,22 @@ declare module '@polkadot/api-base/types/errors' {
* Invalid judgement.
**/
InvalidJudgement: AugmentedError<ApiType>;
/**
* The signature on a username was not valid.
**/
InvalidSignature: AugmentedError<ApiType>;
/**
* The provided suffix is too long.
**/
InvalidSuffix: AugmentedError<ApiType>;
/**
* The target is invalid.
**/
InvalidTarget: AugmentedError<ApiType>;
/**
* The username does not meet the requirements.
**/
InvalidUsername: AugmentedError<ApiType>;
/**
* The provided judgement was for a different identity.
**/
@@ -1320,10 +1352,18 @@ declare module '@polkadot/api-base/types/errors' {
* Error that occurs when there is an issue paying for judgement.
**/
JudgementPaymentFailed: AugmentedError<ApiType>;
/**
* The authority cannot allocate any more usernames.
**/
NoAllocation: AugmentedError<ApiType>;
/**
* No identity found.
**/
NoIdentity: AugmentedError<ApiType>;
/**
* The username cannot be forcefully removed because it can still be accepted.
**/
NotExpired: AugmentedError<ApiType>;
/**
* Account isn't found.
**/
@@ -1340,6 +1380,18 @@ declare module '@polkadot/api-base/types/errors' {
* Sender is not a sub-account.
**/
NotSub: AugmentedError<ApiType>;
/**
* The sender does not have permission to issue a username.
**/
NotUsernameAuthority: AugmentedError<ApiType>;
/**
* The requested username does not exist.
**/
NoUsername: AugmentedError<ApiType>;
/**
* Setting this username requires a signature, but none was provided.
**/
RequiresSignature: AugmentedError<ApiType>;
/**
* Sticky judgement.
**/
@@ -1352,6 +1404,10 @@ declare module '@polkadot/api-base/types/errors' {
* Too many subs-accounts.
**/
TooManySubAccounts: AugmentedError<ApiType>;
/**
* The username is already taken.
**/
UsernameTaken: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -1479,6 +1535,16 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError<ApiType>;
};
multiBlockMigrations: {
/**
* The operation cannot complete since some MBMs are ongoing.
**/
Ongoing: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
multisig: {
/**
* Call is already approved by this signatory.
@@ -1780,7 +1846,7 @@ declare module '@polkadot/api-base/types/errors' {
**/
DurationTooSmall: AugmentedError<ApiType>;
/**
* The operation would result in a receipt worth an insignficant value.
* The operation would result in a receipt worth an insignificant value.
**/
MakesDust: AugmentedError<ApiType>;
/**
@@ -2160,6 +2226,10 @@ declare module '@polkadot/api-base/types/errors' {
* The member's rank is too low to vote.
**/
RankTooLow: AugmentedError<ApiType>;
/**
* The new member to exchange is the same as the old member
**/
SameMember: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -2210,6 +2280,10 @@ declare module '@polkadot/api-base/types/errors' {
* The preimage does not exist.
**/
PreimageNotExist: AugmentedError<ApiType>;
/**
* The preimage is stored with a different length than the one provided.
**/
PreimageStoredWithDifferentLength: AugmentedError<ApiType>;
/**
* The queue of the track is empty.
**/
@@ -2338,6 +2412,10 @@ declare module '@polkadot/api-base/types/errors' {
* The preimage does not exist.
**/
PreimageNotExist: AugmentedError<ApiType>;
/**
* The preimage is stored with a different length than the one provided.
**/
PreimageStoredWithDifferentLength: AugmentedError<ApiType>;
/**
* The queue of the track is empty.
**/
@@ -2673,6 +2751,10 @@ declare module '@polkadot/api-base/types/errors' {
* The user has enough bond and thus cannot be chilled forcefully by an external person.
**/
CannotChillOther: AugmentedError<ApiType>;
/**
* Cannot reset a ledger.
**/
CannotRestoreLedger: AugmentedError<ApiType>;
/**
* Commission is too low. Must be at least `MinCommission`.
**/
@@ -2813,10 +2895,6 @@ declare module '@polkadot/api-base/types/errors' {
* The origin filter prevent the call to be dispatched.
**/
CallFiltered: AugmentedError<ApiType>;
/**
* The specified [`Task`] failed during execution.
**/
FailedTask: AugmentedError<ApiType>;
/**
* Failed to extract the runtime version from the new runtime.
*
@@ -2829,9 +2907,9 @@ declare module '@polkadot/api-base/types/errors' {
**/
InvalidSpecName: AugmentedError<ApiType>;
/**
* The specified [`Task`] is not valid.
* A multi-block migration is ongoing and prevents the current code from being replaced.
**/
InvalidTask: AugmentedError<ApiType>;
MultiBlockMigrationsOngoing: AugmentedError<ApiType>;
/**
* Suicide called when the account has non-default composite data.
**/
@@ -2840,11 +2918,19 @@ declare module '@polkadot/api-base/types/errors' {
* There is a non-zero reference count preventing the account from being purged.
**/
NonZeroRefCount: AugmentedError<ApiType>;
/**
* No upgrade authorized.
**/
NothingAuthorized: AugmentedError<ApiType>;
/**
* The specification version is not allowed to decrease between the current runtime
* and the new runtime.
**/
SpecVersionNeedsToIncrease: AugmentedError<ApiType>;
/**
* The submitted code is not authorized.
**/
Unauthorized: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -2984,7 +3070,7 @@ declare module '@polkadot/api-base/types/errors' {
**/
MissingProof: AugmentedError<ApiType>;
/**
* Unable to verify proof becasue state data is missing.
* Unable to verify proof because state data is missing.
**/
MissingStateData: AugmentedError<ApiType>;
/**
+135 -23
View File
@@ -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 { ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, H256, Perbill, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeTask, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletAssetConversionNativeOrAssetId, PalletBrokerCoretimeInterfaceCoreAssignment, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsOrigin, PalletConvictionVotingTally, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSafeModeExitReason, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpStakingExposure, SpStatementStoreStatement, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletBrokerCoretimeInterfaceCoreAssignment, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsOrigin, PalletConvictionVotingTally, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSafeModeExitReason, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpStakingExposure, SpStatementStoreStatement, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
@@ -113,24 +113,24 @@ declare module '@polkadot/api-base/types/events' {
/**
* A successful call of the `AddLiquidity` extrinsic will create this event.
**/
LiquidityAdded: AugmentedEvent<ApiType, [who: AccountId32, mintTo: AccountId32, poolId: ITuple<[PalletAssetConversionNativeOrAssetId, PalletAssetConversionNativeOrAssetId]>, amount1Provided: u128, amount2Provided: u128, lpToken: u32, lpTokenMinted: u128], { who: AccountId32, mintTo: AccountId32, poolId: ITuple<[PalletAssetConversionNativeOrAssetId, PalletAssetConversionNativeOrAssetId]>, amount1Provided: u128, amount2Provided: u128, lpToken: u32, lpTokenMinted: u128 }>;
LiquidityAdded: AugmentedEvent<ApiType, [who: AccountId32, mintTo: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, amount1Provided: u128, amount2Provided: u128, lpToken: u32, lpTokenMinted: u128], { who: AccountId32, mintTo: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, amount1Provided: u128, amount2Provided: u128, lpToken: u32, lpTokenMinted: u128 }>;
/**
* A successful call of the `RemoveLiquidity` extrinsic will create this event.
**/
LiquidityRemoved: AugmentedEvent<ApiType, [who: AccountId32, withdrawTo: AccountId32, poolId: ITuple<[PalletAssetConversionNativeOrAssetId, PalletAssetConversionNativeOrAssetId]>, amount1: u128, amount2: u128, lpToken: u32, lpTokenBurned: u128, withdrawalFee: Permill], { who: AccountId32, withdrawTo: AccountId32, poolId: ITuple<[PalletAssetConversionNativeOrAssetId, PalletAssetConversionNativeOrAssetId]>, amount1: u128, amount2: u128, lpToken: u32, lpTokenBurned: u128, withdrawalFee: Permill }>;
LiquidityRemoved: AugmentedEvent<ApiType, [who: AccountId32, withdrawTo: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, amount1: u128, amount2: u128, lpToken: u32, lpTokenBurned: u128, withdrawalFee: Permill], { who: AccountId32, withdrawTo: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, amount1: u128, amount2: u128, lpToken: u32, lpTokenBurned: u128, withdrawalFee: Permill }>;
/**
* A successful call of the `CretaPool` extrinsic will create this event.
* A successful call of the `CreatePool` extrinsic will create this event.
**/
PoolCreated: AugmentedEvent<ApiType, [creator: AccountId32, poolId: ITuple<[PalletAssetConversionNativeOrAssetId, PalletAssetConversionNativeOrAssetId]>, poolAccount: AccountId32, lpToken: u32], { creator: AccountId32, poolId: ITuple<[PalletAssetConversionNativeOrAssetId, PalletAssetConversionNativeOrAssetId]>, poolAccount: AccountId32, lpToken: u32 }>;
PoolCreated: AugmentedEvent<ApiType, [creator: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, poolAccount: AccountId32, lpToken: u32], { creator: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, poolAccount: AccountId32, lpToken: u32 }>;
/**
* Assets have been converted from one to another.
**/
SwapCreditExecuted: AugmentedEvent<ApiType, [amountIn: u128, amountOut: u128, path: Vec<ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, u128]>>], { amountIn: u128, amountOut: u128, path: Vec<ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, u128]>> }>;
/**
* Assets have been converted from one to another. Both `SwapExactTokenForToken`
* and `SwapTokenForExactToken` will generate this event.
**/
SwapExecuted: AugmentedEvent<ApiType, [who: AccountId32, sendTo: AccountId32, path: Vec<PalletAssetConversionNativeOrAssetId>, amountIn: u128, amountOut: u128], { who: AccountId32, sendTo: AccountId32, path: Vec<PalletAssetConversionNativeOrAssetId>, amountIn: u128, amountOut: u128 }>;
/**
* An amount has been transferred from one account to another.
**/
Transfer: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, asset: PalletAssetConversionNativeOrAssetId, amount: u128], { from: AccountId32, to: AccountId32, asset: PalletAssetConversionNativeOrAssetId, amount: u128 }>;
SwapExecuted: AugmentedEvent<ApiType, [who: AccountId32, sendTo: AccountId32, amountIn: u128, amountOut: u128, path: Vec<ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, u128]>>], { who: AccountId32, sendTo: AccountId32, amountIn: u128, amountOut: u128, path: Vec<ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, u128]>> }>;
/**
* Generic event
**/
@@ -341,6 +341,10 @@ declare module '@polkadot/api-base/types/events' {
* Some balance was thawed.
**/
Thawed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
/**
* The `TotalIssuance` was forcefully changed.
**/
TotalIssuanceForced: AugmentedEvent<ApiType, [old: u128, new_: u128], { old: u128, new_: u128 }>;
/**
* Transfer succeeded.
**/
@@ -677,6 +681,10 @@ declare module '@polkadot/api-base/types/events' {
* Member has stated evidence of their efforts their request for rank.
**/
Requested: AugmentedEvent<ApiType, [who: AccountId32, wish: PalletCoreFellowshipWish], { who: AccountId32, wish: PalletCoreFellowshipWish }>;
/**
* A member had its AccountId swapped.
**/
Swapped: AugmentedEvent<ApiType, [who: AccountId32, newWho: AccountId32], { who: AccountId32, newWho: AccountId32 }>;
/**
* Generic event
**/
@@ -764,7 +772,7 @@ declare module '@polkadot/api-base/types/events' {
**/
Proposed: AugmentedEvent<ApiType, [proposalIndex: u32, deposit: u128], { proposalIndex: u32, deposit: u128 }>;
/**
* An account has secconded a proposal
* An account has seconded a proposal
**/
Seconded: AugmentedEvent<ApiType, [seconder: AccountId32, propIndex: u32], { seconder: AccountId32, propIndex: u32 }>;
/**
@@ -819,7 +827,7 @@ declare module '@polkadot/api-base/types/events' {
* A solution was stored with the given compute.
*
* The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,
* the stored solution was submited in the signed phase by a miner with the `AccountId`.
* the stored solution was submitted in the signed phase by a miner with the `AccountId`.
* Otherwise, the solution was stored either during the unsigned phase or by
* `T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make
* room for this one.
@@ -939,6 +947,19 @@ declare module '@polkadot/api-base/types/events' {
[key: string]: AugmentedEvent<ApiType>;
};
identity: {
/**
* A username authority was added.
**/
AuthorityAdded: AugmentedEvent<ApiType, [authority: AccountId32], { authority: AccountId32 }>;
/**
* A username authority was removed.
**/
AuthorityRemoved: AugmentedEvent<ApiType, [authority: AccountId32], { authority: AccountId32 }>;
/**
* A dangling username (as in, a username corresponding to an account that has removed its
* identity) has been removed.
**/
DanglingUsernameRemoved: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], { who: AccountId32, username: Bytes }>;
/**
* A name was cleared, and the given balance returned.
**/
@@ -963,6 +984,14 @@ declare module '@polkadot/api-base/types/events' {
* A judgement request was retracted.
**/
JudgementUnrequested: AugmentedEvent<ApiType, [who: AccountId32, registrarIndex: u32], { who: AccountId32, registrarIndex: u32 }>;
/**
* A queued username passed its expiration without being claimed and was removed.
**/
PreapprovalExpired: AugmentedEvent<ApiType, [whose: AccountId32], { whose: AccountId32 }>;
/**
* A username was set as a primary and can be looked up from `who`.
**/
PrimaryUsernameSet: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], { who: AccountId32, username: Bytes }>;
/**
* A registrar was added.
**/
@@ -980,6 +1009,14 @@ declare module '@polkadot/api-base/types/events' {
* main identity account to the sub-identity account.
**/
SubIdentityRevoked: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], { sub: AccountId32, main: AccountId32, deposit: u128 }>;
/**
* A username was queued, but `who` must accept it prior to `expiration`.
**/
UsernameQueued: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes, expiration: u32], { who: AccountId32, username: Bytes, expiration: u32 }>;
/**
* A username was set for `who`.
**/
UsernameSet: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], { who: AccountId32, username: Bytes }>;
/**
* Generic event
**/
@@ -1065,6 +1102,52 @@ declare module '@polkadot/api-base/types/events' {
**/
[key: string]: AugmentedEvent<ApiType>;
};
multiBlockMigrations: {
/**
* The set of historical migrations has been cleared.
**/
HistoricCleared: AugmentedEvent<ApiType, [nextCursor: Option<Bytes>], { nextCursor: Option<Bytes> }>;
/**
* A migration progressed.
**/
MigrationAdvanced: AugmentedEvent<ApiType, [index: u32, took: u32], { index: u32, took: u32 }>;
/**
* A Migration completed.
**/
MigrationCompleted: AugmentedEvent<ApiType, [index: u32, took: u32], { index: u32, took: u32 }>;
/**
* A Migration failed.
*
* This implies that the whole upgrade failed and governance intervention is required.
**/
MigrationFailed: AugmentedEvent<ApiType, [index: u32, took: u32], { index: u32, took: u32 }>;
/**
* A migration was skipped since it was already executed in the past.
**/
MigrationSkipped: AugmentedEvent<ApiType, [index: u32], { index: u32 }>;
/**
* The current runtime upgrade completed.
*
* This implies that all of its migrations completed successfully as well.
**/
UpgradeCompleted: AugmentedEvent<ApiType, []>;
/**
* Runtime upgrade failed.
*
* This is very bad and will require governance intervention.
**/
UpgradeFailed: AugmentedEvent<ApiType, []>;
/**
* A Runtime upgrade started.
*
* Its end is indicated by `UpgradeCompleted` or `UpgradeFailed`.
**/
UpgradeStarted: AugmentedEvent<ApiType, [migrations: u32], { migrations: u32 }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
multisig: {
/**
* A multisig operation has been approved by someone.
@@ -1288,7 +1371,7 @@ declare module '@polkadot/api-base/types/events' {
**/
Thawed: AugmentedEvent<ApiType, [index: u32, who: AccountId32, proportion: Perquintill, amount: u128, dropped: bool], { index: u32, who: AccountId32, proportion: Perquintill, amount: u128, dropped: bool }>;
/**
* A receipt was transfered.
* A receipt was transferred.
**/
Transferred: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, index: u32], { from: AccountId32, to: AccountId32, index: u32 }>;
/**
@@ -1404,6 +1487,18 @@ declare module '@polkadot/api-base/types/events' {
**/
[key: string]: AugmentedEvent<ApiType>;
};
parameters: {
/**
* A Parameter was set.
*
* Is also emitted when the value was not changed.
**/
Updated: AugmentedEvent<ApiType, [key: KitchensinkRuntimeRuntimeParametersKey, oldValue: Option<KitchensinkRuntimeRuntimeParametersValue>, newValue: Option<KitchensinkRuntimeRuntimeParametersValue>], { key: KitchensinkRuntimeRuntimeParametersKey, oldValue: Option<KitchensinkRuntimeRuntimeParametersValue>, newValue: Option<KitchensinkRuntimeRuntimeParametersValue> }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
poolAssets: {
/**
* Accounts were destroyed for given asset.
@@ -1564,6 +1659,10 @@ declare module '@polkadot/api-base/types/events' {
* A member `who` has been added.
**/
MemberAdded: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
/**
* The member `who` had their `AccountId` changed to `new_who`.
**/
MemberExchanged: AugmentedEvent<ApiType, [who: AccountId32, newWho: AccountId32], { who: AccountId32, newWho: AccountId32 }>;
/**
* The member `who` of given `rank` has been removed from the collective.
**/
@@ -1819,6 +1918,10 @@ declare module '@polkadot/api-base/types/events' {
* A member registered for a payout.
**/
Registered: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
/**
* A member swapped their account.
**/
Swapped: AugmentedEvent<ApiType, [who: AccountId32, newWho: AccountId32], { who: AccountId32, newWho: AccountId32 }>;
/**
* Generic event
**/
@@ -1845,6 +1948,19 @@ declare module '@polkadot/api-base/types/events' {
* The given task can never be executed since it is overweight.
**/
PermanentlyOverweight: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed> }>;
/**
* Cancel a retry configuration for some task.
**/
RetryCancelled: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed> }>;
/**
* The given task was unable to be retried since the agenda is full at that block or there
* was not enough weight to reschedule it.
**/
RetryFailed: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed> }>;
/**
* Set a retry configuration for some task.
**/
RetrySet: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>, period: u32, retries: u8], { task: ITuple<[u32, u32]>, id: Option<U8aFixed>, period: u32, retries: u8 }>;
/**
* Scheduled some task.
**/
@@ -1964,6 +2080,10 @@ declare module '@polkadot/api-base/types/events' {
* An account has stopped participating as either a validator or nominator.
**/
Chilled: AugmentedEvent<ApiType, [stash: AccountId32], { stash: AccountId32 }>;
/**
* Report of a controller batch deprecation.
**/
ControllerBatchDeprecated: AugmentedEvent<ApiType, [failures: u32], { failures: u32 }>;
/**
* The era payout has been set; the first balance is the validator-payout; the second is
* the remainder from the maximum amount of reward.
@@ -2114,17 +2234,9 @@ declare module '@polkadot/api-base/types/events' {
**/
Remarked: AugmentedEvent<ApiType, [sender: AccountId32, hash_: H256], { sender: AccountId32, hash_: H256 }>;
/**
* A [`Task`] has finished executing.
* An upgrade was authorized.
**/
TaskCompleted: AugmentedEvent<ApiType, [task: KitchensinkRuntimeRuntimeTask], { task: KitchensinkRuntimeRuntimeTask }>;
/**
* A [`Task`] failed during execution.
**/
TaskFailed: AugmentedEvent<ApiType, [task: KitchensinkRuntimeRuntimeTask, err: SpRuntimeDispatchError], { task: KitchensinkRuntimeRuntimeTask, err: SpRuntimeDispatchError }>;
/**
* A [`Task`] has started executing
**/
TaskStarted: AugmentedEvent<ApiType, [task: KitchensinkRuntimeRuntimeTask], { task: KitchensinkRuntimeRuntimeTask }>;
UpgradeAuthorized: AugmentedEvent<ApiType, [codeHash: H256, checkVersion: bool], { codeHash: H256, checkVersion: bool }>;
/**
* Generic event
**/
+158 -11
View File
@@ -10,7 +10,7 @@ import type { Data } from '@polkadot/types';
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionNativeOrAssetId, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesIdAmountRuntimeHoldReason, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerAllowedRenewalId, PalletBrokerAllowedRenewalRecord, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerPoolIoRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesIdAmountRuntimeHoldReason, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerAllowedRenewalId, PalletBrokerAllowedRenewalRecord, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerPoolIoRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMigrationsMigrationCursor, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
import type { Observable } from '@polkadot/types/types';
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
@@ -61,7 +61,7 @@ declare module '@polkadot/api-base/types/storage' {
**/
members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The prime member that helps determine the default vote behavior in case of absentations.
* The prime member that helps determine the default vote behavior in case of abstentions.
**/
prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
@@ -95,7 +95,7 @@ declare module '@polkadot/api-base/types/storage' {
* Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially
* created rather than people sending tokens directly to a pool's public account.
**/
pools: AugmentedQuery<ApiType, (arg: ITuple<[PalletAssetConversionNativeOrAssetId, PalletAssetConversionNativeOrAssetId]> | [PalletAssetConversionNativeOrAssetId | { Native: any } | { Asset: any } | string | Uint8Array, PalletAssetConversionNativeOrAssetId | { Native: any } | { Asset: any } | string | Uint8Array]) => Observable<Option<PalletAssetConversionPoolInfo>>, [ITuple<[PalletAssetConversionNativeOrAssetId, PalletAssetConversionNativeOrAssetId]>]> & QueryableStorageEntry<ApiType, [ITuple<[PalletAssetConversionNativeOrAssetId, PalletAssetConversionNativeOrAssetId]>]>;
pools: AugmentedQuery<ApiType, (arg: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]> | [FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array]) => Observable<Option<PalletAssetConversionPoolInfo>>, [ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>]> & QueryableStorageEntry<ApiType, [ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>]>;
/**
* Generic query
**/
@@ -317,10 +317,14 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Any liquidity locks on some account balances.
* NOTE: Should only be accessed when setting, changing and freeing a lock.
*
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
**/
locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Named reserves on some account balances.
*
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
**/
reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
@@ -332,6 +336,43 @@ declare module '@polkadot/api-base/types/storage' {
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
beefy: {
/**
* The current authorities set
**/
authorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusBeefyEcdsaCryptoPublic>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Block number where BEEFY consensus is enabled/started.
* By changing this (through privileged `set_new_genesis()`), BEEFY consensus is effectively
* restarted from the newly set block number.
**/
genesisBlock: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Authorities set scheduled to be used with the next session
**/
nextAuthorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusBeefyEcdsaCryptoPublic>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* A mapping from BEEFY set ID to the index of the *most recent* session for which its
* members were responsible.
*
* This is only used for validating equivocation proofs. An equivocation proof must
* contains a key-ownership proof for a given session, therefore we need a way to tie
* together sessions and BEEFY set ids, i.e. we need to validate that a validator
* was the owner of a given key on a given session, and what the active set ID was
* during that session.
*
* TWOX-NOTE: `ValidatorSetId` is not under user control.
**/
setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
/**
* The current validator set id
**/
validatorSetId: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
bounties: {
/**
* Bounties that have been made.
@@ -363,6 +404,10 @@ declare module '@polkadot/api-base/types/storage' {
* The current configuration of this pallet.
**/
configuration: AugmentedQuery<ApiType, () => Observable<Option<PalletBrokerConfigRecord>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Received core count change from the relay chain.
**/
coreCountInbox: AugmentedQuery<ApiType, () => Observable<Option<u16>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Record of a single contribution to the Instantaneous Coretime Pool.
**/
@@ -538,7 +583,7 @@ declare module '@polkadot/api-base/types/storage' {
**/
members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The prime member that helps determine the default vote behavior in case of absentations.
* The prime member that helps determine the default vote behavior in case of abstentions.
**/
prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
@@ -643,6 +688,7 @@ declare module '@polkadot/api-base/types/storage' {
* Desired number of targets to elect for this round.
*
* Only exists when [`Snapshot`] is present.
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
**/
desiredTargets: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
@@ -702,12 +748,14 @@ declare module '@polkadot/api-base/types/storage' {
* Snapshot data of the round.
*
* This is created at the beginning of the signed phase and cleared upon calling `elect`.
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
**/
snapshot: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseRoundSnapshot>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The metadata of the [`RoundSnapshot`]
*
* Only exists when [`Snapshot`] is present.
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
**/
snapshotMetadata: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseSolutionOrSnapshotSize>>, []> & QueryableStorageEntry<ApiType, []>;
/**
@@ -865,13 +913,45 @@ declare module '@polkadot/api-base/types/storage' {
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
historical: {
/**
* Mapping from historical session indices to session-data root hash and validator count.
**/
historicalSessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[H256, u32]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* The range of historical sessions we store. [first, last)
**/
storedRange: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
identity: {
/**
* Information that is pertinent to identify the entity behind an account.
* Reverse lookup from `username` to the `AccountId` that has registered it. The value should
* be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
*
* Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
* primary username.
**/
accountOfUsername: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<AccountId32>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
/**
* Information that is pertinent to identify the entity behind an account. First item is the
* registration, second is the account's primary username.
*
* TWOX-NOTE: OK `AccountId` is a secure hash.
**/
identityOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityRegistration>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
identityOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[PalletIdentityRegistration, Option<Bytes>]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Usernames that an authority has granted, but that the account controller has not confirmed
* that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
* because they are a pure proxy, multisig, etc. In order to confirm it, they should call
* [`Call::accept_username`].
*
* First tuple item is the account and second is the acceptance deadline.
**/
pendingUsernames: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
/**
* The set of registrars. Not expected to get very big as can only be added through a
* special origin (likely a council motion).
@@ -892,6 +972,10 @@ declare module '@polkadot/api-base/types/storage' {
* context. If the account is not some other account's sub-identity, then just `None`.
**/
superOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, Data]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* A map of the accounts who are authorized to grant usernames.
**/
usernameAuthorities: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityAuthorityProperties>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Generic query
**/
@@ -1038,6 +1122,41 @@ declare module '@polkadot/api-base/types/storage' {
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
mmrLeaf: {
/**
* Details of current BEEFY authority set.
**/
beefyAuthorities: AugmentedQuery<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Details of next BEEFY authority set.
*
* This storage entry is used as cache for calls to `update_beefy_next_authority_set`.
**/
beefyNextAuthorities: AugmentedQuery<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
multiBlockMigrations: {
/**
* The currently active migration to run and its cursor.
*
* `None` indicates that no migration is running.
**/
cursor: AugmentedQuery<ApiType, () => Observable<Option<PalletMigrationsMigrationCursor>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Set of all successfully executed migrations.
*
* This is used as blacklist, to not re-execute migrations that have not been removed from the
* codebase yet. Governance can regularly clear this out via `clear_historic`.
**/
historic: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<Null>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
multisig: {
/**
* The set of open multisig operations.
@@ -1239,13 +1358,13 @@ declare module '@polkadot/api-base/types/storage' {
/**
* A reverse lookup from the pool's account id to its id.
*
* This is only used for slashing. In all other instances, the pool id is used, and the
* accounts are deterministically derived from it.
* This is only used for slashing and on automatic withdraw update. In all other instances, the
* pool id is used, and the accounts are deterministically derived from it.
**/
reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Reward pools. This is where there rewards for each pool accumulate. When a members payout is
* claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
* claimed, the balance comes out of the reward pool. Keyed by the bonded pools account.
**/
rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
@@ -1280,6 +1399,16 @@ declare module '@polkadot/api-base/types/storage' {
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
parameters: {
/**
* Stored parameters.
**/
parameters: AugmentedQuery<ApiType, (arg: KitchensinkRuntimeRuntimeParametersKey | { Storage: any } | { Contract: any } | string | Uint8Array) => Observable<Option<KitchensinkRuntimeRuntimeParametersValue>>, [KitchensinkRuntimeRuntimeParametersKey]> & QueryableStorageEntry<ApiType, [KitchensinkRuntimeRuntimeParametersKey]>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
poolAssets: {
/**
* The holdings of a specific account for a specific asset.
@@ -1547,6 +1676,10 @@ declare module '@polkadot/api-base/types/storage' {
* identities.
**/
lookup: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
/**
* Retry configurations for items to be executed, indexed by task address.
**/
retries: AugmentedQuery<ApiType, (arg: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<PalletSchedulerRetryConfig>>, [ITuple<[u32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[u32, u32]>]>;
/**
* Generic query
**/
@@ -1849,6 +1982,12 @@ declare module '@polkadot/api-base/types/storage' {
* When this value is not set, no limits are enforced.
**/
maxNominatorsCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Maximum staked rewards, i.e. the percentage of the era inflation that
* is used for stake rewards.
* See [Era payout](./index.html#era-payout).
**/
maxStakedRewards: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The maximum validator count before we stop allowing new validators to join.
*
@@ -1920,7 +2059,7 @@ declare module '@polkadot/api-base/types/storage' {
*
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
**/
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingRewardDestination>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingRewardDestination>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Slashing spans for stash accounts.
**/
@@ -2004,6 +2143,10 @@ declare module '@polkadot/api-base/types/storage' {
* Total length (in bytes) for all extrinsics put together, for the current block.
**/
allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* `Some` if a code upgrade has been authorized.
**/
authorizedUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemCodeUpgradeAuthorization>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Map of block numbers to block hashes.
**/
@@ -2055,6 +2198,10 @@ declare module '@polkadot/api-base/types/storage' {
* Extrinsics data for the current block (maps an extrinsic's index to its data).
**/
extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Whether all inherents have been applied.
**/
inherentsApplied: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
**/
@@ -2101,7 +2248,7 @@ declare module '@polkadot/api-base/types/storage' {
**/
members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The prime member that helps determine the default vote behavior in case of absentations.
* The prime member that helps determine the default vote behavior in case of abstentions.
**/
prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
+89 -9
View File
@@ -6,26 +6,30 @@
import '@polkadot/api-base/types/calls';
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
import type { Bytes, Null, Option, Result, Vec, bool, u128, u32 } from '@polkadot/types-codec';
import type { Bytes, Null, Option, Result, U64, Vec, bool, u128, u32 } from '@polkadot/types-codec';
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
import type { TAssetBalance } from '@polkadot/types/interfaces/assets';
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
import type { BeefyEquivocationProof, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
import type { BlockHash } from '@polkadot/types/interfaces/chain';
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
import type { CodeSource, CodeUploadResult, ContractExecResult, ContractInstantiateResult } from '@polkadot/types/interfaces/contracts';
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
import type { Mixnode, MixnodesErr, SessionStatus } from '@polkadot/types/interfaces/mixnet';
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
import type { NftCollectionId, NftItemId } from '@polkadot/types/interfaces/nfts';
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
import type { AccountId, Balance, Block, BlockNumber, Call, ExtrinsicInclusionMode, Hash, Header, Index, KeyTypeId, Slot, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
import type { StatementStoreInvalidStatement, StatementStoreStatementSource, StatementStoreValidStatement } from '@polkadot/types/interfaces/statement';
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
import type { XcmV3MultiLocation } from '@polkadot/types/lookup';
import type { SpStatementStoreStatement, StagingXcmV3MultiLocation } from '@polkadot/types/lookup';
import type { IExtrinsic, Observable } from '@polkadot/types/types';
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
@@ -49,15 +53,15 @@ declare module '@polkadot/api-base/types/calls' {
/**
* Get pool reserves
**/
getReserves: AugmentedCall<ApiType, (asset1: XcmV3MultiLocation, asset2: XcmV3MultiLocation) => Observable<Option<ITuple<[Balance, Balance]>>>>;
getReserves: AugmentedCall<ApiType, (asset1: StagingXcmV3MultiLocation, asset2: StagingXcmV3MultiLocation) => Observable<Option<ITuple<[Balance, Balance]>>>>;
/**
* Quote price: exact tokens for tokens
**/
quotePriceExactTokensForTokens: AugmentedCall<ApiType, (asset1: XcmV3MultiLocation, asset2: XcmV3MultiLocation, amount: u128 | AnyNumber | Uint8Array, include_fee: bool | boolean | Uint8Array) => Observable<Option<Balance>>>;
quotePriceExactTokensForTokens: AugmentedCall<ApiType, (asset1: StagingXcmV3MultiLocation, asset2: StagingXcmV3MultiLocation, amount: u128 | AnyNumber | Uint8Array, include_fee: bool | boolean | Uint8Array) => Observable<Option<Balance>>>;
/**
* Quote price: tokens for exact tokens
**/
quotePriceTokensForExactTokens: AugmentedCall<ApiType, (asset1: XcmV3MultiLocation, asset2: XcmV3MultiLocation, amount: u128 | AnyNumber | Uint8Array, include_fee: bool | boolean | Uint8Array) => Observable<Option<Balance>>>;
quotePriceTokensForExactTokens: AugmentedCall<ApiType, (asset1: StagingXcmV3MultiLocation, asset2: StagingXcmV3MultiLocation, amount: u128 | AnyNumber | Uint8Array, include_fee: bool | boolean | Uint8Array) => Observable<Option<Balance>>>;
/**
* Generic call
**/
@@ -116,6 +120,29 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x49eaaf1b548a0cb0/3 */
beefyApi: {
/**
* Return the block number where BEEFY consensus is enabled/started
**/
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<BlockNumber>>>;
/**
* Generates a proof of key ownership for the given authority in the given set.
**/
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: ValidatorSetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
/**
* Submits an unsigned extrinsic to report an equivocation.
**/
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BeefyEquivocationProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
/**
* Return the current active BEEFY validator set
**/
validatorSet: AugmentedCall<ApiType, () => Observable<Option<ValidatorSet>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x40fe3ad401f8959a/6 */
blockBuilder: {
/**
@@ -162,7 +189,7 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xdf6acb689907609b/4 */
/** 0xdf6acb689907609b/5 */
core: {
/**
* Execute the given block.
@@ -171,7 +198,7 @@ declare module '@polkadot/api-base/types/calls' {
/**
* Initialize a block with the given header.
**/
initializeBlock: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
initializeBlock: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<ExtrinsicInclusionMode>>;
/**
* Returns the version of the runtime.
**/
@@ -181,6 +208,21 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xfbc577b9d747efd6/1 */
genesisBuilder: {
/**
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
**/
buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
/**
* Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
**/
createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xed99c5acb25eedf5/3 */
grandpaApi: {
/**
@@ -223,16 +265,43 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x6fd7c327202e4a8d/1 */
mixnetApi: {
/**
* Get the index and phase of the current session.
**/
currentMixnodes: AugmentedCall<ApiType, () => Observable<Result<Mixnode, MixnodesErr>>>;
/**
* Try to register a mixnode for the next session.
**/
maybeRegister: AugmentedCall<ApiType, (session_index: u32 | AnyNumber | Uint8Array, mixnode: Mixnode | { externalAddresses?: any; kxPublic?: any; peerId?: any } | string | Uint8Array) => Observable<bool>>;
/**
* Get the index and phase of the current session.
**/
prevMixnodes: AugmentedCall<ApiType, () => Observable<Result<Mixnode, MixnodesErr>>>;
/**
* Get the index and phase of the current session.
**/
sessionStatus: AugmentedCall<ApiType, () => Observable<SessionStatus>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x91d5df18b0d2cf58/2 */
mmrApi: {
/**
* Generate MMR proof for the given block numbers.
**/
generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
/**
* Return the number of MMR blocks in the chain.
**/
mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<U64, MmrError>>>;
/**
* Return the on-chain MMR root hash.
**/
root: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
/**
* Verify MMR proof against on-chain MMR.
**/
@@ -390,5 +459,16 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xbe9fb0c91a8046cf/1 */
validateStatement: {
/**
* Validate the statement.
**/
valdateStatement: AugmentedCall<ApiType, (source: StatementStoreStatementSource | 'Chain' | 'Network' | 'Local' | number | Uint8Array, statement: SpStatementStoreStatement | { proof?: any; decryptionKey?: any; channel?: any; priority?: any; numTopics?: any; topics?: any; data?: any } | string | Uint8Array) => Observable<Result<StatementStoreValidStatement, StatementStoreInvalidStatement>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
} // AugmentedCalls
} // declare module
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -18,11 +18,11 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "10.12.1",
"version": "10.13.1",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "10.12.1",
"@polkadot/types": "10.12.1",
"@polkadot/rpc-core": "10.13.1",
"@polkadot/types": "10.13.1",
"@polkadot/util": "^12.6.2",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '10.12.1' };
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '10.13.1' };
+8 -8
View File
@@ -18,22 +18,22 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "10.12.1",
"version": "10.13.1",
"main": "index.js",
"dependencies": {
"@polkadot/api": "10.12.1",
"@polkadot/api-augment": "10.12.1",
"@polkadot/types": "10.12.1",
"@polkadot/types-codec": "10.12.1",
"@polkadot/types-create": "10.12.1",
"@polkadot/api": "10.13.1",
"@polkadot/api-augment": "10.13.1",
"@polkadot/types": "10.13.1",
"@polkadot/types-codec": "10.13.1",
"@polkadot/types-create": "10.13.1",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/api-augment": "10.12.1",
"@polkadot/api-augment": "10.13.1",
"@polkadot/keyring": "^12.6.2",
"@polkadot/types-support": "10.12.1"
"@polkadot/types-support": "10.13.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '10.12.1' };
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '10.13.1' };
+12 -12
View File
@@ -18,25 +18,25 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "10.12.1",
"version": "10.13.1",
"main": "index.js",
"dependencies": {
"@polkadot/api": "10.12.1",
"@polkadot/api-augment": "10.12.1",
"@polkadot/api-base": "10.12.1",
"@polkadot/rpc-core": "10.12.1",
"@polkadot/types": "10.12.1",
"@polkadot/types-codec": "10.12.1",
"@polkadot/api": "10.13.1",
"@polkadot/api-augment": "10.13.1",
"@polkadot/api-base": "10.13.1",
"@polkadot/rpc-core": "10.13.1",
"@polkadot/types": "10.13.1",
"@polkadot/types-codec": "10.13.1",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/api": "10.12.1",
"@polkadot/api-augment": "10.12.1",
"@polkadot/rpc-augment": "10.12.1",
"@polkadot/rpc-provider": "10.12.1",
"@polkadot/types-support": "10.12.1"
"@polkadot/api": "10.13.1",
"@polkadot/api-augment": "10.13.1",
"@polkadot/rpc-augment": "10.13.1",
"@polkadot/rpc-provider": "10.13.1",
"@polkadot/types-support": "10.13.1"
}
}
+18 -9
View File
@@ -2,9 +2,9 @@
// SPDX-License-Identifier: Apache-2.0
import type { Observable } from 'rxjs';
import type { Data } from '@polkadot/types';
import type { Bytes, Data } from '@polkadot/types';
import type { AccountId } from '@polkadot/types/interfaces';
import type { PalletIdentityIdentityInfo, PalletIdentityRegistration } from '@polkadot/types/lookup';
import type { PalletIdentityLegacyIdentityInfo, PalletIdentityRegistration } from '@polkadot/types/lookup';
import type { Option } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
import type { DeriveAccountRegistration, DeriveApi, DeriveHasIdentity } from '../types.js';
@@ -15,7 +15,7 @@ import { isHex, u8aToString } from '@polkadot/util';
import { firstMemo, memo } from '../util/index.js';
type IdentityInfoAdditional = PalletIdentityIdentityInfo['additional'][0];
type IdentityInfoAdditional = PalletIdentityLegacyIdentityInfo['additional'][0];
const UNDEF_HEX = { toHex: () => undefined };
@@ -40,12 +40,21 @@ function extractOther (additional: IdentityInfoAdditional[]): Record<string, str
}, {});
}
function extractIdentity (identityOfOpt?: Option<PalletIdentityRegistration>, superOf?: [AccountId, Data]): DeriveAccountRegistration {
// handle compatibility between generations of structures
function identityCompat (identityOfOpt: Option<ITuple<[PalletIdentityRegistration, Option<Bytes>]>> | Option<PalletIdentityRegistration>): PalletIdentityRegistration {
const identity = identityOfOpt.unwrap();
return Array.isArray(identity)
? identity[0]
: identity;
}
function extractIdentity (identityOfOpt?: Option<ITuple<[PalletIdentityRegistration, Option<Bytes>]>> | Option<PalletIdentityRegistration>, superOf?: [AccountId, Data]): DeriveAccountRegistration {
if (!identityOfOpt?.isSome) {
return { judgements: [] };
}
const { info, judgements } = identityOfOpt.unwrap();
const { info, judgements } = identityCompat(identityOfOpt);
const topDisplay = dataAsString(info.display);
return {
@@ -64,7 +73,7 @@ function extractIdentity (identityOfOpt?: Option<PalletIdentityRegistration>, su
};
}
function getParent (api: DeriveApi, identityOfOpt: Option<PalletIdentityRegistration> | undefined, superOfOpt: Option<ITuple<[AccountId, Data]>> | undefined): Observable<[Option<PalletIdentityRegistration> | undefined, [AccountId, Data] | undefined]> {
function getParent (api: DeriveApi, identityOfOpt: Option<ITuple<[PalletIdentityRegistration, Option<Bytes>]>> | Option<PalletIdentityRegistration> | undefined, superOfOpt: Option<ITuple<[AccountId, Data]>> | undefined): Observable<[Option<ITuple<[PalletIdentityRegistration, Option<Bytes>]>> | Option<PalletIdentityRegistration> | undefined, [AccountId, Data] | undefined]> {
if (identityOfOpt?.isSome) {
// this identity has something set
return of([identityOfOpt, undefined]);
@@ -83,8 +92,8 @@ function getParent (api: DeriveApi, identityOfOpt: Option<PalletIdentityRegistra
return of([undefined, undefined]);
}
export function _identity (instanceId: string, api: DeriveApi): (accountId?: AccountId | Uint8Array | string) => Observable<[Option<PalletIdentityRegistration> | undefined, Option<ITuple<[AccountId, Data]>> | undefined]> {
return memo(instanceId, (accountId?: AccountId | Uint8Array | string): Observable<[Option<PalletIdentityRegistration> | undefined, Option<ITuple<[AccountId, Data]>> | undefined]> =>
export function _identity (instanceId: string, api: DeriveApi): (accountId?: AccountId | Uint8Array | string) => Observable<[Option<ITuple<[PalletIdentityRegistration, Option<Bytes>]>> | Option<PalletIdentityRegistration> | undefined, Option<ITuple<[AccountId, Data]>> | undefined]> {
return memo(instanceId, (accountId?: AccountId | Uint8Array | string): Observable<[Option<ITuple<[PalletIdentityRegistration, Option<Bytes>]>> | Option<PalletIdentityRegistration> | undefined, Option<ITuple<[AccountId, Data]>> | undefined]> =>
accountId && api.query.identity?.identityOf
? combineLatest([
api.query.identity.identityOf(accountId),
@@ -132,7 +141,7 @@ export function hasIdentityMulti (instanceId: string, api: DeriveApi): (accountI
let display: string | undefined;
if (identityOfOpt && identityOfOpt.isSome) {
const value = dataAsString(identityOfOpt.unwrap().info.display);
const value = dataAsString(identityCompat(identityOfOpt).info.display);
if (value && !isHex(value)) {
display = value;
+4 -1
View File
@@ -67,8 +67,11 @@ function getModules (api: DeriveApi): [string, string | null] {
: api.query.elections
? 'elections'
: null;
// In some cases council here can refer to `generalCouncil` depending on what the chain specific override is.
// Therefore, we check to see if it exists in the query field. If it does not we default to `council`.
const resolvedCouncil = api.query[council] ? council : 'council';
return [council, elections];
return [resolvedCouncil, elections];
}
function queryAll (api: DeriveApi, council: string, elections: string): Observable<[AccountId32[], Candidate[], Member[], Member[]]> {
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '10.12.1' };
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '10.13.1' };
+6 -4
View File
@@ -40,7 +40,11 @@ function _membersCurr (api: DeriveApi, accountIds: AccountId[]): Observable<Deri
of(accountIds),
api.query.society.members.multi(accountIds),
api.query.society.payouts.multi(accountIds),
api.query.society.defenderVotes.multi(accountIds),
api.query.society.challengeRoundCount().pipe(
switchMap((round) =>
api.query.society.defenderVotes.multi(accountIds.map((accountId) => [round, accountId]))
)
),
api.query.society.suspendedMembers.multi(accountIds)
]).pipe(
map(([accountIds, members, payouts, defenderVotes, suspendedMembers]) =>
@@ -49,9 +53,7 @@ function _membersCurr (api: DeriveApi, accountIds: AccountId[]): Observable<Deri
members[index].isSome
? {
accountId,
isDefenderVoter: defenderVotes[index].isSome
? defenderVotes[index].unwrap().approve.isTrue
: false,
isDefenderVoter: defenderVotes[index].isSome,
isSuspended: suspendedMembers[index].isSome,
member: members[index].unwrap(),
payouts: payouts[index].payouts
+44 -12
View File
@@ -2,10 +2,10 @@
// SPDX-License-Identifier: Apache-2.0
import type { Observable } from 'rxjs';
import type { StorageKey } from '@polkadot/types';
import type { AccountId, EraIndex } from '@polkadot/types/interfaces';
import type { PalletStakingExposure } from '@polkadot/types/lookup';
import type { DeriveApi, DeriveEraExposure, DeriveEraNominatorExposure, DeriveEraValidatorExposure } from '../types.js';
import type { Option, StorageKey, u32 } from '@polkadot/types';
import type { AccountId, AccountId32, EraIndex } from '@polkadot/types/interfaces';
import type { SpStakingExposure, SpStakingExposurePage } from '@polkadot/types/lookup';
import type { DeriveApi, DeriveEraExposurePaged, DeriveEraNominatorExposure, DeriveEraValidatorExposure, DeriveEraValidatorExposurePaged } from '../types.js';
import { map, of } from 'rxjs';
@@ -13,11 +13,12 @@ import { memo } from '../util/index.js';
import { getEraCache, setEraCache } from './cache.js';
import { combineEras, erasHistoricApply, singleEra } from './util.js';
type KeysAndExposures = [StorageKey<[EraIndex, AccountId]>, PalletStakingExposure][];
type KeysAndExposures = [StorageKey<[EraIndex, AccountId]>, SpStakingExposure][];
type KeysAndExposuresPaged = [StorageKey<[u32, AccountId32, u32]>, Option<SpStakingExposurePage>][];
const CACHE_KEY = 'eraExposure';
function mapStakers (era: EraIndex, stakers: KeysAndExposures): DeriveEraExposure {
function mapStakersClipped (era: EraIndex, stakers: KeysAndExposures): DeriveEraExposurePaged {
const nominators: DeriveEraNominatorExposure = {};
const validators: DeriveEraValidatorExposure = {};
@@ -37,15 +38,46 @@ function mapStakers (era: EraIndex, stakers: KeysAndExposures): DeriveEraExposur
return { era, nominators, validators };
}
export function _eraExposure (instanceId: string, api: DeriveApi): (era: EraIndex, withActive?: boolean) => Observable<DeriveEraExposure> {
return memo(instanceId, (era: EraIndex, withActive = false): Observable<DeriveEraExposure> => {
const [cacheKey, cached] = getEraCache<DeriveEraExposure>(CACHE_KEY, era, withActive);
function mapStakersPaged (era: EraIndex, stakers: KeysAndExposuresPaged): DeriveEraExposurePaged {
const nominators: DeriveEraNominatorExposure = {};
const validators: DeriveEraValidatorExposurePaged = {};
stakers.forEach(([key, exposureOpt]): void => {
if (exposureOpt.isSome) {
const validatorId = key.args[1].toString();
const exposure = exposureOpt.unwrap();
validators[validatorId] = exposure;
exposure.others.forEach(({ who }, validatorIndex): void => {
const nominatorId = who.toString();
nominators[nominatorId] = nominators[nominatorId] || [];
nominators[nominatorId].push({ validatorId, validatorIndex });
});
}
});
return { era, nominators, validators };
}
/**
* erasStakersClipped will be deprecated and replaced with erasStakersPaged. Therefore support is given for both
* storage queries until erasStakersClipped has been completely out of use.
*/
export function _eraExposure (instanceId: string, api: DeriveApi): (era: EraIndex, withActive?: boolean) => Observable<DeriveEraExposurePaged> {
return memo(instanceId, (era: EraIndex, withActive = false): Observable<DeriveEraExposurePaged> => {
const [cacheKey, cached] = getEraCache<DeriveEraExposurePaged>(CACHE_KEY, era, withActive);
return cached
? of(cached)
: api.query.staking.erasStakersClipped.entries(era).pipe(
map((r) => setEraCache(cacheKey, withActive, mapStakers(era, r)))
);
: api.query.staking.erasStakersPaged
? api.query.staking.erasStakersPaged.entries<Option<SpStakingExposurePage>>(era).pipe(
map((r) => setEraCache(cacheKey, withActive, mapStakersPaged(era, r)))
)
: api.query.staking.erasStakersClipped.entries(era).pipe(
map((r) => setEraCache(cacheKey, withActive, mapStakersClipped(era, r)))
);
});
}
+14 -6
View File
@@ -4,14 +4,22 @@
import type { Observable } from 'rxjs';
import type { Option } from '@polkadot/types';
import type { AccountId, EraIndex } from '@polkadot/types/interfaces';
import type { PalletStakingExposure, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingStakingLedger, PalletStakingValidatorPrefs } from '@polkadot/types/lookup';
import type { PalletStakingNominations, PalletStakingRewardDestination, PalletStakingStakingLedger, PalletStakingValidatorPrefs, SpStakingExposure } from '@polkadot/types/lookup';
import type { DeriveApi, DeriveStakingQuery, StakingQueryFlags } from '../types.js';
import { combineLatest, map, of, switchMap } from 'rxjs';
import { firstMemo, memo } from '../util/index.js';
function parseDetails (stashId: AccountId, controllerIdOpt: Option<AccountId> | null, nominatorsOpt: Option<PalletStakingNominations>, rewardDestination: PalletStakingRewardDestination, validatorPrefs: PalletStakingValidatorPrefs, exposure: PalletStakingExposure, stakingLedgerOpt: Option<PalletStakingStakingLedger>): DeriveStakingQuery {
// handle compatibility between generations of structures
function rewardDestinationCompat (rewardDestination: PalletStakingRewardDestination | Option<PalletStakingRewardDestination>): PalletStakingRewardDestination | null {
// We ensure the type is an Option by checking if isSome is a boolean. When isSome doesn't exist it will always return undefined.
return typeof (rewardDestination as Option<PalletStakingRewardDestination>).isSome === 'boolean'
? (rewardDestination as Option<PalletStakingRewardDestination>).unwrapOr(null)
: (rewardDestination as PalletStakingRewardDestination);
}
function parseDetails (stashId: AccountId, controllerIdOpt: Option<AccountId> | null, nominatorsOpt: Option<PalletStakingNominations>, rewardDestinationOpts: Option<PalletStakingRewardDestination> | PalletStakingRewardDestination, validatorPrefs: PalletStakingValidatorPrefs, exposure: SpStakingExposure, stakingLedgerOpt: Option<PalletStakingStakingLedger>): DeriveStakingQuery {
return {
accountId: stashId,
controllerId: controllerIdOpt?.unwrapOr(null) || null,
@@ -19,7 +27,7 @@ function parseDetails (stashId: AccountId, controllerIdOpt: Option<AccountId> |
nominators: nominatorsOpt.isSome
? nominatorsOpt.unwrap().targets
: [],
rewardDestination,
rewardDestination: rewardDestinationCompat(rewardDestinationOpts),
stakingLedger: stakingLedgerOpt.unwrapOrDefault(),
stashId,
validatorPrefs
@@ -49,10 +57,10 @@ function getLedgers (api: DeriveApi, optIds: (Option<AccountId> | null)[], { wit
);
}
function getStashInfo (api: DeriveApi, stashIds: AccountId[], activeEra: EraIndex, { withController, withDestination, withExposure, withLedger, withNominations, withPrefs }: StakingQueryFlags): Observable<[(Option<AccountId> | null)[], Option<PalletStakingNominations>[], PalletStakingRewardDestination[], PalletStakingValidatorPrefs[], PalletStakingExposure[]]> {
function getStashInfo (api: DeriveApi, stashIds: AccountId[], activeEra: EraIndex, { withController, withDestination, withExposure, withLedger, withNominations, withPrefs }: StakingQueryFlags): Observable<[(Option<AccountId> | null)[], Option<PalletStakingNominations>[], Option<PalletStakingRewardDestination>[], PalletStakingValidatorPrefs[], SpStakingExposure[]]> {
const emptyNoms = api.registry.createType<Option<PalletStakingNominations>>('Option<Nominations>');
const emptyRewa = api.registry.createType<PalletStakingRewardDestination>('RewardDestination');
const emptyExpo = api.registry.createType<PalletStakingExposure>('Exposure');
const emptyRewa = api.registry.createType<Option<PalletStakingRewardDestination>>('RewardDestination');
const emptyExpo = api.registry.createType<SpStakingExposure>('Exposure');
const emptyPrefs = api.registry.createType<PalletStakingValidatorPrefs>('ValidatorPrefs');
return combineLatest([
@@ -4,7 +4,7 @@
import type { Observable } from 'rxjs';
import type { EraIndex } from '@polkadot/types/interfaces';
import type { DeriveApi } from '../types.js';
import type { DeriveEraValidatorExposure, DeriveStakerExposure } from './types.js';
import type { DeriveEraValidatorExposurePaged, DeriveStakerExposure } from './types.js';
import { map, switchMap } from 'rxjs';
@@ -19,7 +19,7 @@ export function _stakerExposures (instanceId: string, api: DeriveApi): (accountI
stakerIds.map((stakerId) =>
exposures.map(({ era, nominators: allNominators, validators: allValidators }): DeriveStakerExposure => {
const isValidator = !!allValidators[stakerId];
const validators: DeriveEraValidatorExposure = {};
const validators: DeriveEraValidatorExposurePaged = {};
const nominating = allNominators[stakerId] || [];
if (isValidator) {
@@ -4,7 +4,7 @@
import type { Observable } from 'rxjs';
import type { u32, Vec } from '@polkadot/types';
import type { AccountId, EraIndex } from '@polkadot/types/interfaces';
import type { PalletStakingStakingLedger } from '@polkadot/types/lookup';
import type { PalletStakingStakingLedger, SpStakingExposure, SpStakingExposurePage } from '@polkadot/types/lookup';
import type { BN } from '@polkadot/util';
import type { DeriveApi, DeriveEraPoints, DeriveEraPrefs, DeriveEraRewards, DeriveEraValPoints, DeriveEraValPrefs, DeriveStakerExposure, DeriveStakerReward, DeriveStakerRewardValidator } from '../types.js';
import type { DeriveStakingQuery } from './types.js';
@@ -38,7 +38,11 @@ function parseRewards (api: DeriveApi, stashId: AccountId, [erasPoints, erasPref
Object.entries(eraValidators).forEach(([validatorId, exposure]): void => {
const valPoints = allValPoints[validatorId] || BN_ZERO;
const valComm = allValPrefs[validatorId]?.commission.unwrap() || BN_ZERO;
const expTotal = exposure.total?.unwrap() || BN_ZERO;
const expTotal = (exposure as SpStakingExposure).total
? (exposure as SpStakingExposure).total?.unwrap()
: (exposure as SpStakingExposurePage).pageTotal
? (exposure as SpStakingExposurePage).pageTotal?.unwrap()
: BN_ZERO;
let avail = BN_ZERO;
let value: BN | undefined;
@@ -49,7 +53,15 @@ function parseRewards (api: DeriveApi, stashId: AccountId, [erasPoints, erasPref
let staked: BN;
if (validatorId === stakerId) {
staked = exposure.own.unwrap();
if ((exposure as SpStakingExposure).own) {
staked = (exposure as SpStakingExposure).own.unwrap();
} else {
const expAccount = exposure.others.find(({ who }) => who.eq(validatorId));
staked = expAccount
? expAccount.value.unwrap()
: BN_ZERO;
}
} else {
const stakerExp = exposure.others.find(({ who }) => who.eq(stakerId));
+15 -7
View File
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import type { AccountId, Balance, EraIndex, RewardPoint } from '@polkadot/types/interfaces';
import type { PalletStakingExposure, PalletStakingRewardDestination, PalletStakingStakingLedger, PalletStakingValidatorPrefs } from '@polkadot/types/lookup';
import type { PalletStakingRewardDestination, PalletStakingStakingLedger, PalletStakingValidatorPrefs, SpStakingExposure, SpStakingExposurePage } from '@polkadot/types/lookup';
import type { BN } from '@polkadot/util';
import type { DeriveSessionIndexes } from '../session/types.js';
@@ -41,9 +41,9 @@ export interface DeriveStakerPoints {
}
export interface DeriveOwnExposure {
clipped: PalletStakingExposure;
clipped: SpStakingExposure;
era: EraIndex;
exposure: PalletStakingExposure;
exposure: SpStakingExposure;
}
export interface DeriveEraExposureNominating {
@@ -53,7 +53,9 @@ export interface DeriveEraExposureNominating {
export type DeriveEraNominatorExposure = Record<string, DeriveEraExposureNominating[]>;
export type DeriveEraValidatorExposure = Record<string, PalletStakingExposure>;
export type DeriveEraValidatorExposure = Record<string, SpStakingExposure>;
export type DeriveEraValidatorExposurePaged = Record<string, SpStakingExposurePage | SpStakingExposure>;
export interface DeriveEraExposure {
era: EraIndex;
@@ -61,12 +63,18 @@ export interface DeriveEraExposure {
validators: DeriveEraValidatorExposure;
}
export interface DeriveEraExposurePaged {
era: EraIndex;
nominators: DeriveEraNominatorExposure;
validators: DeriveEraValidatorExposurePaged;
}
export interface DeriveStakerExposure {
era: EraIndex;
isEmpty: boolean;
isValidator: boolean;
nominating: DeriveEraExposureNominating[];
validators: DeriveEraValidatorExposure;
validators: DeriveEraValidatorExposurePaged;
}
export interface DeriveStakerPrefs {
@@ -107,9 +115,9 @@ export interface DeriveStakingValidators {
export interface DeriveStakingStash {
controllerId: AccountId | null;
exposure: PalletStakingExposure;
exposure: SpStakingExposure;
nominators: AccountId[];
rewardDestination: PalletStakingRewardDestination;
rewardDestination: PalletStakingRewardDestination | null;
stashId: AccountId;
validatorPrefs: PalletStakingValidatorPrefs;
}
+17 -5
View File
@@ -2,8 +2,11 @@
// SPDX-License-Identifier: Apache-2.0
import type { Observable } from 'rxjs';
import type { AugmentedConsts } from '@polkadot/api-base/types';
import type { u64 } from '@polkadot/types';
import type { Header, Index } from '@polkadot/types/interfaces';
import type { AnyNumber, Codec, IExtrinsicEra } from '@polkadot/types/types';
import type { BN } from '@polkadot/util';
import type { DeriveApi } from '../types.js';
import { catchError, combineLatest, map, of, switchMap } from 'rxjs';
@@ -63,6 +66,19 @@ function signingHeader (api: DeriveApi): Observable<Header> {
);
}
interface Aura {
slotDuration: u64 & AugmentedConsts<'rxjs'>;
}
function babeOrAuraPeriod (api: DeriveApi): BN | undefined {
const period = api.consts.babe?.expectedBlockTime ||
// this will be present ones https://github.com/paritytech/polkadot-sdk/pull/3732 is merged
(api.consts['aura'] as unknown as Aura)?.slotDuration ||
api.consts.timestamp?.minimumPeriod.muln(2);
return !period.isZero() ? period : undefined;
}
export function signingInfo (_instanceId: string, api: DeriveApi): (address: string, nonce?: AnyNumber | Codec, era?: IExtrinsicEra | number) => Observable<Result> {
// no memo, we want to do this fresh on each run
return (address: string, nonce?: AnyNumber | Codec, era?: IExtrinsicEra | number): Observable<Result> =>
@@ -83,11 +99,7 @@ export function signingInfo (_instanceId: string, api: DeriveApi): (address: str
mortalLength: Math.min(
api.consts.system?.blockHashCount?.toNumber() || FALLBACK_MAX_HASH_COUNT,
MORTAL_PERIOD
.div(
api.consts.babe?.expectedBlockTime ||
api.consts.timestamp?.minimumPeriod.muln(2) ||
FALLBACK_PERIOD
)
.div(babeOrAuraPeriod(api) || FALLBACK_PERIOD)
.iadd(MAX_FINALITY_LAG)
.toNumber()
),
+14 -14
View File
@@ -18,21 +18,21 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "10.12.1",
"version": "10.13.1",
"main": "index.js",
"dependencies": {
"@polkadot/api-augment": "10.12.1",
"@polkadot/api-base": "10.12.1",
"@polkadot/api-derive": "10.12.1",
"@polkadot/api-augment": "10.13.1",
"@polkadot/api-base": "10.13.1",
"@polkadot/api-derive": "10.13.1",
"@polkadot/keyring": "^12.6.2",
"@polkadot/rpc-augment": "10.12.1",
"@polkadot/rpc-core": "10.12.1",
"@polkadot/rpc-provider": "10.12.1",
"@polkadot/types": "10.12.1",
"@polkadot/types-augment": "10.12.1",
"@polkadot/types-codec": "10.12.1",
"@polkadot/types-create": "10.12.1",
"@polkadot/types-known": "10.12.1",
"@polkadot/rpc-augment": "10.13.1",
"@polkadot/rpc-core": "10.13.1",
"@polkadot/rpc-provider": "10.13.1",
"@polkadot/types": "10.13.1",
"@polkadot/types-augment": "10.13.1",
"@polkadot/types-codec": "10.13.1",
"@polkadot/types-create": "10.13.1",
"@polkadot/types-known": "10.13.1",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"eventemitter3": "^5.0.1",
@@ -40,7 +40,7 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/api-augment": "10.12.1",
"@polkadot/types-support": "10.12.1"
"@polkadot/api-augment": "10.13.1",
"@polkadot/types-support": "10.13.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '10.12.1' };
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '10.13.1' };
+4 -4
View File
@@ -18,12 +18,12 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "10.12.1",
"version": "10.13.1",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "10.12.1",
"@polkadot/types": "10.12.1",
"@polkadot/types-codec": "10.12.1",
"@polkadot/rpc-core": "10.13.1",
"@polkadot/types": "10.13.1",
"@polkadot/types-codec": "10.13.1",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '10.12.1' };
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '10.13.1' };
+5 -5
View File
@@ -18,18 +18,18 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "10.12.1",
"version": "10.13.1",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-augment": "10.12.1",
"@polkadot/rpc-provider": "10.12.1",
"@polkadot/types": "10.12.1",
"@polkadot/rpc-augment": "10.13.1",
"@polkadot/rpc-provider": "10.13.1",
"@polkadot/types": "10.13.1",
"@polkadot/util": "^12.6.2",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/keyring": "^12.6.2",
"@polkadot/rpc-augment": "10.12.1"
"@polkadot/rpc-augment": "10.13.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '10.12.1' };
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '10.13.1' };
+5 -5
View File
@@ -18,12 +18,12 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "10.12.1",
"version": "10.13.1",
"main": "index.js",
"dependencies": {
"@polkadot/keyring": "^12.6.2",
"@polkadot/types": "10.12.1",
"@polkadot/types-support": "10.12.1",
"@polkadot/types": "10.13.1",
"@polkadot/types-support": "10.13.1",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@polkadot/x-fetch": "^12.6.2",
@@ -35,9 +35,9 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@substrate/connect": "0.8.7"
"@substrate/connect": "0.8.8"
},
"optionalDependencies": {
"@substrate/connect": "0.8.7"
"@substrate/connect": "0.8.8"
}
}
+4 -3
View File
@@ -3,7 +3,7 @@
import type { JsonRpcResponse, ProviderInterface, ProviderInterfaceCallback, ProviderInterfaceEmitCb, ProviderInterfaceEmitted, ProviderStats } from '../types.js';
import { logger, noop } from '@polkadot/util';
import { logger, noop, stringify } from '@polkadot/util';
import { fetch } from '@polkadot/x-fetch';
import { RpcCoder } from '../coder/index.js';
@@ -125,15 +125,16 @@ export class HttpProvider implements ProviderInterface {
this.#stats.total.requests++;
const [, body] = this.#coder.encodeJson(method, params);
const cacheKey = isCacheable ? `${method}::${stringify(params)}` : '';
let resultPromise: Promise<T> | null = isCacheable
? this.#callCache.get(body)
? this.#callCache.get(cacheKey)
: null;
if (!resultPromise) {
resultPromise = this.#send(body);
if (isCacheable) {
this.#callCache.set(body, resultPromise);
this.#callCache.set(cacheKey, resultPromise);
}
} else {
this.#stats.total.cached++;
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '10.12.1' };
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '10.13.1' };
@@ -118,7 +118,7 @@ export class ScProvider implements ProviderInterface {
: this.#Sc.createScClient(config);
if (!client) {
throw new Error('Unkown ScProvider!');
throw new Error('Unknown ScProvider!');
}
scClients.set(this, client);
+4 -3
View File
@@ -6,7 +6,7 @@ import type { EndpointStats, JsonRpcResponse, ProviderInterface, ProviderInterfa
import { EventEmitter } from 'eventemitter3';
import { isChildClass, isNull, isUndefined, logger, noop, objectSpread } from '@polkadot/util';
import { isChildClass, isNull, isUndefined, logger, noop, objectSpread, stringify } from '@polkadot/util';
import { xglobal } from '@polkadot/x-global';
import { WebSocket } from '@polkadot/x-ws';
@@ -312,15 +312,16 @@ export class WsProvider implements ProviderInterface {
this.#stats.total.requests++;
const [id, body] = this.#coder.encodeJson(method, params);
const cacheKey = isCacheable ? `${method}::${stringify(params)}` : '';
let resultPromise: Promise<T> | null = isCacheable
? this.#callCache.get(body)
? this.#callCache.get(cacheKey)
: null;
if (!resultPromise) {
resultPromise = this.#send(id, body, method, params, subscription);
if (isCacheable) {
this.#callCache.set(body, resultPromise);
this.#callCache.set(cacheKey, resultPromise);
}
} else {
this.#endpointStats.cached++;
+10 -10
View File
@@ -18,7 +18,7 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "10.12.1",
"version": "10.13.1",
"main": "index.js",
"bin": {
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
@@ -28,15 +28,15 @@
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
},
"dependencies": {
"@polkadot/api": "10.12.1",
"@polkadot/api-augment": "10.12.1",
"@polkadot/rpc-augment": "10.12.1",
"@polkadot/rpc-provider": "10.12.1",
"@polkadot/types": "10.12.1",
"@polkadot/types-augment": "10.12.1",
"@polkadot/types-codec": "10.12.1",
"@polkadot/types-create": "10.12.1",
"@polkadot/types-support": "10.12.1",
"@polkadot/api": "10.13.1",
"@polkadot/api-augment": "10.13.1",
"@polkadot/rpc-augment": "10.13.1",
"@polkadot/rpc-provider": "10.13.1",
"@polkadot/types": "10.13.1",
"@polkadot/types-augment": "10.13.1",
"@polkadot/types-codec": "10.13.1",
"@polkadot/types-create": "10.13.1",
"@polkadot/types-support": "10.13.1",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@polkadot/x-ws": "^12.6.2",
+12 -2
View File
@@ -49,12 +49,22 @@ function tsEnum (registry: Registry, definitions: Record<string, ModuleTypes>, {
const indent = withShortcut ? ' ' : '';
const named = (sub as TypeDef[]).filter(({ name }) => !!name && !name.startsWith('__Unused'));
const keys = named.map((def): string => {
const { info, lookupName, name = '', type } = def;
const { info, lookupName, name = '', sub, type } = def;
const getter = stringPascalCase(name.replace(' ', '_'));
const isComplex = [TypeDefInfo.Option, TypeDefInfo.Range, TypeDefInfo.RangeInclusive, TypeDefInfo.Result, TypeDefInfo.Struct, TypeDefInfo.Tuple, TypeDefInfo.Vec, TypeDefInfo.VecFixed].includes(info);
let extractedLookupName;
// When the parent type does not have a lookupName, and the sub type is the same
// type as the parent we can take the lookupName from the sub.
// see: https://github.com/polkadot-js/api/pull/5812
if (sub && !Array.isArray(sub) && type.includes(`${sub.type};`)) {
extractedLookupName = sub.lookupName;
}
const asGetter = type === 'Null' || info === TypeDefInfo.DoNotConstruct
? ''
: createGetter(definitions, `as${getter}`, lookupName || (isComplex ? formatType(registry, definitions, info === TypeDefInfo.Struct ? def : type, imports, withShortcut) : type), imports);
: createGetter(definitions, `as${getter}`, lookupName || extractedLookupName || (isComplex ? formatType(registry, definitions, info === TypeDefInfo.Struct ? def : type, imports, withShortcut) : type), imports);
const isGetter = info === TypeDefInfo.DoNotConstruct
? ''
: createGetter(definitions, `is${getter}`, 'boolean', imports);
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '10.12.1' };
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '10.13.1' };
+3 -3
View File
@@ -18,11 +18,11 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "10.12.1",
"version": "10.13.1",
"main": "index.js",
"dependencies": {
"@polkadot/types": "10.12.1",
"@polkadot/types-codec": "10.12.1",
"@polkadot/types": "10.13.1",
"@polkadot/types-codec": "10.13.1",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
}
+259 -78
View File
@@ -5,71 +5,20 @@
export default {
/**
* Lookup94: pallet_beefy::pallet::Call<T>
* Lookup121: staging_kusama_runtime::SessionKeys
**/
PalletBeefyCall: {
_enum: {
report_equivocation: {
equivocationProof: 'SpConsensusBeefyEquivocationProof',
keyOwnerProof: 'SpSessionMembershipProof',
},
report_equivocation_unsigned: {
equivocationProof: 'SpConsensusBeefyEquivocationProof',
keyOwnerProof: 'SpSessionMembershipProof'
}
}
},
/**
* Lookup95: sp_consensus_beefy::EquivocationProof<Number, sp_consensus_beefy::ecdsa_crypto::Public, sp_consensus_beefy::ecdsa_crypto::Signature>
**/
SpConsensusBeefyEquivocationProof: {
first: 'SpConsensusBeefyVoteMessage',
second: 'SpConsensusBeefyVoteMessage'
},
/**
* Lookup96: sp_consensus_beefy::ecdsa_crypto::Public
**/
SpConsensusBeefyEcdsaCryptoPublic: 'SpCoreEcdsaPublic',
/**
* Lookup99: sp_consensus_beefy::ecdsa_crypto::Signature
**/
SpConsensusBeefyEcdsaCryptoSignature: 'SpCoreEcdsaSignature',
/**
* Lookup102: sp_consensus_beefy::VoteMessage<Number, sp_consensus_beefy::ecdsa_crypto::Public, sp_consensus_beefy::ecdsa_crypto::Signature>
**/
SpConsensusBeefyVoteMessage: {
commitment: 'SpConsensusBeefyCommitment',
id: 'SpConsensusBeefyEcdsaCryptoPublic',
signature: 'SpConsensusBeefyEcdsaCryptoSignature'
},
/**
* Lookup103: sp_consensus_beefy::commitment::Commitment<TBlockNumber>
**/
SpConsensusBeefyCommitment: {
payload: 'SpConsensusBeefyPayload',
blockNumber: 'u32',
validatorSetId: 'u64'
},
/**
* Lookup104: sp_consensus_beefy::payload::Payload
**/
SpConsensusBeefyPayload: 'Vec<([u8;2],Bytes)>',
/**
* Lookup109: kusama_runtime::SessionKeys
**/
KusamaRuntimeSessionKeys: {
StagingKusamaRuntimeSessionKeys: {
grandpa: 'SpConsensusGrandpaAppPublic',
babe: 'SpConsensusBabeAppPublic',
imOnline: 'PalletImOnlineSr25519AppSr25519Public',
paraValidator: 'PolkadotPrimitivesV5ValidatorAppPublic',
paraAssignment: 'PolkadotPrimitivesV5AssignmentAppPublic',
paraValidator: 'PolkadotPrimitivesV6ValidatorAppPublic',
paraAssignment: 'PolkadotPrimitivesV6AssignmentAppPublic',
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic',
beefy: 'SpConsensusBeefyEcdsaCryptoPublic'
},
/**
* Lookup136: kusama_runtime::OriginCaller
* Lookup148: staging_kusama_runtime::OriginCaller
**/
KusamaRuntimeOriginCaller: {
StagingKusamaRuntimeOriginCaller: {
_enum: {
system: 'FrameSupportDispatchRawOrigin',
__Unused1: 'Null',
@@ -114,7 +63,7 @@ export default {
__Unused40: 'Null',
__Unused41: 'Null',
__Unused42: 'Null',
Origins: 'KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin',
Origins: 'StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin',
__Unused44: 'Null',
__Unused45: 'Null',
__Unused46: 'Null',
@@ -174,21 +123,21 @@ export default {
}
},
/**
* Lookup138: kusama_runtime::governance::origins::pallet_custom_origins::Origin
* Lookup150: staging_kusama_runtime::governance::origins::pallet_custom_origins::Origin
**/
KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin: {
_enum: ['StakingAdmin', 'Treasurer', 'FellowshipAdmin', 'GeneralAdmin', 'AuctionAdmin', 'LeaseAdmin', 'ReferendumCanceller', 'ReferendumKiller', 'SmallTipper', 'BigTipper', 'SmallSpender', 'MediumSpender', 'BigSpender', 'WhitelistedCaller', 'FellowshipInitiates', 'Fellows', 'FellowshipExperts', 'FellowshipMasters', 'Fellowship1Dan', 'Fellowship2Dan', 'Fellowship3Dan', 'Fellowship4Dan', 'Fellowship5Dan', 'Fellowship6Dan', 'Fellowship7Dan', 'Fellowship8Dan', 'Fellowship9Dan']
StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin: {
_enum: ['StakingAdmin', 'Treasurer', 'FellowshipAdmin', 'GeneralAdmin', 'AuctionAdmin', 'LeaseAdmin', 'ReferendumCanceller', 'ReferendumKiller', 'SmallTipper', 'BigTipper', 'SmallSpender', 'MediumSpender', 'BigSpender', 'WhitelistedCaller', 'FellowshipInitiates', 'Fellows', 'FellowshipExperts', 'FellowshipMasters', 'Fellowship1Dan', 'Fellowship2Dan', 'Fellowship3Dan', 'Fellowship4Dan', 'Fellowship5Dan', 'Fellowship6Dan', 'Fellowship7Dan', 'Fellowship8Dan', 'Fellowship9Dan', 'WishForChange']
},
/**
* Lookup214: kusama_runtime::ProxyType
* Lookup224: staging_kusama_runtime::ProxyType
**/
KusamaRuntimeProxyType: {
StagingKusamaRuntimeProxyType: {
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction', 'Society', 'NominationPools']
},
/**
* Lookup223: kusama_runtime::NposCompactSolution24
* Lookup234: staging_kusama_runtime::NposCompactSolution24
**/
KusamaRuntimeNposCompactSolution24: {
StagingKusamaRuntimeNposCompactSolution24: {
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
votes2: 'Vec<(Compact<u32>,(Compact<u16>,Compact<PerU16>),Compact<u16>)>',
votes3: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);2],Compact<u16>)>',
@@ -215,9 +164,176 @@ export default {
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
},
/**
* Lookup556: kusama_runtime::RuntimeHoldReason
* Lookup391: polkadot_runtime_parachains::assigner_on_demand::pallet::Call<T>
**/
KusamaRuntimeRuntimeHoldReason: {
PolkadotRuntimeParachainsAssignerOnDemandPalletCall: {
_enum: {
place_order_allow_death: {
maxAmount: 'u128',
paraId: 'u32',
},
place_order_keep_alive: {
maxAmount: 'u128',
paraId: 'u32'
}
}
},
/**
* Lookup399: polkadot_runtime_parachains::coretime::pallet::Call<T>
**/
PolkadotRuntimeParachainsCoretimePalletCall: {
_enum: {
__Unused0: 'Null',
request_core_count: {
count: 'u16',
},
__Unused2: 'Null',
__Unused3: 'Null',
assign_core: {
core: 'u16',
begin: 'u32',
assignment: 'Vec<(PalletBrokerCoretimeInterfaceCoreAssignment,u16)>',
endHint: 'Option<u32>'
}
}
},
/**
* Lookup543: polkadot_runtime_parachains::assigner_on_demand::pallet::Event<T>
**/
PolkadotRuntimeParachainsAssignerOnDemandPalletEvent: {
_enum: {
OnDemandOrderPlaced: {
paraId: 'u32',
spotPrice: 'u128',
},
SpotTrafficSet: {
traffic: 'u128'
}
}
},
/**
* Lookup548: polkadot_runtime_parachains::coretime::pallet::Event<T>
**/
PolkadotRuntimeParachainsCoretimePalletEvent: {
_enum: {
RevenueInfoRequested: {
when: 'u32',
},
CoreAssigned: {
core: 'u32'
}
}
},
/**
* Lookup600: staging_kusama_runtime::RuntimeHoldReason
**/
StagingKusamaRuntimeRuntimeHoldReason: {
_enum: {
__Unused0: 'Null',
__Unused1: 'Null',
__Unused2: 'Null',
__Unused3: 'Null',
__Unused4: 'Null',
__Unused5: 'Null',
__Unused6: 'Null',
__Unused7: 'Null',
__Unused8: 'Null',
__Unused9: 'Null',
__Unused10: 'Null',
__Unused11: 'Null',
__Unused12: 'Null',
__Unused13: 'Null',
__Unused14: 'Null',
__Unused15: 'Null',
__Unused16: 'Null',
__Unused17: 'Null',
__Unused18: 'Null',
__Unused19: 'Null',
__Unused20: 'Null',
__Unused21: 'Null',
__Unused22: 'Null',
__Unused23: 'Null',
__Unused24: 'Null',
__Unused25: 'Null',
__Unused26: 'Null',
__Unused27: 'Null',
__Unused28: 'Null',
__Unused29: 'Null',
__Unused30: 'Null',
__Unused31: 'Null',
Preimage: 'PalletPreimageHoldReason',
__Unused33: 'Null',
__Unused34: 'Null',
__Unused35: 'Null',
__Unused36: 'Null',
__Unused37: 'Null',
Nis: 'PalletNisHoldReason',
__Unused39: 'Null',
__Unused40: 'Null',
__Unused41: 'Null',
__Unused42: 'Null',
__Unused43: 'Null',
__Unused44: 'Null',
__Unused45: 'Null',
__Unused46: 'Null',
__Unused47: 'Null',
__Unused48: 'Null',
__Unused49: 'Null',
__Unused50: 'Null',
__Unused51: 'Null',
__Unused52: 'Null',
__Unused53: 'Null',
__Unused54: 'Null',
__Unused55: 'Null',
__Unused56: 'Null',
__Unused57: 'Null',
__Unused58: 'Null',
__Unused59: 'Null',
__Unused60: 'Null',
__Unused61: 'Null',
__Unused62: 'Null',
__Unused63: 'Null',
__Unused64: 'Null',
__Unused65: 'Null',
__Unused66: 'Null',
__Unused67: 'Null',
__Unused68: 'Null',
__Unused69: 'Null',
__Unused70: 'Null',
__Unused71: 'Null',
__Unused72: 'Null',
__Unused73: 'Null',
__Unused74: 'Null',
__Unused75: 'Null',
__Unused76: 'Null',
__Unused77: 'Null',
__Unused78: 'Null',
__Unused79: 'Null',
__Unused80: 'Null',
__Unused81: 'Null',
__Unused82: 'Null',
__Unused83: 'Null',
__Unused84: 'Null',
__Unused85: 'Null',
__Unused86: 'Null',
__Unused87: 'Null',
__Unused88: 'Null',
__Unused89: 'Null',
__Unused90: 'Null',
__Unused91: 'Null',
__Unused92: 'Null',
__Unused93: 'Null',
__Unused94: 'Null',
__Unused95: 'Null',
__Unused96: 'Null',
__Unused97: 'Null',
StateTrieMigration: 'PalletStateTrieMigrationHoldReason'
}
},
/**
* Lookup607: staging_kusama_runtime::RuntimeFreezeReason
**/
StagingKusamaRuntimeRuntimeFreezeReason: {
_enum: {
__Unused0: 'Null',
__Unused1: 'Null',
@@ -257,25 +373,90 @@ export default {
__Unused35: 'Null',
__Unused36: 'Null',
__Unused37: 'Null',
Nis: 'PalletNisHoldReason'
__Unused38: 'Null',
__Unused39: 'Null',
__Unused40: 'Null',
NominationPools: 'PalletNominationPoolsFreezeReason'
}
},
/**
* Lookup591: pallet_beefy::pallet::Error<T>
* Lookup800: pallet_balances::types::IdAmount<Id, Balance>
**/
PalletBeefyError: {
_enum: ['InvalidKeyOwnershipProof', 'InvalidEquivocationProof', 'DuplicateOffenceReport']
PalletBalancesIdAmount: {
id: 'Null',
amount: 'u128'
},
/**
* Lookup592: sp_consensus_beefy::mmr::BeefyAuthoritySet<primitive_types::H256>
* Lookup899: polkadot_runtime_parachains::assigner_on_demand::EnqueuedOrder
**/
SpConsensusBeefyMmrBeefyAuthoritySet: {
id: 'u64',
len: 'u32',
keysetCommitment: 'H256'
PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder: {
paraId: 'u32'
},
/**
* Lookup891: kusama_runtime::Runtime
* Lookup900: polkadot_runtime_parachains::assigner_on_demand::CoreAffinityCount
**/
KusamaRuntimeRuntime: 'Null'
PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount: {
coreIdx: 'u32',
count: 'u32'
},
/**
* Lookup901: polkadot_runtime_parachains::assigner_on_demand::pallet::Error<T>
**/
PolkadotRuntimeParachainsAssignerOnDemandPalletError: {
_enum: ['InvalidParaId', 'QueueFull', 'SpotPriceHigherThanMaxAmount']
},
/**
* Lookup903: polkadot_runtime_parachains::assigner_coretime::Schedule<N>
**/
PolkadotRuntimeParachainsAssignerCoretimeSchedule: {
assignments: 'Vec<(PalletBrokerCoretimeInterfaceCoreAssignment,u16)>',
endHint: 'Option<u32>',
nextSchedule: 'Option<u32>'
},
/**
* Lookup904: polkadot_runtime_parachains::assigner_coretime::CoreDescriptor<N>
**/
PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor: {
queue: 'Option<PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor>',
currentWork: 'Option<PolkadotRuntimeParachainsAssignerCoretimeWorkState>'
},
/**
* Lookup906: polkadot_runtime_parachains::assigner_coretime::QueueDescriptor<N>
**/
PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor: {
first: 'u32',
last: 'u32'
},
/**
* Lookup908: polkadot_runtime_parachains::assigner_coretime::WorkState<N>
**/
PolkadotRuntimeParachainsAssignerCoretimeWorkState: {
assignments: 'Vec<(PalletBrokerCoretimeInterfaceCoreAssignment,PolkadotRuntimeParachainsAssignerCoretimeAssignmentState)>',
endHint: 'Option<u32>',
pos: 'u16',
step: 'u16'
},
/**
* Lookup911: polkadot_runtime_parachains::assigner_coretime::AssignmentState
**/
PolkadotRuntimeParachainsAssignerCoretimeAssignmentState: {
ratio: 'u16',
remaining: 'u16'
},
/**
* Lookup912: polkadot_runtime_parachains::assigner_coretime::pallet::Error<T>
**/
PolkadotRuntimeParachainsAssignerCoretimePalletError: {
_enum: ['AssignmentsEmpty', 'OverScheduled', 'UnderScheduled', 'DisallowedInsert', 'DuplicateInsert', 'AssignmentsNotSorted']
},
/**
* Lookup926: polkadot_runtime_parachains::coretime::pallet::Error<T>
**/
PolkadotRuntimeParachainsCoretimePalletError: {
_enum: ['NotBroker']
},
/**
* Lookup972: staging_kusama_runtime::Runtime
**/
StagingKusamaRuntimeRuntime: 'Null'
};
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+162 -77
View File
@@ -5,73 +5,28 @@
// this is required to allow for ambient/previous definitions
import '@polkadot/types/lookup';
import type { Bytes, Compact, Enum, Null, Struct, U8aFixed, Vec, u16, u32, u64 } from '@polkadot/types-codec';
import type { Compact, Enum, Null, Option, Struct, Vec, u128, u16, u32 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
import type { H256, PerU16 } from '@polkadot/types/interfaces/runtime';
import type { PerU16 } from '@polkadot/types/interfaces/runtime';
declare module '@polkadot/types/lookup' {
/** @name PalletBeefyCall (94) */
interface PalletBeefyCall extends Enum {
readonly isReportEquivocation: boolean;
readonly asReportEquivocation: {
readonly equivocationProof: SpConsensusBeefyEquivocationProof;
readonly keyOwnerProof: SpSessionMembershipProof;
} & Struct;
readonly isReportEquivocationUnsigned: boolean;
readonly asReportEquivocationUnsigned: {
readonly equivocationProof: SpConsensusBeefyEquivocationProof;
readonly keyOwnerProof: SpSessionMembershipProof;
} & Struct;
readonly type: 'ReportEquivocation' | 'ReportEquivocationUnsigned';
}
/** @name SpConsensusBeefyEquivocationProof (95) */
interface SpConsensusBeefyEquivocationProof extends Struct {
readonly first: SpConsensusBeefyVoteMessage;
readonly second: SpConsensusBeefyVoteMessage;
}
/** @name SpConsensusBeefyEcdsaCryptoPublic (96) */
interface SpConsensusBeefyEcdsaCryptoPublic extends SpCoreEcdsaPublic {}
/** @name SpConsensusBeefyEcdsaCryptoSignature (99) */
interface SpConsensusBeefyEcdsaCryptoSignature extends SpCoreEcdsaSignature {}
/** @name SpConsensusBeefyVoteMessage (102) */
interface SpConsensusBeefyVoteMessage extends Struct {
readonly commitment: SpConsensusBeefyCommitment;
readonly id: SpConsensusBeefyEcdsaCryptoPublic;
readonly signature: SpConsensusBeefyEcdsaCryptoSignature;
}
/** @name SpConsensusBeefyCommitment (103) */
interface SpConsensusBeefyCommitment extends Struct {
readonly payload: SpConsensusBeefyPayload;
readonly blockNumber: u32;
readonly validatorSetId: u64;
}
/** @name SpConsensusBeefyPayload (104) */
interface SpConsensusBeefyPayload extends Vec<ITuple<[U8aFixed, Bytes]>> {}
/** @name KusamaRuntimeSessionKeys (109) */
interface KusamaRuntimeSessionKeys extends Struct {
/** @name StagingKusamaRuntimeSessionKeys (121) */
interface StagingKusamaRuntimeSessionKeys extends Struct {
readonly grandpa: SpConsensusGrandpaAppPublic;
readonly babe: SpConsensusBabeAppPublic;
readonly imOnline: PalletImOnlineSr25519AppSr25519Public;
readonly paraValidator: PolkadotPrimitivesV5ValidatorAppPublic;
readonly paraAssignment: PolkadotPrimitivesV5AssignmentAppPublic;
readonly paraValidator: PolkadotPrimitivesV6ValidatorAppPublic;
readonly paraAssignment: PolkadotPrimitivesV6AssignmentAppPublic;
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
readonly beefy: SpConsensusBeefyEcdsaCryptoPublic;
}
/** @name KusamaRuntimeOriginCaller (136) */
interface KusamaRuntimeOriginCaller extends Enum {
/** @name StagingKusamaRuntimeOriginCaller (148) */
interface StagingKusamaRuntimeOriginCaller extends Enum {
readonly isSystem: boolean;
readonly asSystem: FrameSupportDispatchRawOrigin;
readonly isVoid: boolean;
readonly isOrigins: boolean;
readonly asOrigins: KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin;
readonly asOrigins: StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin;
readonly isParachainsOrigin: boolean;
readonly asParachainsOrigin: PolkadotRuntimeParachainsOriginPalletOrigin;
readonly isXcmPallet: boolean;
@@ -79,8 +34,8 @@ declare module '@polkadot/types/lookup' {
readonly type: 'System' | 'Void' | 'Origins' | 'ParachainsOrigin' | 'XcmPallet';
}
/** @name KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin (138) */
interface KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin extends Enum {
/** @name StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin (150) */
interface StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin extends Enum {
readonly isStakingAdmin: boolean;
readonly isTreasurer: boolean;
readonly isFellowshipAdmin: boolean;
@@ -108,11 +63,12 @@ declare module '@polkadot/types/lookup' {
readonly isFellowship7Dan: boolean;
readonly isFellowship8Dan: boolean;
readonly isFellowship9Dan: boolean;
readonly type: 'StakingAdmin' | 'Treasurer' | 'FellowshipAdmin' | 'GeneralAdmin' | 'AuctionAdmin' | 'LeaseAdmin' | 'ReferendumCanceller' | 'ReferendumKiller' | 'SmallTipper' | 'BigTipper' | 'SmallSpender' | 'MediumSpender' | 'BigSpender' | 'WhitelistedCaller' | 'FellowshipInitiates' | 'Fellows' | 'FellowshipExperts' | 'FellowshipMasters' | 'Fellowship1Dan' | 'Fellowship2Dan' | 'Fellowship3Dan' | 'Fellowship4Dan' | 'Fellowship5Dan' | 'Fellowship6Dan' | 'Fellowship7Dan' | 'Fellowship8Dan' | 'Fellowship9Dan';
readonly isWishForChange: boolean;
readonly type: 'StakingAdmin' | 'Treasurer' | 'FellowshipAdmin' | 'GeneralAdmin' | 'AuctionAdmin' | 'LeaseAdmin' | 'ReferendumCanceller' | 'ReferendumKiller' | 'SmallTipper' | 'BigTipper' | 'SmallSpender' | 'MediumSpender' | 'BigSpender' | 'WhitelistedCaller' | 'FellowshipInitiates' | 'Fellows' | 'FellowshipExperts' | 'FellowshipMasters' | 'Fellowship1Dan' | 'Fellowship2Dan' | 'Fellowship3Dan' | 'Fellowship4Dan' | 'Fellowship5Dan' | 'Fellowship6Dan' | 'Fellowship7Dan' | 'Fellowship8Dan' | 'Fellowship9Dan' | 'WishForChange';
}
/** @name KusamaRuntimeProxyType (214) */
interface KusamaRuntimeProxyType extends Enum {
/** @name StagingKusamaRuntimeProxyType (224) */
interface StagingKusamaRuntimeProxyType extends Enum {
readonly isAny: boolean;
readonly isNonTransfer: boolean;
readonly isGovernance: boolean;
@@ -125,8 +81,8 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools';
}
/** @name KusamaRuntimeNposCompactSolution24 (223) */
interface KusamaRuntimeNposCompactSolution24 extends Struct {
/** @name StagingKusamaRuntimeNposCompactSolution24 (234) */
interface StagingKusamaRuntimeNposCompactSolution24 extends Struct {
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
readonly votes3: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
@@ -153,29 +109,158 @@ declare module '@polkadot/types/lookup' {
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
}
/** @name KusamaRuntimeRuntimeHoldReason (556) */
interface KusamaRuntimeRuntimeHoldReason extends Enum {
/** @name PolkadotRuntimeParachainsAssignerOnDemandPalletCall (391) */
interface PolkadotRuntimeParachainsAssignerOnDemandPalletCall extends Enum {
readonly isPlaceOrderAllowDeath: boolean;
readonly asPlaceOrderAllowDeath: {
readonly maxAmount: u128;
readonly paraId: u32;
} & Struct;
readonly isPlaceOrderKeepAlive: boolean;
readonly asPlaceOrderKeepAlive: {
readonly maxAmount: u128;
readonly paraId: u32;
} & Struct;
readonly type: 'PlaceOrderAllowDeath' | 'PlaceOrderKeepAlive';
}
/** @name PolkadotRuntimeParachainsCoretimePalletCall (399) */
interface PolkadotRuntimeParachainsCoretimePalletCall extends Enum {
readonly isRequestCoreCount: boolean;
readonly asRequestCoreCount: {
readonly count: u16;
} & Struct;
readonly isAssignCore: boolean;
readonly asAssignCore: {
readonly core: u16;
readonly begin: u32;
readonly assignment: Vec<ITuple<[PalletBrokerCoretimeInterfaceCoreAssignment, u16]>>;
readonly endHint: Option<u32>;
} & Struct;
readonly type: 'RequestCoreCount' | 'AssignCore';
}
/** @name PolkadotRuntimeParachainsAssignerOnDemandPalletEvent (543) */
interface PolkadotRuntimeParachainsAssignerOnDemandPalletEvent extends Enum {
readonly isOnDemandOrderPlaced: boolean;
readonly asOnDemandOrderPlaced: {
readonly paraId: u32;
readonly spotPrice: u128;
} & Struct;
readonly isSpotTrafficSet: boolean;
readonly asSpotTrafficSet: {
readonly traffic: u128;
} & Struct;
readonly type: 'OnDemandOrderPlaced' | 'SpotTrafficSet';
}
/** @name PolkadotRuntimeParachainsCoretimePalletEvent (548) */
interface PolkadotRuntimeParachainsCoretimePalletEvent extends Enum {
readonly isRevenueInfoRequested: boolean;
readonly asRevenueInfoRequested: {
readonly when: u32;
} & Struct;
readonly isCoreAssigned: boolean;
readonly asCoreAssigned: {
readonly core: u32;
} & Struct;
readonly type: 'RevenueInfoRequested' | 'CoreAssigned';
}
/** @name StagingKusamaRuntimeRuntimeHoldReason (600) */
interface StagingKusamaRuntimeRuntimeHoldReason extends Enum {
readonly isPreimage: boolean;
readonly asPreimage: PalletPreimageHoldReason;
readonly isNis: boolean;
readonly asNis: PalletNisHoldReason;
readonly type: 'Nis';
readonly isStateTrieMigration: boolean;
readonly asStateTrieMigration: PalletStateTrieMigrationHoldReason;
readonly type: 'Preimage' | 'Nis' | 'StateTrieMigration';
}
/** @name PalletBeefyError (591) */
interface PalletBeefyError extends Enum {
readonly isInvalidKeyOwnershipProof: boolean;
readonly isInvalidEquivocationProof: boolean;
readonly isDuplicateOffenceReport: boolean;
readonly type: 'InvalidKeyOwnershipProof' | 'InvalidEquivocationProof' | 'DuplicateOffenceReport';
/** @name StagingKusamaRuntimeRuntimeFreezeReason (607) */
interface StagingKusamaRuntimeRuntimeFreezeReason extends Enum {
readonly isNominationPools: boolean;
readonly asNominationPools: PalletNominationPoolsFreezeReason;
readonly type: 'NominationPools';
}
/** @name SpConsensusBeefyMmrBeefyAuthoritySet (592) */
interface SpConsensusBeefyMmrBeefyAuthoritySet extends Struct {
readonly id: u64;
readonly len: u32;
readonly keysetCommitment: H256;
/** @name PalletBalancesIdAmount (800) */
interface PalletBalancesIdAmount extends Struct {
readonly id: Null;
readonly amount: u128;
}
/** @name KusamaRuntimeRuntime (891) */
type KusamaRuntimeRuntime = Null;
/** @name PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder (899) */
interface PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder extends Struct {
readonly paraId: u32;
}
/** @name PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount (900) */
interface PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount extends Struct {
readonly coreIdx: u32;
readonly count: u32;
}
/** @name PolkadotRuntimeParachainsAssignerOnDemandPalletError (901) */
interface PolkadotRuntimeParachainsAssignerOnDemandPalletError extends Enum {
readonly isInvalidParaId: boolean;
readonly isQueueFull: boolean;
readonly isSpotPriceHigherThanMaxAmount: boolean;
readonly type: 'InvalidParaId' | 'QueueFull' | 'SpotPriceHigherThanMaxAmount';
}
/** @name PolkadotRuntimeParachainsAssignerCoretimeSchedule (903) */
interface PolkadotRuntimeParachainsAssignerCoretimeSchedule extends Struct {
readonly assignments: Vec<ITuple<[PalletBrokerCoretimeInterfaceCoreAssignment, u16]>>;
readonly endHint: Option<u32>;
readonly nextSchedule: Option<u32>;
}
/** @name PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor (904) */
interface PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor extends Struct {
readonly queue: Option<PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor>;
readonly currentWork: Option<PolkadotRuntimeParachainsAssignerCoretimeWorkState>;
}
/** @name PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor (906) */
interface PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor extends Struct {
readonly first: u32;
readonly last: u32;
}
/** @name PolkadotRuntimeParachainsAssignerCoretimeWorkState (908) */
interface PolkadotRuntimeParachainsAssignerCoretimeWorkState extends Struct {
readonly assignments: Vec<ITuple<[PalletBrokerCoretimeInterfaceCoreAssignment, PolkadotRuntimeParachainsAssignerCoretimeAssignmentState]>>;
readonly endHint: Option<u32>;
readonly pos: u16;
readonly step: u16;
}
/** @name PolkadotRuntimeParachainsAssignerCoretimeAssignmentState (911) */
interface PolkadotRuntimeParachainsAssignerCoretimeAssignmentState extends Struct {
readonly ratio: u16;
readonly remaining: u16;
}
/** @name PolkadotRuntimeParachainsAssignerCoretimePalletError (912) */
interface PolkadotRuntimeParachainsAssignerCoretimePalletError extends Enum {
readonly isAssignmentsEmpty: boolean;
readonly isOverScheduled: boolean;
readonly isUnderScheduled: boolean;
readonly isDisallowedInsert: boolean;
readonly isDuplicateInsert: boolean;
readonly isAssignmentsNotSorted: boolean;
readonly type: 'AssignmentsEmpty' | 'OverScheduled' | 'UnderScheduled' | 'DisallowedInsert' | 'DuplicateInsert' | 'AssignmentsNotSorted';
}
/** @name PolkadotRuntimeParachainsCoretimePalletError (926) */
interface PolkadotRuntimeParachainsCoretimePalletError extends Enum {
readonly isNotBroker: boolean;
readonly type: 'NotBroker';
}
/** @name StagingKusamaRuntimeRuntime (972) */
type StagingKusamaRuntimeRuntime = Null;
} // declare module
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '10.12.1' };
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '10.13.1' };
@@ -37,31 +37,34 @@ import type { EvmAccount, EvmCallInfo, EvmCallInfoV2, EvmCreateInfo, EvmCreateIn
import type { AnySignature, EcdsaSignature, Ed25519Signature, Era, Extrinsic, ExtrinsicEra, ExtrinsicPayload, ExtrinsicPayloadUnknown, ExtrinsicPayloadV4, ExtrinsicSignature, ExtrinsicSignatureV4, ExtrinsicUnknown, ExtrinsicV4, ImmortalEra, MortalEra, MultiSignature, Signature, SignerPayload, Sr25519Signature } from '@polkadot/types/interfaces/extrinsics';
import type { FungiblesAccessError } from '@polkadot/types/interfaces/fungibles';
import type { AssetOptions, Owner, PermissionLatest, PermissionVersions, PermissionsV1 } from '@polkadot/types/interfaces/genericAsset';
import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
import type { ActiveGilt, ActiveGiltsTotal, ActiveIndex, GiltBid } from '@polkadot/types/interfaces/gilt';
import type { AuthorityIndex, AuthorityList, AuthoritySet, AuthoritySetChange, AuthoritySetChanges, AuthorityWeight, DelayKind, DelayKindBest, EncodedFinalityProofs, ForkTreePendingChange, ForkTreePendingChangeNode, GrandpaCommit, GrandpaEquivocation, GrandpaEquivocationProof, GrandpaEquivocationValue, GrandpaJustification, GrandpaPrecommit, GrandpaPrevote, GrandpaSignedPrecommit, JustificationNotification, KeyOwnerProof, NextAuthority, PendingChange, PendingPause, PendingResume, Precommits, Prevotes, ReportedRoundStates, RoundState, SetId, StoredPendingChange, StoredState } from '@polkadot/types/interfaces/grandpa';
import type { IdentityFields, IdentityInfo, IdentityInfoAdditional, IdentityInfoTo198, IdentityJudgement, RegistrarIndex, RegistrarInfo, Registration, RegistrationJudgement, RegistrationTo198 } from '@polkadot/types/interfaces/identity';
import type { AuthIndex, AuthoritySignature, Heartbeat, HeartbeatTo244, OpaqueMultiaddr, OpaqueNetworkState, OpaquePeerId } from '@polkadot/types/interfaces/imOnline';
import type { CallIndex, LotteryConfig } from '@polkadot/types/interfaces/lottery';
import type { CustomMetadata15, CustomValueMetadata15, ErrorMetadataLatest, ErrorMetadataV10, ErrorMetadataV11, ErrorMetadataV12, ErrorMetadataV13, ErrorMetadataV14, ErrorMetadataV9, EventMetadataLatest, EventMetadataV10, EventMetadataV11, EventMetadataV12, EventMetadataV13, EventMetadataV14, EventMetadataV9, ExtrinsicMetadataLatest, ExtrinsicMetadataV11, ExtrinsicMetadataV12, ExtrinsicMetadataV13, ExtrinsicMetadataV14, ExtrinsicMetadataV15, FunctionArgumentMetadataLatest, FunctionArgumentMetadataV10, FunctionArgumentMetadataV11, FunctionArgumentMetadataV12, FunctionArgumentMetadataV13, FunctionArgumentMetadataV14, FunctionArgumentMetadataV9, FunctionMetadataLatest, FunctionMetadataV10, FunctionMetadataV11, FunctionMetadataV12, FunctionMetadataV13, FunctionMetadataV14, FunctionMetadataV9, MetadataAll, MetadataLatest, MetadataV10, MetadataV11, MetadataV12, MetadataV13, MetadataV14, MetadataV15, MetadataV9, ModuleConstantMetadataV10, ModuleConstantMetadataV11, ModuleConstantMetadataV12, ModuleConstantMetadataV13, ModuleConstantMetadataV9, ModuleMetadataV10, ModuleMetadataV11, ModuleMetadataV12, ModuleMetadataV13, ModuleMetadataV9, OpaqueMetadata, OuterEnums15, PalletCallMetadataLatest, PalletCallMetadataV14, PalletConstantMetadataLatest, PalletConstantMetadataV14, PalletErrorMetadataLatest, PalletErrorMetadataV14, PalletEventMetadataLatest, PalletEventMetadataV14, PalletMetadataLatest, PalletMetadataV14, PalletMetadataV15, PalletStorageMetadataLatest, PalletStorageMetadataV14, PortableType, PortableTypeV14, RuntimeApiMetadataLatest, RuntimeApiMetadataV15, RuntimeApiMethodMetadataV15, RuntimeApiMethodParamMetadataV15, SignedExtensionMetadataLatest, SignedExtensionMetadataV14, StorageEntryMetadataLatest, StorageEntryMetadataV10, StorageEntryMetadataV11, StorageEntryMetadataV12, StorageEntryMetadataV13, StorageEntryMetadataV14, StorageEntryMetadataV9, StorageEntryModifierLatest, StorageEntryModifierV10, StorageEntryModifierV11, StorageEntryModifierV12, StorageEntryModifierV13, StorageEntryModifierV14, StorageEntryModifierV9, StorageEntryTypeLatest, StorageEntryTypeV10, StorageEntryTypeV11, StorageEntryTypeV12, StorageEntryTypeV13, StorageEntryTypeV14, StorageEntryTypeV9, StorageHasher, StorageHasherV10, StorageHasherV11, StorageHasherV12, StorageHasherV13, StorageHasherV14, StorageHasherV9, StorageMetadataV10, StorageMetadataV11, StorageMetadataV12, StorageMetadataV13, StorageMetadataV9 } from '@polkadot/types/interfaces/metadata';
import type { Mixnode, MixnodesErr, SessionPhase, SessionStatus } from '@polkadot/types/interfaces/mixnet';
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrHash, MmrLeafBatchProof, MmrLeafIndex, MmrLeafProof, MmrNodeIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
import type { NftCollectionId, NftItemId } from '@polkadot/types/interfaces/nfts';
import type { NpApiError, NpPoolId } from '@polkadot/types/interfaces/nompools';
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
import type { DeferredOffenceOf, Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences';
import type { AbridgedCandidateReceipt, AbridgedHostConfiguration, AbridgedHrmpChannel, AssignmentId, AssignmentKind, AttestedCandidate, AuctionIndex, AuthorityDiscoveryId, AvailabilityBitfield, AvailabilityBitfieldRecord, BackedCandidate, Bidder, BufferedSessionChange, CandidateCommitments, CandidateDescriptor, CandidateEvent, CandidateHash, CandidateInfo, CandidatePendingAvailability, CandidateReceipt, CollatorId, CollatorSignature, CommittedCandidateReceipt, CoreAssignment, CoreIndex, CoreOccupied, CoreState, DisputeLocation, DisputeProof, DisputeResult, DisputeState, DisputeStatement, DisputeStatementSet, DisputesTimeSlot, DoubleVoteReport, DownwardMessage, ExecutorParam, ExecutorParams, ExecutorParamsHash, ExplicitDisputeStatement, GlobalValidationData, GlobalValidationSchedule, GroupIndex, GroupRotationInfo, HeadData, HostConfiguration, HrmpChannel, HrmpChannelId, HrmpOpenChannelRequest, InboundDownwardMessage, InboundHrmpMessage, InboundHrmpMessages, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, InvalidDisputeStatementKind, LeasePeriod, LeasePeriodOf, LocalValidationData, MessageIngestionType, MessageQueueChain, MessagingStateSnapshot, MessagingStateSnapshotEgressEntry, MultiDisputeStatementSet, NewBidder, OccupiedCore, OccupiedCoreAssumption, OldV1SessionInfo, OutboundHrmpMessage, ParaGenesisArgs, ParaId, ParaInfo, ParaLifecycle, ParaPastCodeMeta, ParaScheduling, ParaValidatorIndex, ParachainDispatchOrigin, ParachainInherentData, ParachainProposal, ParachainsInherentData, ParathreadClaim, ParathreadClaimQueue, ParathreadEntry, PendingSlashes, PersistedValidationData, PvfCheckStatement, PvfExecTimeoutKind, PvfPrepTimeoutKind, QueuedParathread, RegisteredParachainInfo, RelayBlockNumber, RelayChainBlockNumber, RelayChainHash, RelayHash, Remark, ReplacementTimes, Retriable, ScheduledCore, Scheduling, ScrapedOnChainVotes, ServiceQuality, SessionInfo, SessionInfoValidatorGroup, SignedAvailabilityBitfield, SignedAvailabilityBitfields, SigningContext, SlashingOffenceKind, SlotRange, SlotRange10, Statement, SubId, SystemInherentData, TransientValidationData, UpgradeGoAhead, UpgradeRestriction, UpwardMessage, ValidDisputeStatementKind, ValidationCode, ValidationCodeHash, ValidationData, ValidationDataType, ValidationFunctionParams, ValidatorSignature, ValidityAttestation, VecInboundHrmpMessage, WinnersData, WinnersData10, WinnersDataTuple, WinnersDataTuple10, WinningData, WinningData10, WinningDataEntry } from '@polkadot/types/interfaces/parachains';
import type { AbridgedCandidateReceipt, AbridgedHostConfiguration, AbridgedHrmpChannel, ApprovalVotingParams, AssignmentId, AssignmentKind, AsyncBackingParams, AttestedCandidate, AuctionIndex, AuthorityDiscoveryId, AvailabilityBitfield, AvailabilityBitfieldRecord, BackedCandidate, BackingState, Bidder, BufferedSessionChange, CandidateCommitments, CandidateDescriptor, CandidateEvent, CandidateHash, CandidateInfo, CandidatePendingAvailability, CandidateReceipt, CollatorId, CollatorSignature, CommittedCandidateReceipt, Constraints, CoreAssignment, CoreIndex, CoreOccupied, CoreState, DisputeLocation, DisputeProof, DisputeResult, DisputeState, DisputeStatement, DisputeStatementSet, DisputesTimeSlot, DoubleVoteReport, DownwardMessage, ExecutorParam, ExecutorParams, ExecutorParamsHash, ExplicitDisputeStatement, GlobalValidationData, GlobalValidationSchedule, GroupIndex, GroupRotationInfo, HeadData, HostConfiguration, HrmpChannel, HrmpChannelId, HrmpOpenChannelRequest, InboundDownwardMessage, InboundHrmpLimitations, InboundHrmpMessage, InboundHrmpMessages, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, InvalidDisputeStatementKind, LeasePeriod, LeasePeriodOf, LocalValidationData, MessageIngestionType, MessageQueueChain, MessagingStateSnapshot, MessagingStateSnapshotEgressEntry, MultiDisputeStatementSet, NewBidder, NodeFeatures, OccupiedCore, OccupiedCoreAssumption, OldV1SessionInfo, OutboundHrmpChannelLimitations, OutboundHrmpMessage, ParaGenesisArgs, ParaId, ParaInfo, ParaLifecycle, ParaPastCodeMeta, ParaScheduling, ParaValidatorIndex, ParachainDispatchOrigin, ParachainInherentData, ParachainProposal, ParachainsInherentData, ParathreadClaim, ParathreadClaimQueue, ParathreadEntry, PendingSlashes, PersistedValidationData, PvfCheckStatement, PvfExecTimeoutKind, PvfPrepTimeoutKind, QueuedParathread, RegisteredParachainInfo, RelayBlockNumber, RelayChainBlockNumber, RelayChainHash, RelayHash, Remark, ReplacementTimes, Retriable, ScheduledCore, Scheduling, ScrapedOnChainVotes, ServiceQuality, SessionInfo, SessionInfoValidatorGroup, SignedAvailabilityBitfield, SignedAvailabilityBitfields, SigningContext, SlashingOffenceKind, SlotRange, SlotRange10, Statement, SubId, SystemInherentData, TransientValidationData, UpgradeGoAhead, UpgradeRestriction, UpwardMessage, ValidDisputeStatementKind, ValidationCode, ValidationCodeHash, ValidationData, ValidationDataType, ValidationFunctionParams, ValidatorSignature, ValidityAttestation, VecInboundHrmpMessage, WinnersData, WinnersData10, WinnersDataTuple, WinnersDataTuple10, WinningData, WinningData10, WinningDataEntry } from '@polkadot/types/interfaces/parachains';
import type { FeeDetails, InclusionFee, RuntimeDispatchInfo, RuntimeDispatchInfoV1, RuntimeDispatchInfoV2 } from '@polkadot/types/interfaces/payment';
import type { Approvals } from '@polkadot/types/interfaces/poll';
import type { ProxyAnnouncement, ProxyDefinition, ProxyType } from '@polkadot/types/interfaces/proxy';
import type { AccountStatus, AccountValidity } from '@polkadot/types/interfaces/purchase';
import type { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery';
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
import type { AccountId, AccountId20, AccountId32, AccountId33, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, BlockNumberFor, BlockNumberOf, Call, CallHash, CallHashOf, ChangesTrieConfiguration, ChangesTrieSignal, CodecHash, Consensus, ConsensusEngineId, CrateVersion, Digest, DigestItem, EncodedJustification, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, H1024, H128, H160, H2048, H256, H32, H512, H64, Hash, Header, HeaderPartial, I32F32, Index, IndicesLookupSource, Justification, Justifications, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiAddress, MultiSigner, OpaqueCall, Origin, OriginCaller, PalletId, PalletVersion, PalletsOrigin, Pays, PerU16, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeCall, RuntimeDbWeight, RuntimeEvent, Seal, SealV0, SignedBlock, SignedBlockWithJustification, SignedBlockWithJustifications, Slot, SlotDuration, StorageData, StorageInfo, StorageProof, TransactionInfo, TransactionLongevity, TransactionPriority, TransactionStorageProof, TransactionTag, U32F32, ValidatorId, ValidatorIdOf, Weight, WeightMultiplier, WeightV0, WeightV1, WeightV2 } from '@polkadot/types/interfaces/runtime';
import type { AccountId, AccountId20, AccountId32, AccountId33, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, BlockNumberFor, BlockNumberOf, Call, CallHash, CallHashOf, ChangesTrieConfiguration, ChangesTrieSignal, CodecHash, Consensus, ConsensusEngineId, CrateVersion, Digest, DigestItem, EncodedJustification, ExtrinsicInclusionMode, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, H1024, H128, H160, H2048, H256, H32, H512, H64, Hash, Header, HeaderPartial, I32F32, Index, IndicesLookupSource, Justification, Justifications, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiAddress, MultiSigner, OpaqueCall, Origin, OriginCaller, PalletId, PalletVersion, PalletsOrigin, Pays, PerU16, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeCall, RuntimeDbWeight, RuntimeEvent, Seal, SealV0, SignedBlock, SignedBlockWithJustification, SignedBlockWithJustifications, Slot, SlotDuration, StorageData, StorageInfo, StorageProof, TransactionInfo, TransactionLongevity, TransactionPriority, TransactionStorageProof, TransactionTag, U32F32, ValidatorId, ValidatorIdOf, Weight, WeightMultiplier, WeightV0, WeightV1, WeightV2 } from '@polkadot/types/interfaces/runtime';
import type { Si0Field, Si0LookupTypeId, Si0Path, Si0Type, Si0TypeDef, Si0TypeDefArray, Si0TypeDefBitSequence, Si0TypeDefCompact, Si0TypeDefComposite, Si0TypeDefPhantom, Si0TypeDefPrimitive, Si0TypeDefSequence, Si0TypeDefTuple, Si0TypeDefVariant, Si0TypeParameter, Si0Variant, Si1Field, Si1LookupTypeId, Si1Path, Si1Type, Si1TypeDef, Si1TypeDefArray, Si1TypeDefBitSequence, Si1TypeDefCompact, Si1TypeDefComposite, Si1TypeDefPrimitive, Si1TypeDefSequence, Si1TypeDefTuple, Si1TypeDefVariant, Si1TypeParameter, Si1Variant, SiField, SiLookupTypeId, SiPath, SiType, SiTypeDef, SiTypeDefArray, SiTypeDefBitSequence, SiTypeDefCompact, SiTypeDefComposite, SiTypeDefPrimitive, SiTypeDefSequence, SiTypeDefTuple, SiTypeDefVariant, SiTypeParameter, SiVariant } from '@polkadot/types/interfaces/scaleInfo';
import type { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, ScheduledTo254, TaskAddress } from '@polkadot/types/interfaces/scheduler';
import type { BeefyKey, FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys10, SessionKeys10B, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, SessionKeys6B, SessionKeys7, SessionKeys7B, SessionKeys8, SessionKeys8B, SessionKeys9, SessionKeys9B, ValidatorCount } from '@polkadot/types/interfaces/session';
import type { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society';
import type { ActiveEraInfo, CompactAssignments, CompactAssignmentsTo257, CompactAssignmentsTo265, CompactAssignmentsWith16, CompactAssignmentsWith24, CompactScore, CompactScoreCompact, ElectionCompute, ElectionPhase, ElectionResult, ElectionScore, ElectionSize, ElectionStatus, EraIndex, EraPoints, EraRewardPoints, EraRewards, Exposure, ExtendedBalance, Forcing, IndividualExposure, KeyType, MomentOf, Nominations, NominatorIndex, NominatorIndexCompact, OffchainAccuracy, OffchainAccuracyCompact, PhragmenScore, Points, RawSolution, RawSolutionTo265, RawSolutionWith16, RawSolutionWith24, ReadySolution, RewardDestination, RewardPoint, RoundSnapshot, SeatHolder, SignedSubmission, SignedSubmissionOf, SignedSubmissionTo276, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SolutionOrSnapshotSize, SolutionSupport, SolutionSupports, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, SubmissionIndicesOf, Supports, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorIndexCompact, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196, ValidatorPrefsWithBlocked, ValidatorPrefsWithCommission, VoteWeight, Voter } from '@polkadot/types/interfaces/staking';
import type { ApiId, BlockTrace, BlockTraceEvent, BlockTraceEventData, BlockTraceSpan, KeyValueOption, MigrationStatusResult, ReadProof, RuntimeVersion, RuntimeVersionApi, RuntimeVersionPartial, RuntimeVersionPre3, RuntimeVersionPre4, SpecVersion, StorageChangeSet, TraceBlockResponse, TraceError } from '@polkadot/types/interfaces/state';
import type { StatementStoreInvalidStatement, StatementStoreStatementSource, StatementStoreValidStatement } from '@polkadot/types/interfaces/statement';
import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support';
import type { AccountInfo, AccountInfoWithDualRefCount, AccountInfoWithProviders, AccountInfoWithRefCount, AccountInfoWithRefCountU8, AccountInfoWithTripleRefCount, ApplyExtrinsicResult, ApplyExtrinsicResultPre6, ArithmeticError, BlockLength, BlockWeights, ChainProperties, ChainType, ConsumedWeight, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorModulePre6, DispatchErrorModuleU8, DispatchErrorModuleU8a, DispatchErrorPre6, DispatchErrorPre6First, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, DispatchOutcomePre6, DispatchResult, DispatchResultOf, DispatchResultTo198, Event, EventId, EventIndex, EventRecord, Health, InvalidTransaction, Key, LastRuntimeUpgradeInfo, NetworkState, NetworkStatePeerset, NetworkStatePeersetInfo, NodeRole, NotConnectedPeer, Peer, PeerEndpoint, PeerEndpointAddr, PeerInfo, PeerPing, PerDispatchClassU32, PerDispatchClassWeight, PerDispatchClassWeightsPerClass, Phase, RawOrigin, RefCount, RefCountTo259, SyncState, SystemOrigin, TokenError, TransactionValidityError, TransactionalError, UnknownTransaction, WeightPerClass } from '@polkadot/types/interfaces/system';
import type { Bounty, BountyIndex, BountyStatus, BountyStatusActive, BountyStatusCuratorProposed, BountyStatusPendingPayout, OpenTip, OpenTipFinderTo225, OpenTipTip, OpenTipTo225, TreasuryProposal } from '@polkadot/types/interfaces/treasury';
@@ -109,6 +112,7 @@ declare module '@polkadot/types/types/registry' {
ApplyExtrinsicResultPre6: ApplyExtrinsicResultPre6;
ApprovalFlag: ApprovalFlag;
Approvals: Approvals;
ApprovalVotingParams: ApprovalVotingParams;
ArithmeticError: ArithmeticError;
AssetApproval: AssetApproval;
AssetApprovalKey: AssetApprovalKey;
@@ -124,6 +128,7 @@ declare module '@polkadot/types/types/registry' {
AssetOptions: AssetOptions;
AssignmentId: AssignmentId;
AssignmentKind: AssignmentKind;
AsyncBackingParams: AsyncBackingParams;
AttestedCandidate: AttestedCandidate;
AuctionIndex: AuctionIndex;
AuthIndex: AuthIndex;
@@ -146,6 +151,7 @@ declare module '@polkadot/types/types/registry' {
BabeGenesisConfigurationV1: BabeGenesisConfigurationV1;
BabeWeight: BabeWeight;
BackedCandidate: BackedCandidate;
BackingState: BackingState;
Balance: Balance;
BalanceLock: BalanceLock;
BalanceLockTo212: BalanceLockTo212;
@@ -248,6 +254,7 @@ declare module '@polkadot/types/types/registry' {
ConfigData: ConfigData;
Consensus: Consensus;
ConsensusEngineId: ConsensusEngineId;
Constraints: Constraints;
ConsumedWeight: ConsumedWeight;
ContractCallFlags: ContractCallFlags;
ContractCallRequest: ContractCallRequest;
@@ -471,6 +478,7 @@ declare module '@polkadot/types/types/registry' {
ExtendedBalance: ExtendedBalance;
Extrinsic: Extrinsic;
ExtrinsicEra: ExtrinsicEra;
ExtrinsicInclusionMode: ExtrinsicInclusionMode;
ExtrinsicMetadataLatest: ExtrinsicMetadataLatest;
ExtrinsicMetadataV11: ExtrinsicMetadataV11;
ExtrinsicMetadataV12: ExtrinsicMetadataV12;
@@ -524,6 +532,7 @@ declare module '@polkadot/types/types/registry' {
FungibilityV2: FungibilityV2;
FungiblesAccessError: FungiblesAccessError;
Gas: Gas;
GenesisBuildErr: GenesisBuildErr;
GiltBid: GiltBid;
GlobalValidationData: GlobalValidationData;
GlobalValidationSchedule: GlobalValidationSchedule;
@@ -580,6 +589,7 @@ declare module '@polkadot/types/types/registry' {
ImmortalEra: ImmortalEra;
ImportedAux: ImportedAux;
InboundDownwardMessage: InboundDownwardMessage;
InboundHrmpLimitations: InboundHrmpLimitations;
InboundHrmpMessage: InboundHrmpMessage;
InboundHrmpMessages: InboundHrmpMessages;
InboundLaneData: InboundLaneData;
@@ -668,6 +678,8 @@ declare module '@polkadot/types/types/registry' {
MetadataV15: MetadataV15;
MetadataV9: MetadataV9;
MigrationStatusResult: MigrationStatusResult;
Mixnode: Mixnode;
MixnodesErr: MixnodesErr;
MmrBatchProof: MmrBatchProof;
MmrEncodableOpaqueLeaf: MmrEncodableOpaqueLeaf;
MmrError: MmrError;
@@ -723,6 +735,7 @@ declare module '@polkadot/types/types/registry' {
NextConfigDescriptorV1: NextConfigDescriptorV1;
NftCollectionId: NftCollectionId;
NftItemId: NftItemId;
NodeFeatures: NodeFeatures;
NodeRole: NodeRole;
Nominations: Nominations;
NominatorIndex: NominatorIndex;
@@ -756,6 +769,7 @@ declare module '@polkadot/types/types/registry' {
OriginKindV0: OriginKindV0;
OriginKindV1: OriginKindV1;
OriginKindV2: OriginKindV2;
OutboundHrmpChannelLimitations: OutboundHrmpChannelLimitations;
OutboundHrmpMessage: OutboundHrmpMessage;
OutboundLaneData: OutboundLaneData;
OutboundMessageFee: OutboundMessageFee;
@@ -961,6 +975,8 @@ declare module '@polkadot/types/types/registry' {
SessionKeys8B: SessionKeys8B;
SessionKeys9: SessionKeys9;
SessionKeys9B: SessionKeys9B;
SessionPhase: SessionPhase;
SessionStatus: SessionStatus;
SetId: SetId;
SetIndex: SetIndex;
Si0Field: Si0Field;
@@ -1045,6 +1061,9 @@ declare module '@polkadot/types/types/registry' {
StakingLedgerTo240: StakingLedgerTo240;
Statement: Statement;
StatementKind: StatementKind;
StatementStoreInvalidStatement: StatementStoreInvalidStatement;
StatementStoreStatementSource: StatementStoreStatementSource;
StatementStoreValidStatement: StatementStoreValidStatement;
StorageChangeSet: StorageChangeSet;
StorageData: StorageData;
StorageDeposit: StorageDeposit;
+24 -17
View File
@@ -5,25 +5,32 @@
// this is required to allow for ambient/previous definitions
import '@polkadot/types/types/registry';
import type { KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin, KusamaRuntimeNposCompactSolution24, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeRuntime, KusamaRuntimeRuntimeHoldReason, KusamaRuntimeSessionKeys, PalletBeefyCall, PalletBeefyError, SpConsensusBeefyCommitment, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyEcdsaCryptoSignature, SpConsensusBeefyEquivocationProof, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusBeefyPayload, SpConsensusBeefyVoteMessage } from '@polkadot/types/lookup';
import type { PalletBalancesIdAmount, PolkadotRuntimeParachainsAssignerCoretimeAssignmentState, PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor, PolkadotRuntimeParachainsAssignerCoretimePalletError, PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor, PolkadotRuntimeParachainsAssignerCoretimeSchedule, PolkadotRuntimeParachainsAssignerCoretimeWorkState, PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount, PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder, PolkadotRuntimeParachainsAssignerOnDemandPalletCall, PolkadotRuntimeParachainsAssignerOnDemandPalletError, PolkadotRuntimeParachainsAssignerOnDemandPalletEvent, PolkadotRuntimeParachainsCoretimePalletCall, PolkadotRuntimeParachainsCoretimePalletError, PolkadotRuntimeParachainsCoretimePalletEvent, StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin, StagingKusamaRuntimeNposCompactSolution24, StagingKusamaRuntimeOriginCaller, StagingKusamaRuntimeProxyType, StagingKusamaRuntimeRuntime, StagingKusamaRuntimeRuntimeFreezeReason, StagingKusamaRuntimeRuntimeHoldReason, StagingKusamaRuntimeSessionKeys } from '@polkadot/types/lookup';
declare module '@polkadot/types/types/registry' {
interface InterfaceTypes {
KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin: KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin;
KusamaRuntimeNposCompactSolution24: KusamaRuntimeNposCompactSolution24;
KusamaRuntimeOriginCaller: KusamaRuntimeOriginCaller;
KusamaRuntimeProxyType: KusamaRuntimeProxyType;
KusamaRuntimeRuntime: KusamaRuntimeRuntime;
KusamaRuntimeRuntimeHoldReason: KusamaRuntimeRuntimeHoldReason;
KusamaRuntimeSessionKeys: KusamaRuntimeSessionKeys;
PalletBeefyCall: PalletBeefyCall;
PalletBeefyError: PalletBeefyError;
SpConsensusBeefyCommitment: SpConsensusBeefyCommitment;
SpConsensusBeefyEcdsaCryptoPublic: SpConsensusBeefyEcdsaCryptoPublic;
SpConsensusBeefyEcdsaCryptoSignature: SpConsensusBeefyEcdsaCryptoSignature;
SpConsensusBeefyEquivocationProof: SpConsensusBeefyEquivocationProof;
SpConsensusBeefyMmrBeefyAuthoritySet: SpConsensusBeefyMmrBeefyAuthoritySet;
SpConsensusBeefyPayload: SpConsensusBeefyPayload;
SpConsensusBeefyVoteMessage: SpConsensusBeefyVoteMessage;
PalletBalancesIdAmount: PalletBalancesIdAmount;
PolkadotRuntimeParachainsAssignerCoretimeAssignmentState: PolkadotRuntimeParachainsAssignerCoretimeAssignmentState;
PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor: PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor;
PolkadotRuntimeParachainsAssignerCoretimePalletError: PolkadotRuntimeParachainsAssignerCoretimePalletError;
PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor: PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor;
PolkadotRuntimeParachainsAssignerCoretimeSchedule: PolkadotRuntimeParachainsAssignerCoretimeSchedule;
PolkadotRuntimeParachainsAssignerCoretimeWorkState: PolkadotRuntimeParachainsAssignerCoretimeWorkState;
PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount: PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount;
PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder: PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder;
PolkadotRuntimeParachainsAssignerOnDemandPalletCall: PolkadotRuntimeParachainsAssignerOnDemandPalletCall;
PolkadotRuntimeParachainsAssignerOnDemandPalletError: PolkadotRuntimeParachainsAssignerOnDemandPalletError;
PolkadotRuntimeParachainsAssignerOnDemandPalletEvent: PolkadotRuntimeParachainsAssignerOnDemandPalletEvent;
PolkadotRuntimeParachainsCoretimePalletCall: PolkadotRuntimeParachainsCoretimePalletCall;
PolkadotRuntimeParachainsCoretimePalletError: PolkadotRuntimeParachainsCoretimePalletError;
PolkadotRuntimeParachainsCoretimePalletEvent: PolkadotRuntimeParachainsCoretimePalletEvent;
StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin: StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin;
StagingKusamaRuntimeNposCompactSolution24: StagingKusamaRuntimeNposCompactSolution24;
StagingKusamaRuntimeOriginCaller: StagingKusamaRuntimeOriginCaller;
StagingKusamaRuntimeProxyType: StagingKusamaRuntimeProxyType;
StagingKusamaRuntimeRuntime: StagingKusamaRuntimeRuntime;
StagingKusamaRuntimeRuntimeFreezeReason: StagingKusamaRuntimeRuntimeFreezeReason;
StagingKusamaRuntimeRuntimeHoldReason: StagingKusamaRuntimeRuntimeHoldReason;
StagingKusamaRuntimeSessionKeys: StagingKusamaRuntimeSessionKeys;
} // InterfaceTypes
} // declare module
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+4 -4
View File
@@ -18,7 +18,7 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "10.12.1",
"version": "10.13.1",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^12.6.2",
@@ -26,9 +26,9 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/types": "10.12.1",
"@polkadot/types-augment": "10.12.1",
"@polkadot/types-support": "10.12.1",
"@polkadot/types": "10.13.1",
"@polkadot/types-augment": "10.13.1",
"@polkadot/types-support": "10.13.1",
"@polkadot/util-crypto": "^12.6.2"
}
}
+4 -4
View File
@@ -123,12 +123,12 @@ export abstract class AbstractArray<T extends Codec> extends Array<T> implements
/**
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
*/
public toHuman (isExtended?: boolean): AnyJson {
public toHuman (isExtended?: boolean, disableAscii?: boolean): AnyJson {
const count = this.length;
const result = new Array<AnyJson>(count);
for (let i = 0; i < count; i++) {
result[i] = this[i] && this[i].toHuman(isExtended);
result[i] = this[i] && this[i].toHuman(isExtended, disableAscii);
}
return result;
@@ -153,12 +153,12 @@ export abstract class AbstractArray<T extends Codec> extends Array<T> implements
/**
* @description Converts the value in a best-fit primitive form
*/
public toPrimitive (): AnyJson {
public toPrimitive (disableAscii?: boolean): AnyJson {
const count = this.length;
const result = new Array<AnyJson>(count);
for (let i = 0; i < count; i++) {
result[i] = this[i] && this[i].toPrimitive();
result[i] = this[i] && this[i].toPrimitive(disableAscii);
}
return result;
+4 -4
View File
@@ -75,8 +75,8 @@ export abstract class AbstractBase<T extends Codec> implements Codec {
/**
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
*/
public toHuman (isExtended?: boolean): AnyJson {
return this.#raw.toHuman(isExtended);
public toHuman (isExtended?: boolean, disableAscii?: boolean): AnyJson {
return this.#raw.toHuman(isExtended, disableAscii);
}
/**
@@ -89,8 +89,8 @@ export abstract class AbstractBase<T extends Codec> implements Codec {
/**
* @description Converts the value in a best-fit primitive form
*/
public toPrimitive (): AnyJson {
return this.#raw.toPrimitive();
public toPrimitive (disableAscii?: boolean): AnyJson {
return this.#raw.toPrimitive(disableAscii);
}
/**
+2 -2
View File
@@ -60,7 +60,7 @@ export abstract class AbstractObject<T extends ToString> implements CodecObject<
/**
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
*/
public abstract toHuman (isExtended?: boolean): AnyJson;
public abstract toHuman (isExtended?: boolean, disableAscii?: boolean): AnyJson;
/**
* @description Converts the Object to JSON, typically used for RPC transfers
@@ -70,7 +70,7 @@ export abstract class AbstractObject<T extends ToString> implements CodecObject<
/**
* @description Converts the value in a best-fit primitive form
*/
public abstract toPrimitive (): AnyJson;
public abstract toPrimitive (disableAscii?: boolean): AnyJson;
/**
* @description Returns the string representation of the value
+4 -4
View File
@@ -143,8 +143,8 @@ export class Compact<T extends INumber> implements ICompact<T> {
/**
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
*/
public toHuman (isExtended?: boolean): AnyJson {
return this.#raw.toHuman(isExtended);
public toHuman (isExtended?: boolean, disableAscii?: boolean): AnyJson {
return this.#raw.toHuman(isExtended, disableAscii);
}
/**
@@ -164,8 +164,8 @@ export class Compact<T extends INumber> implements ICompact<T> {
/**
* @description Converts the value in a best-fit primitive form
*/
public toPrimitive (): string | number {
return this.#raw.toPrimitive();
public toPrimitive (disableAscii?: boolean): string | number {
return this.#raw.toPrimitive(disableAscii);
}
/**
+4 -4
View File
@@ -374,10 +374,10 @@ export class Enum implements IEnum {
/**
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
*/
public toHuman (isExtended?: boolean): AnyJson {
public toHuman (isExtended?: boolean, disableAscii?: boolean): AnyJson {
return this.#isBasic || this.isNone
? this.type
: { [this.type]: this.#raw.toHuman(isExtended) };
: { [this.type]: this.#raw.toHuman(isExtended, disableAscii) };
}
/**
@@ -399,10 +399,10 @@ export class Enum implements IEnum {
/**
* @description Converts the value in a best-fit primitive form
*/
public toPrimitive (): AnyJson {
public toPrimitive (disableAscii?: boolean): AnyJson {
return this.#isBasic
? this.type
: { [stringCamelCase(this.type)]: this.#raw.toPrimitive() };
: { [stringCamelCase(this.type)]: this.#raw.toPrimitive(disableAscii) };
}
/**
+4 -4
View File
@@ -183,8 +183,8 @@ export class Option<T extends Codec> implements IOption<T> {
/**
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
*/
public toHuman (isExtended?: boolean): AnyJson {
return this.#raw.toHuman(isExtended);
public toHuman (isExtended?: boolean, disableAscii?: boolean): AnyJson {
return this.#raw.toHuman(isExtended, disableAscii);
}
/**
@@ -199,10 +199,10 @@ export class Option<T extends Codec> implements IOption<T> {
/**
* @description Converts the value in a best-fit primitive form
*/
public toPrimitive (): AnyJson {
public toPrimitive (disableAscii?: boolean): AnyJson {
return this.isNone
? null
: this.#raw.toPrimitive();
: this.#raw.toPrimitive(disableAscii);
}
/**
@@ -163,11 +163,11 @@ export class BTreeSet<V extends Codec = Codec> extends Set<V> implements ISet<V>
/**
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
*/
public toHuman (isExtended?: boolean): AnyJson {
public toHuman (isExtended?: boolean, disableAscii?: boolean): AnyJson {
const json: AnyJson = [];
for (const v of this.values()) {
json.push(v.toHuman(isExtended));
json.push(v.toHuman(isExtended, disableAscii));
}
return json;
@@ -196,11 +196,11 @@ export class BTreeSet<V extends Codec = Codec> extends Set<V> implements ISet<V>
/**
* @description Converts the value in a best-fit primitive form
*/
public toPrimitive (): AnyJson {
public toPrimitive (disableAscii?: boolean): AnyJson {
const json: AnyJson = [];
for (const v of this.values()) {
json.push(v.toPrimitive());
json.push(v.toPrimitive(disableAscii));
}
return json;
+6 -6
View File
@@ -177,15 +177,15 @@ export class CodecMap<K extends Codec = Codec, V extends Codec = Codec> extends
/**
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
*/
public toHuman (isExtended?: boolean): Record<string, AnyJson> {
public toHuman (isExtended?: boolean, disableAscii?: boolean): Record<string, AnyJson> {
const json: Record<string, AnyJson> = {};
for (const [k, v] of this.entries()) {
json[
k instanceof Raw && k.isAscii
k instanceof Raw && !disableAscii && k.isAscii
? k.toUtf8()
: k.toString()
] = v.toHuman(isExtended);
] = v.toHuman(isExtended, disableAscii);
}
return json;
@@ -207,15 +207,15 @@ export class CodecMap<K extends Codec = Codec, V extends Codec = Codec> extends
/**
* @description Converts the value in a best-fit primitive form
*/
public toPrimitive (): AnyJson {
public toPrimitive (disableAscii?: boolean): AnyJson {
const json: Record<string, AnyJson> = {};
for (const [k, v] of this.entries()) {
json[
k instanceof Raw && k.isAscii
k instanceof Raw && !disableAscii && k.isAscii
? k.toUtf8()
: k.toString()
] = v.toPrimitive();
] = v.toPrimitive(disableAscii);
}
return json;
@@ -84,19 +84,19 @@ export class WrapperKeepOpaque<T extends Codec> extends Bytes {
/**
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
*/
public override toHuman (isExtended?: boolean): AnyJson {
public override toHuman (isExtended?: boolean, disableAscii?: boolean): AnyJson {
return this.#decoded
? this.#decoded.toHuman(isExtended)
: super.toHuman();
? this.#decoded.toHuman(isExtended, disableAscii)
: super.toHuman(isExtended, disableAscii);
}
/**
* @description Converts the value in a best-fit primitive form
*/
public override toPrimitive (): any {
public override toPrimitive (disableAscii?: boolean): any {
return this.#decoded
? this.#decoded.toPrimitive()
: super.toPrimitive();
? this.#decoded.toPrimitive(disableAscii)
: super.toPrimitive(disableAscii);
}
/**
+4 -4
View File
@@ -88,11 +88,11 @@ export class Json extends Map<string, any> implements Codec {
}
/**
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
* @description Converts the Object to a human-friendly JSON, with additional fields, expansion and formatting of information
*/
public toHuman (): Record<string, AnyJson> {
return [...this.entries()].reduce<Record<string, AnyJson>>((json, [key, value]): Record<string, AnyJson> => {
json[key] = isFunction((value as Codec).toHuman)
json[key] = isFunction((value as Codec)?.toHuman)
? (value as Codec).toHuman()
: value as AnyJson;
@@ -114,10 +114,10 @@ export class Json extends Map<string, any> implements Codec {
/**
* @description Converts the value in a best-fit primitive form
*/
public toPrimitive (): Record<string, AnyJson> {
public toPrimitive (disableAscii?: boolean): Record<string, AnyJson> {
return [...this.entries()].reduce<Record<string, AnyJson>>((json, [key, value]): Record<string, AnyJson> => {
json[key] = isFunction((value as Codec).toPrimitive)
? (value as Codec).toPrimitive()
? (value as Codec).toPrimitive(disableAscii)
: value as AnyJson;
return json;
@@ -82,6 +82,10 @@ describe('Raw', (): void => {
expect(new Raw(registry, '0x2021222324').isAscii).toBe(true);
});
it('has valid toHuman with disableAscii option set as true', (): void => {
expect(new Raw(registry, new Uint8Array([85, 85, 85, 85, 85, 85, 85, 85])).toHuman(undefined, true)).toEqual('0x5555555555555555');
});
it('has valid toPrimitive', (): void => {
expect(new Raw(registry, 'testing').toPrimitive()).toEqual('testing');
expect(new Raw(registry, '0xe4bda0e5a5bd').toPrimitive()).toEqual('0xe4bda0e5a5bd');
+4 -4
View File
@@ -110,8 +110,8 @@ export class Raw extends Uint8Array implements IU8a {
/**
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
*/
public toHuman (): AnyJson {
return this.toPrimitive();
public toHuman (_isExtended?: boolean, disableAscii?: boolean): AnyJson {
return this.toPrimitive(disableAscii);
}
/**
@@ -124,8 +124,8 @@ export class Raw extends Uint8Array implements IU8a {
/**
* @description Converts the value in a best-fit primitive form
*/
public toPrimitive (): AnyJson {
if (this.isAscii) {
public toPrimitive (disableAscii?: boolean): AnyJson {
if (!disableAscii && this.isAscii) {
const text = this.toUtf8();
// ensure we didn't end up with multibyte codepoints
+4 -4
View File
@@ -268,11 +268,11 @@ export class Struct<
/**
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
*/
public toHuman (isExtended?: boolean): Record<string, AnyJson> {
public toHuman (isExtended?: boolean, disableAscii?: boolean): Record<string, AnyJson> {
const json: Record<string, AnyJson> = {};
for (const [k, v] of this.entries()) {
json[k as string] = v.toHuman(isExtended);
json[k as string] = v.toHuman(isExtended, disableAscii);
}
return json;
@@ -296,11 +296,11 @@ export class Struct<
/**
* @description Converts the value in a best-fit primitive form
*/
public toPrimitive (): Record<string, AnyJson> {
public toPrimitive (disableAscii?: boolean): Record<string, AnyJson> {
const json: Record<string, AnyJson> = {};
for (const [k, v] of this.entries()) {
json[k as string] = v.toPrimitive();
json[k as string] = v.toPrimitive(disableAscii);
}
return json;
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '10.12.1' };
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '10.13.1' };
+5 -2
View File
@@ -86,8 +86,10 @@ export interface Codec {
/**
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
* @param isExtended When set, for some (e.g. call) it can add more info, e.g. metadata documentation. (Generally not needed in all cases, but can be useful in Events, Calls, ...)
* @param disableAscii When set, for some (e.g. `Raw` types) it will disable converting the value to ascii.
*/
toHuman (isExtended?: boolean): AnyJson;
toHuman (isExtended?: boolean, disableAscii?: boolean): AnyJson;
/**
* @description Converts the Object to JSON, typically used for RPC transfers
@@ -96,8 +98,9 @@ export interface Codec {
/**
* @description Converts the value in a best-fit primitive form
* @param disableAscii
*/
toPrimitive (): AnyJson;
toPrimitive (disableAscii?: boolean): AnyJson;
/**
* @description Returns the base runtime type name for this instance
+2 -2
View File
@@ -31,7 +31,7 @@ export interface INumber extends Codec {
toBigInt (): bigint;
toBn (): BN;
toNumber (): number;
toPrimitive (): string | number;
toPrimitive (disableAscii?: boolean): string | number;
}
export interface IFloat extends Codec {
@@ -78,7 +78,7 @@ export interface IU8a extends Uint8Array, Codec {
readonly isUtf8: boolean
bitLength (): number;
toHuman (isExtended?: boolean): any;
toHuman (isExtended?: boolean, disableAscii?: boolean): any;
toJSON (): any;
toUtf8 (): string;
}
+3 -3
View File
@@ -18,14 +18,14 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "10.12.1",
"version": "10.13.1",
"main": "index.js",
"dependencies": {
"@polkadot/types-codec": "10.12.1",
"@polkadot/types-codec": "10.13.1",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/types": "10.12.1"
"@polkadot/types": "10.13.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '10.12.1' };
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '10.13.1' };
+5 -5
View File
@@ -18,17 +18,17 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "10.12.1",
"version": "10.13.1",
"main": "index.js",
"dependencies": {
"@polkadot/networks": "^12.6.2",
"@polkadot/types": "10.12.1",
"@polkadot/types-codec": "10.12.1",
"@polkadot/types-create": "10.12.1",
"@polkadot/types": "10.13.1",
"@polkadot/types-codec": "10.13.1",
"@polkadot/types-create": "10.13.1",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/api": "10.12.1"
"@polkadot/api": "10.13.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '10.12.1' };
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '10.13.1' };
@@ -4178,5 +4178,687 @@ export const upgrades: ChainUpgradesExpanded = [
1
]
]
],
[
15912007,
9360,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
1
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
2
],
[
"0x49eaaf1b548a0cb0",
1
],
[
"0x91d5df18b0d2cf58",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
2
],
[
"0xf3ff14d5ab527059",
2
],
[
"0x17a6bc0d0062aeb3",
1
]
]
],
[
16356547,
9370,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
1
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
2
],
[
"0x49eaaf1b548a0cb0",
1
],
[
"0x91d5df18b0d2cf58",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
2
],
[
"0xf3ff14d5ab527059",
2
],
[
"0x17a6bc0d0062aeb3",
1
]
]
],
[
17335450,
9381,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
1
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
2
],
[
"0x49eaaf1b548a0cb0",
1
],
[
"0x91d5df18b0d2cf58",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
3
],
[
"0xf3ff14d5ab527059",
3
],
[
"0x17a6bc0d0062aeb3",
1
]
]
],
[
18062739,
9420,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
4
],
[
"0x49eaaf1b548a0cb0",
2
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
]
]
],
[
18625000,
9430,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
4
],
[
"0x49eaaf1b548a0cb0",
2
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
]
]
],
[
20465806,
1000000,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
5
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
]
]
],
[
21570000,
1001000,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
7
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xfbc577b9d747efd6",
1
]
]
],
[
21786291,
1001002,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
7
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xfbc577b9d747efd6",
1
]
]
],
[
22515962,
1001003,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
7
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xfbc577b9d747efd6",
1
]
]
]
];
@@ -2628,5 +2628,593 @@ export const upgrades: ChainUpgradesExpanded = [
1
]
]
],
[
13800015,
9340,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
1
],
[
"0x40fe3ad401f8959a",
6
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
2
],
[
"0x49eaaf1b548a0cb0",
1
],
[
"0x91d5df18b0d2cf58",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
2
],
[
"0xf3ff14d5ab527059",
2
]
]
],
[
14188833,
9360,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
1
],
[
"0x40fe3ad401f8959a",
6
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
2
],
[
"0x49eaaf1b548a0cb0",
1
],
[
"0x91d5df18b0d2cf58",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
2
],
[
"0xf3ff14d5ab527059",
2
]
]
],
[
14543918,
9370,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
1
],
[
"0x40fe3ad401f8959a",
6
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
2
],
[
"0x49eaaf1b548a0cb0",
1
],
[
"0x91d5df18b0d2cf58",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
2
],
[
"0xf3ff14d5ab527059",
2
]
]
],
[
15978362,
9420,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
4
],
[
"0x49eaaf1b548a0cb0",
2
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
]
]
],
[
16450000,
9430,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
4
],
[
"0x49eaaf1b548a0cb0",
2
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
]
]
],
[
17840000,
9431,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
4
],
[
"0x49eaaf1b548a0cb0",
2
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
]
]
],
[
18407475,
1000001,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
5
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
]
]
],
[
19551000,
1001002,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
5
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0xfbc577b9d747efd6",
1
]
]
]
];
File diff suppressed because it is too large Load Diff
@@ -19,5 +19,7 @@ export const upgrades: ChainUpgradesRaw = [
[12665416, 9200], [12909508, 9220], [13109752, 9230], [13555777, 9250], [13727747, 9260],
[14248044, 9271], [14433840, 9280], [14645900, 9291], [15048375, 9300], [15426015, 9320],
// we have 9340 via system.setStorage (whitelist.WhitelistedCallDispatched event)
[15680713, 9340], [15756296, 9350]
[15680713, 9340], [15756296, 9350], [15912007, 9360], [16356547, 9370], [17335450, 9381],
[18062739, 9420], [18625000, 9430], [20465806, 1000000], [21570000, 1001000], [21786291, 1001002],
[22515962, 1001003]
];
@@ -12,5 +12,7 @@ export const upgrades: ChainUpgradesRaw = [
[6321619, 9080], [6713249, 9090], [7217907, 9100], [7229126, 9110], [7560558, 9122],
[8115869, 9140], [8638103, 9151], [9280179, 9170], [9738717, 9180], [10156856, 9190],
[10458576, 9200], [10655116, 9220], [10879371, 9230], [11328884, 9250], [11532856, 9260],
[11933818, 9270], [12217535, 9280], [12245277, 9281], [12532644, 9291], [12876189, 9300]
[11933818, 9270], [12217535, 9280], [12245277, 9281], [12532644, 9291], [12876189, 9300],
[13800015, 9340], [14188833, 9360], [14543918, 9370], [15978362, 9420], [16450000, 9430],
[17840000, 9431], [18407475, 1000001], [19551000, 1001002]
];
@@ -17,5 +17,9 @@ export const upgrades: ChainUpgradesRaw = [
[10678509, 9210], [10811001, 9220], [11096116, 9230], [11409279, 9250], [11584820, 9251],
[11716837, 9260], [11876919, 9261], [11987927, 9270], [12077324, 9271], [12301871, 9280],
[12604343, 9290], [12841034, 9300], [13128237, 9310], [13272363, 9320], [13483497, 9330],
[13649433, 9340], [13761100, 9350]
[13649433, 9340], [13761100, 9350], [13847400, 9360], [14249200, 9370], [14576855, 9380],
[14849830, 9390], [15146832, 9400], [15332317, 9401], [15661793, 9420], [16165469, 9430],
[18293984, 102000], [18293991, 103000], [18451783, 104000], [18679741, 1005000], [19166695, 1006000],
[19234157, 1006001], [19542944, 1007000], [19621258, 1007001], [19761406, 1008000], [20056997, 1009000],
[20368318, 1010000]
];
+1 -1
View File
@@ -18,7 +18,7 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "10.12.1",
"version": "10.13.1",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^12.6.2",
+54 -1
View File
@@ -1,4 +1,57 @@
## extraction
## Extraction (Current)
For Substrate -
Clone the [polkadot-sdk](https://github.com/paritytech/polkadot-sdk) repository and from the ROOT run:
`cargo build --release && ./target/release/substrate-node --dev`
`--dev` sets the flag `--tmp` automatically so there is no need for purging the dev db.
For Polkadot & Kusama -
Clone the [polkadot-fellows/runtimes](https://github.com/polkadot-fellows/runtimes/tree/main) repository and from the ROOT run:
```bash
$ unset SKIP_WASM_BUILD
$ cargo build --release -p chain-spec-generator --features fast-runtime
$ ./target/release/chain-spec-generator polkadot-dev > polkadotDevChainSpec.json
```
- For kusama just change the `polkadotDevChainSpec.json` to `kusamaDevChainSpec.json`.
- When you have the `polkadot-sdk` cloned, make sure to copy the chainspec from the `runtimes` repository to `polkadot-sdk` repository.
Clone the [polkadot-sdk](https://github.com/paritytech/polkadot-sdk) repository, checkout the most recent releases tag and from the ROOT run:
```bash
$ cargo build --release --bin polkadot-prepare-worker --features fast-runtime
$ cargo build --release --bin polkadot-execute-worker --features fast-runtime
$ cargo build --release --bin polkadot --features fast-runtime
$ cp ../runtimes/polkadotDevChainSpec.json .
$ ./target/release/polkadot --chain polkadotDevChainSpec.json
```
To retrieve the metadata -
`curl -H "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method": "state_getMetadata", "params":[]}' http://localhost:9944`
- Add it to the relevant folders e.g. `v14/{kusama, polkadot, substrate}-hex.json`
To retrieve the rpc methods -
`curl -H "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method": "rpc_methods", "params":[]}' http://localhost:9944`
- Add it to the relevant folders e.g. `v14/{kusama, polkadot, substrate}-rpc.ts`
To retrieve the runtime versions -
`curl -H "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method": "state_getRuntimeVersion", "params":[]}' http://localhost:9944`
- Add it to the relevant folders e.g. `v14/{kusama, polkadot, substrate}-ver.ts`
NOTE: This all works for manual updating, but for an easier process run from root for each respective chain: `node ./scripts/metadata-get.mjs`
## extraction (Legacy)
For Substrate & Polkadot (dev chains) -
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -23,12 +23,16 @@ export default {
"beefy_unsubscribeJustifications",
"chainHead_unstable_body",
"chainHead_unstable_call",
"chainHead_unstable_continue",
"chainHead_unstable_follow",
"chainHead_unstable_genesisHash",
"chainHead_unstable_header",
"chainHead_unstable_stopOperation",
"chainHead_unstable_storage",
"chainHead_unstable_unfollow",
"chainHead_unstable_unpin",
"chainSpec_v1_chainName",
"chainSpec_v1_genesisHash",
"chainSpec_v1_properties",
"chain_getBlock",
"chain_getBlockHash",
"chain_getFinalisedHead",
@@ -67,6 +71,7 @@ export default {
"offchain_localStorageSet",
"payment_queryFeeDetails",
"payment_queryInfo",
"rpc_methods",
"state_call",
"state_callAt",
"state_getChildReadProof",
@@ -113,8 +118,8 @@ export default {
"system_syncState",
"system_unstable_networkState",
"system_version",
"transaction_unstable_submitAndWatch",
"transaction_unstable_unwatch",
"transactionWatch_unstable_submitAndWatch",
"transactionWatch_unstable_unwatch",
"unsubscribe_newHead"
]
};

Some files were not shown because too many files have changed in this diff Show More