Compare commits

...
233 Commits
Author SHA1 Message Date
github-actions[bot] 72ce4e2a36 [CI Skip] release/stable 15.0.2
skip-checks: true
2024-12-13 20:43:31 +00:00
Tarik Gul 993096b3ef 15.0.2 (#6044) 2024-12-13 15:35:37 -05:00
github-actions[bot] 1a9fe6b728 [CI Skip] bump/beta 15.0.2-0-x
skip-checks: true
2024-12-13 19:36:42 +00:00
Tarik Gul 651d651213 fix metadata on init when its value is u32 max (#6043)
* fix metadata on init when its value is u32 max

* Fix comment
2024-12-13 21:28:42 +02:00
github-actions[bot] 42b9735c32 [CI Skip] release/stable 15.0.1
skip-checks: true
2024-11-27 21:50:46 +00:00
Tarik Gul c364ee3301 15.0.1 (#6038)
* 15.0.1

* Cleanup changelog

* Update CHANGELOG
2024-11-27 23:43:00 +02:00
github-actions[bot] f96e8c42a0 [CI Skip] bump/beta 14.3.2-5-x
skip-checks: true
2024-11-25 14:15:51 +00:00
Carlo Sala 7a2da0c6d1 fix(ExtrinsicPayload): decode assetId with and without option (#6037) 2024-11-25 09:07:40 -05:00
github-actions[bot] 8fd076380e [CI Skip] bump/beta 14.3.2-4-x
skip-checks: true
2024-11-20 18:31:53 +00:00
Tarik Gul bfd1d517dd Update Substrate types to 1160002 (#6034) 2024-11-20 20:23:35 +02:00
github-actions[bot] 75a5702c13 [CI Skip] bump/beta 14.3.2-3-x
skip-checks: true
2024-11-20 17:43:53 +00:00
Tarik Gul 6316fae5fa Add testing for assetId access from ExtrinsicPayload (#6033)
* Fix ExtrinsicPayload to return correct assetId as its type

* add tests and cleanup

* revert original deletion and fix test

* remove console
2024-11-20 19:35:51 +02:00
github-actions[bot] 76ba1e54b7 [CI Skip] bump/beta 14.3.2-2-x
skip-checks: true
2024-11-19 14:26:31 +00:00
Thibaut Sardan cb1078ac4b Allow external signers to modify the payload (#6030)
* remove validateSignedTransaction

* add optional allowCallDataAlteration defaulting to true

* nit

* spacing

* Update packages/api/src/submittable/createClass.ts
2024-11-19 09:18:14 -05:00
github-actions[bot] c998d261fd [CI Skip] bump/beta 14.3.2-1-x
skip-checks: true
2024-11-18 21:00:32 +00:00
Tarik Gul c71bd49ee4 Update docs for WsProvider, and RpcCore (#6031)
* Update WS inline docs

* Update docs around RPCCORE
2024-11-18 22:52:32 +02:00
github-actions[bot] 4e71139ab9 [CI Skip] bump/beta 14.3.2-0-x
skip-checks: true
2024-11-18 16:57:25 +00:00
Tarik Gul b22620b8fe Adjust ExtrinsicV5 to fit current spec (#6029)
* Adjust ExtrinsicV5 to fit current spec

* Remove signed from `Extrinsic`

* Fix tests and error on signed v5

* Set sign functionality to error for V5

* Removing signing from payload

* Update error messaging

* Disable all signing functionality

* linter

* Fix signature tests
2024-11-18 18:49:08 +02:00
github-actions[bot] 40ac28be04 [CI Skip] release/stable 14.3.1
skip-checks: true
2024-11-12 02:09:51 +00:00
Tarik Gul 669d7ccdcb 14.3.1 (#6028)
* 14.2.4

* 14.3.1
2024-11-12 04:01:41 +02:00
github-actions[bot] 58b3808da9 [CI Skip] bump/beta 14.2.4-6-x
skip-checks: true
2024-11-12 01:21:08 +00:00
Tarik Gul 1bed656be8 Fix isClaimed for edgecase with non validator Ids (#6027) 2024-11-12 03:13:12 +02:00
github-actions[bot] e750800dec [CI Skip] bump/beta 14.2.4-5-x
skip-checks: true
2024-11-11 21:03:46 +00:00
Tarik Gul fd1871b2cd Fix isClaimed in api.derive.staking.{query, queryMulti} (#6026) 2024-11-11 22:55:49 +02:00
github-actions[bot] 8cc1038252 [CI Skip] bump/beta 14.2.4-4-x
skip-checks: true
2024-11-11 16:09:50 +00:00
Tarik Gul 7494451e00 Upgrade common to 13.2.3 (#6025) 2024-11-11 18:01:38 +02:00
github-actions[bot] f7e5d6091e [CI Skip] bump/beta 14.2.4-3-x
skip-checks: true
2024-11-10 15:03:38 +00:00
Tarik Gul 7b41b63048 Fix node v22 testing compatibility w/ dev bump (#6024)
* Fix node v22 testing compatibility

* uncomment tests

* revert to using assert

* Bump dev
2024-11-10 16:55:52 +02:00
github-actions[bot] 61a6fbdbd1 [CI Skip] bump/beta 14.2.4-2-x
skip-checks: true
2024-11-08 02:10:55 +00:00
Tarik Gul 173b3119bc Add AssetHub to types-support and test generation (#6022)
* Add AssetHub to types-support and test generation

* lint
2024-11-08 04:03:13 +02:00
github-actions[bot] d5e31e4d44 [CI Skip] bump/beta 14.2.4-1-x
skip-checks: true
2024-11-07 14:54:08 +00:00
Tarik Gul 9670dd9c66 Update metadata script for types-support (#6021) 2024-11-07 16:46:16 +02:00
github-actions[bot] 145d067ab9 [CI Skip] bump/beta 14.2.4-0-x
skip-checks: true
2024-11-06 15:05:01 +00:00
Tarik Gul e84c58d1d0 Add rpcCacheCapacity option to ApiOptions (#6020) 2024-11-06 16:57:00 +02:00
github-actions[bot] 8efc552b9b [CI Skip] release/stable 14.2.3
skip-checks: true
2024-11-05 15:47:52 +00:00
Tarik Gul 2b3d40a29b 14.2.3 (#6019) 2024-11-05 17:40:17 +02:00
github-actions[bot] d91d29cff5 [CI Skip] bump/beta 14.2.3-1-x
skip-checks: true
2024-11-05 15:27:42 +00:00
Tarik Gul 17fa8fa120 Increase RPC-CORE default capacity (#6016) 2024-11-05 17:20:00 +02:00
github-actions[bot] cecd43305e [CI Skip] bump/beta 14.2.3-0-x
skip-checks: true
2024-11-05 15:00:08 +00:00
Tarik Gul 9501da9e25 Set CI to use Node.js Iron (v20) (#6018)
* Set CI to use Node.js Iron (v20)

* additional
2024-11-05 16:52:27 +02:00
github-actions[bot] 9becdced12 [CI Skip] release/stable 14.2.2
skip-checks: true
2024-10-31 14:02:24 +00:00
Tarik Gul 262372666c 14.2.2 (#6014) 2024-10-31 09:54:48 -04:00
github-actions[bot] 83907f79fe [CI Skip] bump/beta 14.2.2-1-x
skip-checks: true
2024-10-31 13:07:04 +00:00
filvecchiato abce780033 fix: update LRUcache to not keep thread (#6013) 2024-10-31 08:59:27 -04:00
github-actions[bot] a6b23ca635 [CI Skip] bump/beta 14.2.2-0-x
skip-checks: true
2024-10-29 12:07:23 +00:00
Tarik Gul 508439ce59 Adjust nextElected to use erasStakersOverview (#6011) 2024-10-29 13:59:31 +02:00
github-actions[bot] 64e30dd0a7 [CI Skip] release/stable 14.2.1
skip-checks: true
2024-10-28 19:41:58 +00:00
Tarik Gul 33fd56a61d 14.2.1 (#6009) 2024-10-28 21:34:22 +02:00
github-actions[bot] 4ec2c32854 [CI Skip] bump/beta 14.1.2-2-x
skip-checks: true
2024-10-28 16:35:07 +00:00
Tarik Gul 3ca93ee283 Upgrade common to 13.2.2 (#6008) 2024-10-28 18:27:26 +02:00
github-actions[bot] 7cf36bbf68 [CI Skip] bump/beta 14.1.2-1-x
skip-checks: true
2024-10-24 01:44:02 +00:00
Tarik Gul da100e80f2 Add isClaimed field to api.derive.staking._stakerRewards (#6007)
* Add isClaimed field to `api.derive.staking._stakerRewards`

* Fix isClaimed: false
2024-10-24 04:36:22 +03:00
github-actions[bot] 9d9a99e71e [CI Skip] bump/beta 14.1.2-0-x
skip-checks: true
2024-10-22 14:38:28 +00:00
Tarik Gul 6ce045c9a1 Bump yarn to 4.5.1 (#6005) 2024-10-22 17:30:57 +03:00
github-actions[bot] 5c0fe9b34b [CI Skip] release/stable 14.1.1
skip-checks: true
2024-10-21 14:31:24 +00:00
Tarik Gul f9acee5c5f 14.1.1 (#6003) 2024-10-21 17:23:48 +03:00
github-actions[bot] 91afebc020 [CI Skip] bump/beta 14.0.2-5-x
skip-checks: true
2024-10-21 13:53:53 +00:00
Tarik Gul 0e95f51e94 Bump common to 13.2.1 (#6002) 2024-10-21 16:46:13 +03:00
github-actions[bot] 67e8232718 [CI Skip] bump/beta 14.0.2-4-x
skip-checks: true
2024-10-21 13:15:56 +00:00
Tarik Gul 72719ff3a2 Bump dev to 0.81.2 (#6001) 2024-10-21 16:08:03 +03:00
github-actions[bot] 585bedb996 [CI Skip] bump/beta 14.0.2-3-x
skip-checks: true
2024-10-18 02:08:37 +00:00
Tarik Gul bc199956f3 Set static metadata to v15 and update typegen to generate runtime apis and use v15 metadata (#5987)
* Set static metadata to v15

* Fix testUtil

* Fix metadata spec

* support metadata files

* lint and fix commented tests

* Fix test

* Add augment static runtime types by metadata

* Fix alias typing for runtime def types

* Cleanup and add remaining generated files

* lint

* Fix typegen for edgecase

* Update polkadot to 1003003

* Fix tests

* Set correct rpc
2024-10-18 05:01:08 +03:00
github-actions[bot] 1772458304 [CI Skip] bump/beta 14.0.2-2-x
skip-checks: true
2024-10-16 13:43:39 +00:00
Tarik Gul e75272e15b Update non-pjs deps (#6000) 2024-10-16 16:36:11 +03:00
github-actions[bot] 85473c9912 [CI Skip] bump/beta 14.0.2-1-x
skip-checks: true
2024-10-16 12:47:20 +00:00
filvecchiato a3e1499f20 Add lru ttl cache implementation (#5997)
* lru ttl cache implementation

* single export lru

* fix lint

* fix hanging tests

* clear intervals in RPCcore

* clear linting issues

* checking export issue on deno ci

* lint

* deno update and rebase

* fixes to stats

* fixes to lint
2024-10-16 08:39:46 -04:00
github-actions[bot] 127122990e [CI Skip] bump/beta 14.0.2-0-x
skip-checks: true
2024-10-15 16:07:20 +00:00
Tarik Gul 3dfe19c601 Fix deno build in CI (#5999) 2024-10-15 11:59:42 -04:00
github-actions[bot] c054f96c80 [CI Skip] release/stable 14.0.1
skip-checks: true
2024-10-02 20:49:29 +00:00
Tarik Gul 11c1b998be 14.0.1 (#5995) 2024-10-02 23:41:55 +03:00
Tarik Gul fdebf8b74b 14.0.1 (#5994) 2024-10-02 23:22:35 +03:00
github-actions[bot] 7c91ee5ccc [CI Skip] bump/beta 13.2.2-1-x
skip-checks: true
2024-10-02 19:25:09 +00:00
Tarik Gulandbee344 c146727510 TransactionExtension, ExtrinsicV5 (#5976)
* TransactionExtension Start

* Add V5_VERSION logic to necessary classes

* Fix latest version to 5

* Add v5 dir

* Add v5 types to interfaces

* Cleanup paths

* Update ExtrinsicSignature V5

* Cleanup v5 folders

* nits

* signed works

* general works?

* Clean linter, and imports

* fix typing

* Change sign in v5 to hash all payloads

* remove SignV5Options

* Remove SignatureV5Options

* Change versioning

* added bitmasks

* cleanup

* change version to constant

* Add tests

* Decouple payload v5 from v4

* Add helper fn to get signed extension version from the registry

* Add version to encoding

* Cleanup tests

* renamed getSignedExtensionVersion to getTransactionExtensionVersion

* removed this.type for v5

* undo this.type removal

* replaced signedExtensionVersion by transactionExtensionVersion for v5 in ExtrinsicSignature

* unfinished Preamble Class

* Revert "unfinished Preamble Class"

This reverts commit 0b1c350fcc97e6f724ed84f66742be472c5daa71.

* Added test for decoding

* Fix test

* preamble typo

* updated GeneralExtrinsic [WIP]

* added generalExtrinsic

* General Extrinsic

* linting and renaming

* renaming

* Extend the v5 signed extrinsic test

* Unmask preamble

* Set payload to GeneralExtrinsicPayload

* Add test for GeneralExtrinsicPayload

* Start GeneralExtrinsicEncoded tests

* Add GeneralExt as a replacement class

* Export GeneralExt

* Fix nits

* Start decodeu8a

* GeneralExt tests

* GeneralExt fix

* updated decodeu8a

* Fix decoding

* Add error handling for invalid version

* remove fluff

* Fix version in GeneralExtrinsic

* fixes

* add parent class methods as errors

* Reorg some types

* Add test for GeneralExtrinsic

* Fix compatibility with GeneralExtrinsic

* fix structure of GeneralExtrinsic

* Add another test

* cleanup

* Fix decoding bug for bare

* fix change from bare to signed

* linting

* Fix encodinglength

* Set default to preamble to bre

* Fix tests

* fixed version setting

* Add test

---------

Co-authored-by: bee344 <alberto.penayo@parity.io>
2024-10-02 15:17:32 -04:00
github-actions[bot] 096da21c76 [CI Skip] bump/beta 13.2.2-0-x
skip-checks: true
2024-10-01 12:34:42 +00:00
Daria d3c16b5cb4 choosing AccountId20 type if the address is 20 bytes (#5991) 2024-10-01 20:27:19 +08:00
github-actions[bot] 87b4cecc1b [CI Skip] release/stable 13.2.1
skip-checks: true
2024-09-23 13:32:34 +00:00
Tarik Gul d79a5301fb 13.2.1 (#5989) 2024-09-23 09:25:08 -04:00
github-actions[bot] 7481983e44 [CI Skip] bump/beta 13.1.2-1-x
skip-checks: true
2024-09-23 13:03:06 +00:00
Tarik Gul 47291533e6 Fix logging for older runtimes for runtimeapi decoration (#5988) 2024-09-23 15:55:26 +03:00
github-actions[bot] a15d0dd0df [CI Skip] bump/beta 13.1.2-0-x
skip-checks: true
2024-09-19 12:36:04 +00:00
Tarik Gul 1dca21d607 Generate Runtime Apis Dynamically (#5986)
* Generate Runtime Apis Dynamically

* Add inline docs
2024-09-19 15:28:41 +03:00
github-actions[bot] b19d5d4dbc [CI Skip] release/stable 13.1.1
skip-checks: true
2024-09-18 01:04:12 +00:00
Tarik Gul c6c9a1259c 13.1.1 (#5985) 2024-09-18 03:56:41 +03:00
github-actions[bot] 8b1191a17f [CI Skip] bump/beta 13.0.2-3-x
skip-checks: true
2024-09-17 18:10:38 +00:00
Tarik Gul 94a900583f Bump yarn to 4.5.0 (#5983) 2024-09-17 21:03:21 +03:00
github-actions[bot] 0581fc71ce [CI Skip] bump/beta 13.0.2-2-x
skip-checks: true
2024-09-17 13:34:54 +00:00
Tarik Gul 73a5566ded Initialize the API with metadata V15 (#5941)
* Initialize the API with metadata V15

* cleanup consoles

* lint

* add check for hash

* Fix error messaging, and check for correct metdataapi version

* Add support for at

* Apply fixed

* Change compariosn

* fix comparison again

* adjustments

* Fix metadata decoding with raw types

* Fix errors to log in debug mode

* Add check for supported versions

* Fix imports

* Fix registry assignment
2024-09-17 16:27:19 +03:00
github-actions[bot] ce6e1e8825 [CI Skip] bump/beta 13.0.2-1-x
skip-checks: true
2024-09-16 22:02:00 +00:00
Cameron Marshall b04e7b0cee implement xcm dry run api (#5970)
* add definitions for xcm dry run api

* replace ITuple with Tuple

* replace ITuple with tuple syntax

* update types for xcm v3 and v4

* remove console log

* revert enum ts error logging

* fix dry run call param type name

* lint
2024-09-16 17:54:45 -04:00
github-actions[bot] 50332dab75 [CI Skip] bump/beta 13.0.2-0-x
skip-checks: true
2024-09-16 13:59:47 +00:00
Tarik Gul e615f855d1 Upgrade common to 13.1.1 (#5982) 2024-09-16 16:52:28 +03:00
github-actions[bot] 87bee8ac29 [CI Skip] release/stable 13.0.1
skip-checks: true
2024-09-10 22:00:45 +00:00
Tarik Gul 49724380f2 13.0.1 (#5979) 2024-09-11 00:53:28 +03:00
github-actions[bot] 68d928742d [CI Skip] bump/beta 12.4.3-5-x
skip-checks: true
2024-09-10 18:04:08 +00:00
Tarik Gul fc9c5c8279 Bump yarn to 4.1.1 (#5978) 2024-09-10 20:56:49 +03:00
github-actions[bot] d402744e7d [CI Skip] bump/beta 12.4.3-4-x
skip-checks: true
2024-09-09 16:07:49 +00:00
Tarik Gul cf7e7cd92a Update Kusama augmented types to 1.3.0 (#5972)
* Update Kusama augmented types to 1.3.0

* add

* adjust tsconfig build
2024-09-09 19:00:25 +03:00
github-actions[bot] e71c2b0cc5 [CI Skip] bump/beta 12.4.3-3-x
skip-checks: true
2024-09-05 20:09:21 +00:00
Tarik Gul 6aef459464 Add kusama v1.3.0 upgrade (#5971) 2024-09-05 23:02:04 +03:00
github-actions[bot] 5954ec8d98 [CI Skip] bump/beta 12.4.3-2-x
skip-checks: true
2024-09-05 13:13:56 +00:00
Tarik Gul 1f751e07fc Keep assetID hex as Option for toPayload (#5968)
* Keep assetID hex as Option for toPayload

* Resolve last issues with hex and u8a conversion for assetId

* Inline comment

* Fix types

* Fix test

* adjust merit of test
2024-09-05 09:06:35 -04:00
github-actions[bot] b872fc1e9c [CI Skip] bump/beta 12.4.3-1-x
skip-checks: true
2024-09-02 17:31:28 +00:00
Tarik Gul 1e604cc5fb Change assetId type in SignerPayloadJSON to HexString (#5967)
* Change assetId type in SignerPayloadJSON to HexString

* fix encoding

* Fix tests

* also fix createClass
2024-09-02 13:24:06 -04:00
github-actions[bot] 25ab1d1239 [CI Skip] bump/beta 12.4.3-0-x
skip-checks: true
2024-08-29 00:57:47 +00:00
Tarik Gul df6530831d Bump dev, and typescript (#5964)
* Bump dev, and typescript

* dedupe

* lint
2024-08-29 03:50:22 +03:00
github-actions[bot] 0bfa069f1b [CI Skip] release/stable 12.4.2
skip-checks: true
2024-08-21 11:52:56 +00:00
Tarik Gul a204048320 12.4.2 (#5962) 2024-08-21 14:45:16 +03:00
github-actions[bot] a887cd0159 [CI Skip] bump/beta 12.4.2-0-x
skip-checks: true
2024-08-21 11:33:25 +00:00
Tarik Gul 8cddcd2513 Fix derive.balances.all when data is undefined (#5961) 2024-08-21 14:25:48 +03:00
github-actions[bot] 72d1326de6 [CI Skip] release/stable 12.4.1
skip-checks: true
2024-08-19 18:49:45 +00:00
Tarik Gul 27de09999c 12.4.1 (#5958)
* 12.4.1

* Extra info in the changelog
2024-08-19 21:42:10 +03:00
github-actions[bot] 55c6a4f267 [CI Skip] bump/beta 12.3.2-5-x
skip-checks: true
2024-08-19 17:54:03 +00:00
Tarik Gul 92dfe00851 Revise api.derive.balances.all to include ED when necessary (#5957) 2024-08-19 13:46:21 -04:00
github-actions[bot] f82c572704 [CI Skip] bump/beta 12.3.2-4-x
skip-checks: true
2024-08-19 02:21:32 +00:00
Tarik Gul 119f88e6d2 Fix transferable formula (#5956)
* Fix transferable formula

* nits
2024-08-19 05:13:50 +03:00
github-actions[bot] e5dc4065ff [CI Skip] bump/beta 12.3.2-3-x
skip-checks: true
2024-08-18 21:58:52 +00:00
Tarik Gul e2b4e0d3e6 Rework api.derive.balance.{account, all} to work with the new frame account data (#5955)
* Rework api.derive.balance.account to work with the new frame account data

* Ensure api.derive.balances.all correctly returns transferable

* Remove null from transferable

* set back to null
2024-08-19 00:51:19 +03:00
github-actions[bot] 1921d75d01 [CI Skip] bump/beta 12.3.2-2-x
skip-checks: true
2024-08-17 01:22:11 +00:00
Tarik Gul 216435e1a1 Update general deps (patch only) (#5954) 2024-08-17 04:14:29 +03:00
github-actions[bot] 86398e21f8 [CI Skip] bump/beta 12.3.2-1-x
skip-checks: true
2024-08-15 12:04:20 +00:00
gupnikandNikhil Gupta fd84892dac Adds a check for tip in Submittable (#5953)
Co-authored-by: Nikhil Gupta <>
2024-08-15 07:56:47 -04:00
github-actions[bot] 2329af239e [CI Skip] bump/beta 12.3.2-0-x
skip-checks: true
2024-08-09 14:17:05 +00:00
Tarik Gul f95f36110f Bump yarn to 4.4.0 (#5952) 2024-08-09 17:09:30 +03:00
github-actions[bot] 3b7b44f048 [CI Skip] release/stable 12.3.1
skip-checks: true
2024-08-05 19:02:40 +00:00
Tarik Gul a1e7566114 12.3.1 (#5951) 2024-08-05 21:54:54 +03:00
github-actions[bot] ec4ec4fa5e [CI Skip] bump/beta 12.2.4-4-x
skip-checks: true
2024-08-05 17:23:01 +00:00
Tarik Gul cf26e34008 Support for BeefyApi v4 (#5950) 2024-08-05 20:15:13 +03:00
github-actions[bot] 15c440d72f [CI Skip] bump/beta 12.2.4-3-x
skip-checks: true
2024-08-05 15:42:49 +00:00
Tarik Gul 9b9c621265 Update substrate types via metadata (#5949) 2024-08-05 18:35:16 +03:00
github-actions[bot] eb7fd94c20 [CI Skip] bump/beta 12.2.4-2-x
skip-checks: true
2024-08-01 12:08:05 +00:00
Tarik Gul 54baf26d4f Upgrade known Polkadot and Westend CodeUpdated blocks (#5948) 2024-08-01 15:00:25 +03:00
github-actions[bot] 1ab7475a58 [CI Skip] bump/beta 12.2.4-1-x
skip-checks: true
2024-08-01 11:11:41 +00:00
Przemek Rzad b5adbe72f8 Increase Vec max length (#5947) 2024-08-01 07:03:57 -04:00
github-actions[bot] 778d79a9a5 [CI Skip] bump/beta 12.2.4-0-x
skip-checks: true
2024-07-30 03:15:35 +00:00
Jeeyong Um cd4b5e36dd Revert "Alias for Noir types (#5678)" (#5946)
This reverts commit d946a99a35.
2024-07-29 23:08:02 -04:00
github-actions[bot] 9de00f5a46 [CI Skip] release/stable 12.2.3
skip-checks: true
2024-07-29 19:44:17 +00:00
Tarik Gul 60e8148e8c 12.2.3 (#5945) 2024-07-29 22:36:39 +03:00
github-actions[bot] 56358b1016 [CI Skip] bump/beta 12.2.3-0-x
skip-checks: true
2024-07-29 11:36:06 +00:00
Branislav Kontur 68ce512573 Fix for fungiblesApi (#5944) 2024-07-29 07:28:13 -04:00
github-actions[bot] b0b2145d15 [CI Skip] release/stable 12.2.2
skip-checks: true
2024-07-25 10:17:59 +00:00
Tarik Gul ab683fb3f8 12.2.2 (#5943) 2024-07-25 13:10:33 +03:00
github-actions[bot] bfb92e6d8b [CI Skip] bump/beta 12.2.2-0-x
skip-checks: true
2024-07-17 22:18:39 +00:00
Tarik Gul 65b019e635 Fix toHuman error on mode (#5940) 2024-07-18 01:11:11 +03:00
github-actions[bot] dac94c5196 [CI Skip] release/stable 12.2.1
skip-checks: true
2024-07-13 20:02:35 +00:00
Tarik Gul 83204f15fc 12.2.1 (#5939) 2024-07-13 22:55:12 +03:00
github-actions[bot] fe6473351c [CI Skip] bump/beta 12.1.2-3-x
skip-checks: true
2024-07-13 19:29:42 +00:00
Tarik Gul 90efba4c36 Bump yarn to 4.3.1 (#5938) 2024-07-13 22:22:11 +03:00
github-actions[bot] 771d06b2a2 [CI Skip] bump/beta 12.1.2-2-x
skip-checks: true
2024-07-13 18:51:30 +00:00
Tarik Gul 217da1451a Update Polkadot 1002006 types-known (#5937) 2024-07-13 21:43:52 +03:00
github-actions[bot] f92f2ea357 [CI Skip] bump/beta 12.1.2-1-x
skip-checks: true
2024-07-13 18:21:05 +00:00
Tarik Gul 38a978b9be Bump substrate to latest (#5936)
* Bump substrate to latest

* Fix issues
2024-07-13 21:13:34 +03:00
github-actions[bot] 0945d26c03 [CI Skip] bump/beta 12.1.2-0-x
skip-checks: true
2024-07-13 01:06:21 +00:00
Tarik Gul 3f38963e85 Bump common to 13.0.2 (#5935) 2024-07-13 03:58:41 +03:00
github-actions[bot] 534e7e3650 [CI Skip] release/stable 12.1.1
skip-checks: true
2024-07-02 19:56:33 +00:00
Tarik Gul c6d3a68dd0 12.1.1 (#5932) 2024-07-02 22:49:05 +03:00
github-actions[bot] bad574609c [CI Skip] bump/beta 12.0.3-4-x
skip-checks: true
2024-07-01 19:06:54 +00:00
Tarik Gul 35132f4b28 Update known upgrades for kusama 1002006 (#5929)
* Update known upgrades for kusama 1002006

* nit
2024-07-01 21:59:05 +03:00
github-actions[bot] 49e8e18a0f [CI Skip] bump/beta 12.0.3-3-x
skip-checks: true
2024-07-01 18:36:15 +00:00
Tarik Gul 436bd956b6 Update Augmented type for kusama 1002006 (#5928) 2024-07-01 21:28:35 +03:00
github-actions[bot] 9ead1a8c46 [CI Skip] bump/beta 12.0.3-2-x
skip-checks: true
2024-07-01 18:03:26 +00:00
Tarik Gul 0f61aa2ace Update known upgrades for polkadot 1002005 (#5927) 2024-07-01 20:55:41 +03:00
github-actions[bot] 4a2a70c0fb [CI Skip] bump/beta 12.0.3-1-x
skip-checks: true
2024-07-01 16:13:16 +00:00
Tarik Gul 97d553c52f Update Augmented type for polkadot 1002005 (#5926) 2024-07-01 19:05:40 +03:00
github-actions[bot] 23586f9849 [CI Skip] bump/beta 12.0.3-0-x
skip-checks: true
2024-06-28 14:40:00 +00:00
girazoki dda0c3b980 Implement xcm payment api (#5911)
* implement xcm payment api

* lint

* merge

* refactor
2024-06-28 10:31:55 -04:00
github-actions[bot] aafd0a90c7 [CI Skip] release/stable 12.0.2
skip-checks: true
2024-06-27 21:03:32 +00:00
Tarik Gul e64eb91ba9 12.0.2 (#5924)
* 12.0.2

* Add extra description
2024-06-27 16:56:01 -04:00
github-actions[bot] 02947a1c08 [CI Skip] bump/beta 12.0.2-3-x
skip-checks: true
2024-06-27 20:40:21 +00:00
Tarik Gul 5a44d3b6e0 Ensure SignerPayload has withSignedTransaction (#5922)
* Ensure SignerPayload has `withSignedTransaction`

* remove console.log

* fix tests
2024-06-27 16:32:45 -04:00
github-actions[bot] 0bac3d4915 [CI Skip] bump/beta 12.0.2-2-x
skip-checks: true
2024-06-27 19:17:20 +00:00
Tarik Gul ab3f0253bd Ensure signAsync and dryRun is fully compatible with signedTransaction, and add withSignedTransaction option (#5920)
* Ensure signAsync is compatible with signedTransaction

* Fix payload construction

* Update sig

* add withSignedTransaction option

* remove unused type

* Add withSignedTransaction to other type

* Throw error when signTransaction is there but not enabled

* inline docs

* Update inline docs

* lint
2024-06-27 15:09:48 -04:00
github-actions[bot] 6f199db86a [CI Skip] bump/beta 12.0.2-1-x
skip-checks: true
2024-06-26 13:36:38 +00:00
Branislav Kontur a95bca939d Adjusted LocationToAccountApi (#5919) 2024-06-26 09:28:57 -04:00
github-actions[bot] c5446d6fef [CI Skip] bump/beta 12.0.2-0-x
skip-checks: true
2024-06-25 14:36:34 +00:00
Branislav Kontur b1ec8d160a Add LocationToAccountApi::convert_location runtime API (#5917)
* Add `LocationToAccountApi::convert_location` runtime API

* lint

* Fix test

* Adjust to latest
2024-06-25 10:28:56 -04:00
github-actions[bot] b0acdbd96c [CI Skip] release/stable 12.0.1
skip-checks: true
2024-06-25 02:56:04 +00:00
Tarik Gul af3d20ebe1 12.0.1 (#5916) 2024-06-25 05:48:37 +03:00
github-actions[bot] 5897fb7e3b [CI Skip] bump/beta 11.3.2-2-x
skip-checks: true
2024-06-25 02:11:14 +00:00
Tarik Gul bdafcd9e97 Sanitize eras for _stakerRewards (#5912)
* Sanitize eras for _stakerRewards

* Small nits
2024-06-25 05:03:43 +03:00
github-actions[bot] 095710349a [CI Skip] bump/beta 11.3.2-1-x
skip-checks: true
2024-06-24 23:08:00 +00:00
Tarik Gul 586f02f831 Add signedTransaction to SignerResult for injected Signers in signAndSend (#5914)
* Start work on payload feature

* Change naming and type

* Add validation and whitelisting

* Update comments

* Fix some properties and commetns

* Switch logic over to signedTransaction

* Add mode to output of extrinsic signature

* Add validation

* Update comments

* Update comments

* Reduce validation

* Update internal docs

* Make comments clearer

* comments

* one more inline doc :)

* Fix nasty little bug for signAsync, and when signedTransaction is not used

* remove uncessecary ?

* Add undefined typing
2024-06-24 19:00:28 -04:00
github-actions[bot] 5ca873b501 [CI Skip] bump/beta 11.3.2-0-x
skip-checks: true
2024-06-24 21:49:35 +00:00
Alberto Nicolas Penayo 058a3ac640 added use of accountNonceApi (#5915) 2024-06-24 18:41:55 -03:00
github-actions[bot] 5a4d11cb39 [CI Skip] release/stable 11.3.1
skip-checks: true
2024-06-17 18:47:10 +00:00
Tarik Gul fb0796d408 11.3.1 (#5909) 2024-06-17 21:39:46 +03:00
github-actions[bot] e21b101ef7 [CI Skip] bump/beta 11.2.2-6-x
skip-checks: true
2024-06-17 18:00:56 +00:00
Tarik Gul 79e828837f Bump Substrate latest metadata (#5908)
* Bump Substrate latest metadata

* Update remaining types-support packages

* Update extrinsicPayload test

* Fix extrinsic v4 spec

* Fix spec for ExtrinsicSignature

* linting

* Fix TRANSFER_SIG

* api-augemtn
2024-06-17 20:53:26 +03:00
github-actions[bot] 21aeb17a34 [CI Skip] bump/beta 11.2.2-5-x
skip-checks: true
2024-06-11 22:27:49 +00:00
Tarik Gul 642414295c Update types-known for polkadot 1002004 (#5906) 2024-06-12 01:20:17 +03:00
github-actions[bot] 28c2e5524d [CI Skip] bump/beta 11.2.2-4-x
skip-checks: true
2024-06-11 22:17:08 +00:00
Tarik Gul 5e1ccd177e Update types-known for westend 1011001 (#5905) 2024-06-12 01:09:29 +03:00
github-actions[bot] c300e1b63d [CI Skip] bump/beta 11.2.2-3-x
skip-checks: true
2024-06-11 22:02:16 +00:00
Tarik Gul e2859e4761 Update types-known for Kusama 1002005 (#5904) 2024-06-12 00:54:46 +03:00
github-actions[bot] 4f06d6d2c5 [CI Skip] bump/beta 11.2.2-2-x
skip-checks: true
2024-06-11 00:20:26 +00:00
Tarik Gul 67d617ce11 Bump dev to 0.79.3 (#5903) 2024-06-11 03:12:57 +03:00
github-actions[bot] ab3a22a207 [CI Skip] bump/beta 11.2.2-1-x
skip-checks: true
2024-06-07 13:32:35 +00:00
Tarik Gul 7b00fd3925 Update Kusama types-known for 1002004 (#5902) 2024-06-07 16:25:05 +03:00
github-actions[bot] 2b703062d0 [CI Skip] bump/beta 11.2.2-0-x
skip-checks: true
2024-06-07 12:59:00 +00:00
Tarik Gul 0bca92cdb8 Fix period assumption on signingInfo (#5901) 2024-06-07 15:51:17 +03:00
github-actions[bot] a437f98b31 [CI Skip] release/stable 11.2.1
skip-checks: true
2024-05-29 02:41:20 +00:00
Tarik Gul 8666d580df 11.2.1 (#5897) 2024-05-29 05:20:41 +03:00
github-actions[bot] 651bb35acf [CI Skip] bump/beta 11.1.2-4-x
skip-checks: true
2024-05-28 21:22:30 +00:00
Tarik Gul f78a00cd7f Update Substrate Metadata to latest (#5896)
* Update Substrate Metadata to latest

* import
2024-05-29 00:14:38 +03:00
github-actions[bot] e55c9d248c [CI Skip] bump/beta 11.1.2-3-x
skip-checks: true
2024-05-28 19:29:16 +00:00
Tarik Gul 986355b56f Add support for ParachainHost v11 (#5893) 2024-05-28 22:21:45 +03:00
github-actions[bot] dd9123f790 [CI Skip] bump/beta 11.1.2-2-x
skip-checks: true
2024-05-28 18:13:49 +00:00
Francis O'Brien d28d2b5f48 fix: Re-subscribe to chain updates on reconnection if not a clone (#5794)
This prevents issues with bad transaction signatures after chain updates following a temporary disconnect.
2024-05-28 14:06:15 -04:00
github-actions[bot] 0b3cad94bc [CI Skip] bump/beta 11.1.2-1-x
skip-checks: true
2024-05-27 14:51:29 +00:00
Tarik Gul 2b29dda2ad Update kusama and westend block upgrades (#5892) 2024-05-27 10:43:54 -04:00
github-actions[bot] 3d3af779c1 [CI Skip] bump/beta 11.1.2-0-x
skip-checks: true
2024-05-27 14:27:10 +00:00
Alberto Nicolas Penayo d04cc7b940 fix: add support for AuraUnincludedSegmentApi (#5891)
* added AuraUnincludedSegmentApi

* linting
2024-05-27 10:19:37 -04:00
github-actions[bot] 2ef84c5dcd [CI Skip] release/stable 11.1.1
skip-checks: true
2024-05-21 18:41:45 +00:00
Tarik Gul 36c24826ec 11.1.1 (#5888) 2024-05-21 14:34:18 -04:00
github-actions[bot] 184f702efd [CI Skip] bump/beta 11.0.4-5-x
skip-checks: true
2024-05-20 16:38:58 +00:00
Tarik Gulandbee344 b392c19922 fix: CheckMetadataHash signedExtension support (#5882)
* CheckMetadataHash support

* lint

* updtated CheckGenesis

* linting

* added getters for metadataHash

* fixed metadataHash type

* fixed toHuman override

* updated SignerPayload

* updated mode to take AnyNumber

---------

Co-authored-by: bee344 <alberto.penayo@parity.io>
2024-05-20 13:31:23 -03:00
github-actions[bot] 38de00d8d8 [CI Skip] bump/beta 11.0.4-4-x
skip-checks: true
2024-05-17 20:29:41 +00:00
Tarik Gul f9c58203a0 Fix api.derive.accounts.{info && identity} (#5885)
* Fix api.derive.accounts.identity and all residual derives

* reorder types
2024-05-17 23:22:07 +03:00
github-actions[bot] baaa27ba9e [CI Skip] bump/beta 11.0.4-3-x
skip-checks: true
2024-05-15 01:53:00 +00:00
Alberto Nicolas Penayo 365fde895a fix: updated extrinsics' assetId toHuman (#5879) 2024-05-14 21:45:55 -04:00
github-actions[bot] b17a6d3920 [CI Skip] bump/beta 11.0.4-2-x
skip-checks: true
2024-05-14 01:05:48 +00:00
Tarik Gul 0d8df6380e Bump yarn to 4.2.2 (#5878) 2024-05-14 03:58:04 +03:00
github-actions[bot] 52cd797488 [CI Skip] bump/beta 11.0.4-1-x
skip-checks: true
2024-05-14 00:47:46 +00:00
Tarik Gul a71d401f1d Bump @polkadot/dev to 0.79.1 w/ topo sort (#5877) 2024-05-14 03:40:21 +03:00
github-actions[bot] 61b68393e7 [CI Skip] bump/beta 11.0.4-0-x
skip-checks: true
2024-05-10 18:53:21 +00:00
Tarik Gul 7d6933ed39 Dedupe nextElected accountIds (#5876)
* Dedupe nextElected accountIds

* remove consoles
2024-05-10 21:45:26 +03:00
github-actions[bot] 32a04fd24f [CI Skip] release/stable 11.0.3
skip-checks: true
2024-05-08 13:31:16 +00:00
Tarik Gul 009461f564 11.0.3 (#5873) 2024-05-08 16:23:44 +03:00
github-actions[bot] 00cb2ef875 [CI Skip] bump/beta 11.0.3-2-x
skip-checks: true
2024-05-08 12:49:12 +00:00
Tarik Gul fed0d5bf0d Update substrate to latest (#5872) 2024-05-08 15:41:42 +03:00
github-actions[bot] 53e9305f41 [CI Skip] bump/beta 11.0.3-1-x
skip-checks: true
2024-05-08 03:23:20 +00:00
Tarik Gul 2ca9da3304 Fix claimedRewards in staking.derives (#5870)
* Fix claimedRewards in staking.derives

* Cleanup

* few nits
2024-05-08 06:15:40 +03:00
github-actions[bot] 7a4d32710c [CI Skip] bump/beta 11.0.3-0-x
skip-checks: true
2024-05-06 16:26:34 +00:00
Tarik Gul 15c8859b06 ApiDerive.staking backwards compatibility. (#5868)
* Start of backwards compatibility for api.derive.staking

* Update nextElected to be compatible

* lint

* Comments

* remove clipped from query

* Ensure backwards compat for ownExposure

* Fix query
2024-05-06 19:18:58 +03:00
213 changed files with 297293 additions and 35973 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ jobs:
node-version: 'lts/*'
- uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
deno-version: v1.42.x
- name: ${{ matrix.step }}
if: always()
run: |
-893
View File
File diff suppressed because one or more lines are too long
+934
View File
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.1.cjs
yarnPath: .yarn/releases/yarn-4.5.1.cjs
+285
View File
@@ -1,5 +1,290 @@
# CHANGELOG
## 15.0.2 Dec 13, 2024
Changes:
- Fix metadata on init when its value is u32 max ([#6043](https://github.com/polkadot-js/api/pull/6043))
- This ensures runtime api information is correctly generated and the correct metadata is used as part of the registry. At the moment this is only an issue on westend asset hub, as reported by users.
## 15.0.1 Nov 27, 2024
Breaking Changes:
- Allow external signers to modify the payload ([#6030](https://github.com/polkadot-js/api/pull/6030)) (Thanks to https://github.com/Tbaut)
- Add `allowCallDataAlteration` to `SignatureOptions`, and `SignerOptions`. This will default to true when its not inputted. This is strictly tied to signing payloads via external signers.
Contributed:
- fix(ExtrinsicPayload): decode assetId with and without option ([#6037](https://github.com/polkadot-js/api/pull/6037)) (Thanks to https://github.com/carlosala)
Changes:
- Adjust ExtrinsicV5 to fit current spec ([#6029](https://github.com/polkadot-js/api/pull/6029))
- This removes the `signed` functionality for ExtrinsicV5 since it is no longer supported
- Update docs for WsProvider, and RpcCore ([#6031](https://github.com/polkadot-js/api/pull/6031))
- Add testing for assetId access from ExtrinsicPayload ([#6033](https://github.com/polkadot-js/api/pull/6033))
- Update Substrate types to 1.16.2 ([#6034](https://github.com/polkadot-js/api/pull/6034))
## 14.3.1 Nov 11, 2024
Changes:
- Add rpcCacheCapacity option to ApiOptions ([#6020](https://github.com/polkadot-js/api/pull/6020))
- Update metadata script for types-support ([#6021](https://github.com/polkadot-js/api/pull/6021))
- Add AssetHub to types-support and test generation ([#6022](https://github.com/polkadot-js/api/pull/6022))
- Fix node v22 testing compatibility w/ dev bump ([#6024](https://github.com/polkadot-js/api/pull/6024))
- Fix isClaimed for edgecase with non validator Ids ([#6027](https://github.com/polkadot-js/api/pull/6027))
- Fix isClaimed in api.derive.staking.{stakerRewards, stakerRewardsMultiEras, stakerRewardsMulti} ([#6026](https://github.com/polkadot-js/api/pull/6026))
- Upgrade common to 13.2.3 ([#6025](https://github.com/polkadot-js/api/pull/6025))
## 14.2.3 Nov 5, 2024
Changes:
- Increase RPC-CORE default cache capacity ([#6016](https://github.com/polkadot-js/api/pull/6016))
- Set CI to use Node.js Iron (v20) ([#6018](https://github.com/polkadot-js/api/pull/6018))
## 14.2.2 Oct 31, 2024
Changes:
- fix: update LRUcache to not keep thread ([#6013](https://github.com/polkadot-js/api/pull/6013))
- Adjust `api.derive.staking.nextElected` to use erasStakersOverview ([#6011](https://github.com/polkadot-js/api/pull/6011))
## 14.2.1 Oct 28, 2024
Changes:
- Add isClaimed field to api.derive.staking._stakerRewards ([#6007](https://github.com/polkadot-js/api/pull/6007))
- Upgrade polkadot/common to 13.1.2 ([#6008](https://github.com/polkadot-js/api/pull/6008))
- Bump yarn to 4.5.1 ([#6005](https://github.com/polkadot-js/api/pull/6005))
## 14.1.1 Oct 21, 2024
Changes:
- Fix deno build in CI to version 1.42.x ([#5999](https://github.com/polkadot-js/api/pull/5999))
- Add LRU TTL cache implementation ([#5997](https://github.com/polkadot-js/api/pull/5997))
- This focuses on performance advancements and less memory usage
- Update non-pjs deps ([#6000](https://github.com/polkadot-js/api/pull/6000))
- Set static metadata to v15 and update typegen to generate runtime apis and use v15 metadata ([#5987](https://github.com/polkadot-js/api/pull/5987))
- Additionally: This does update the static types to be inline with polkadot 1003003
- Bump dev to 0.81.2 ([#6001](https://github.com/polkadot-js/api/pull/6001))
- Allows for correct CJS targetting
- Bump common to 13.2.1 ([#6002](https://github.com/polkadot-js/api/pull/6002))
## 14.0.1 Oct 2, 2024
Changes:
- TransactionExtension, ExtrinsicV5
- This is a very large feature that gives support for Extrinsic V5. This is not a breaking change, but because of the impact it has it is a Major bump.
- This PR acts as a forward compatible feature that still focuses on v4, but allows for the use of v5 when:
a: The metadata extrinsic version is set to 5
b: The extrinsic version is set to 5 when manually constructing transactions.
- The PR allows the decoding of all v4, and v5 extrinsics including {bare, signed, general} transactions.
- Address parsing issues for H160 accounts in api.derive.accounts.{*} ([#5991](https://github.com/polkadot-js/api/pull/5991))
## 13.2.1 Sep 23, 2024
Changes:
- Generate Runtime Apis Dynamically ([#5986](https://github.com/polkadot-js/api/pull/5986))
- Fix logging for older runtimes for runtime-api decoration ([#5988](https://github.com/polkadot-js/api/pull/5988))
## 13.1.1 Sep 17, 2024
Changes:
- Upgrade polkadot/common to 13.1.1 ([#5982](https://github.com/polkadot-js/api/pull/5982))
- Implement xcm dryRunApi ([#5970](https://github.com/polkadot-js/api/pull/5970))
- Initialize the API with metadata V15 ([#5941](https://github.com/polkadot-js/api/pull/5941))
- Bump yarn to 4.5.0 ([#5983](https://github.com/polkadot-js/api/pull/5983))
## 13.0.1 Sep 10, 2024
Breaking Changes:
- Change assetId type in `SignerPayloadJSON` to HexString ([#5967](https://github.com/polkadot-js/api/pull/5967))
- Keep assetId hex as an Option for `toPayload` ([#5968](https://github.com/polkadot-js/api/pull/5968))
NOTE: This is part of the current change to generalize the SignerPayloadJSON in order to simplify its integration across other tools. The return value of `assetId` field with `toPayload` will always be its true type now, which in this case is `Option<TAssetConversion>` where `TAssetConversion` is equal to `MultiLocation | AssetId`.
Changes:
- Bump dev and typescript ([#5964](https://github.com/polkadot-js/api/pull/5964))
- Bump yarn to 4.1.1 ([#5978](https://github.com/polkadot-js/api/pull/5978))
- Add kusama types-known v1.3.0 upgrade ([#5971](https://github.com/polkadot-js/api/pull/5971))
- Update Kusama augmented types to 1.3.0 ([#5972](https://github.com/polkadot-js/api/pull/5972))
- Please reference the PR above to view any changes in the runtime types
## 12.4.2 Aug 21, 2024
Changes:
- Fix derive.balances.all when data is undefined ([#5961](https://github.com/polkadot-js/api/pull/5961))
## 12.4.1 Aug 19, 2024
Contributed:
- Add a check for tip in Submittable (Thanks to https://github.com/gupnik) ([#5953](https://github.com/polkadot-js/api/pull/5953))
Changes:
- Bump yarn to 4.4.0 ([#5952](https://github.com/polkadot-js/api/pull/5952))
- Update General Deps (patch only) ([#5954](https://github.com/polkadot-js/api/pull/5954))
- Rework api.derive.balance.{account, all} to work with the new frame account data ([#5955](https://github.com/polkadot-js/api/pull/5955))
- Adds `transferable` and `frameSystemAccountInfo` to the output of `api.derive.balance.all`
- Revise api.derive.balances.all to include ED when necessary ([#5957](https://github.com/polkadot-js/api/pull/5957))
- Fixes the formula used for transferable balance
## 12.3.1 Aug 5, 2024
Contributed:
- Revert alias for Noir types (Thanks to https://github.com/conr2d) ([#5946](https://github.com/polkadot-js/api/pull/5946))
- Increase Vec Max Length (Thanks to https://github.com/rzadp) ([#5947](https://github.com/polkadot-js/api/pull/5947))
Changes:
- Upgrade known Polkadot and Westend CodeUpdated blocks ([#5948](https://github.com/polkadot-js/api/pull/5948))
- Update substrate types via metadata ([#5949](https://github.com/polkadot-js/api/pull/5949))
- Note: Please review the above PR for any changes to the augmented types.
- Support for BeefyApi v4 ([#5950](https://github.com/polkadot-js/api/pull/5950))
## 12.2.3 July 29, 2024
Contributed:
- Fix Fungible Api (Thanks to https://github.com/bkontur)
## 12.2.2 July 25, 2024
Changes:
- Fix toHuman error on mode
## 12.2.1 July 13, 2024
Changes:
- Bump polkadot/common to 13.0.2
- This contains the latest changes to the Ledger interface in `@polkadot/hw-ledger`. For more info please see ([13.0.1](https://github.com/polkadot-js/common/releases/tag/v13.0.1))
- Bump Substrate Metadata to Latest
- This includes additions and removals to the api's type augmentation. For more info please see ([#5936](https://github.com/polkadot-js/api/pull/5936))
- Update Polkadot 1002006 types-known
- Bump yarn to 4.3.1
## 12.1.1 July 2, 2024
Contributed:
- Implement xcm payment api (Thanks to https://github.com/girazoki)
Changes:
- Update Augmented types for polkadot 1002005
- Update Augmented types for kusama 1002006
- Note: This removes type support for the Identity pallet for Kusama, and stateTrieMigration
- Update upgrade blocks for {Kusama, Polkadot}
## 12.0.2 June 27, 2024
**Important Changes**:
- `withSignedTransaction`: This option has been added to `SignerOptions`. When using `signAndSend`, `signAsync`, and `dryRun` you may now enable or disable the use of the `signedTransaction` field by adding the `withSignedTransaction` option. When withSignedTransaction is not enabled but the signer adds a signedTransaction the api will error.
- Always disabled by default.
- This ensures no big breaking changes happen to the interface of `signPayload`.
- `withSignedTransaction` has also been added to the `SignerPayload` type which allows for `payload.toPayload()` to include the option.
- `signAsync`: now accepts the `signedTransaction` field as well. This means that if `withSignedTransaction` is enabled, and `signedTransaction` is present the api will adjust the current payload attached to the SubmittableExtrinsic, and add the signature. Then the user can call `.send()` as they please.
- `dryRun`: All steps will be the same as signAsync with the exception that .send() has never needed to be called.
Contributed:
- Add LocationToAccountApi::convert_location runtime API (Thanks to https://github.com/bkontur)
## 12.0.1 June 24, 2024
**Important Changes**:
- Addition of an optional `signedTransaction` field to the [`SignerResult`](https://github.com/polkadot-js/api/blob/586f02f8310529f16e4047fd94e31bc6c6573366/packages/types/src/types/extrinsic.ts#L138-L158) response for injected signers. This only applies to the `signPayload` method exposed in the [`Signer`](https://github.com/polkadot-js/api/blob/586f02f8310529f16e4047fd94e31bc6c6573366/packages/types/src/types/extrinsic.ts#L160-L175) interface for polkadot-js. As the name suggests the field expects a signed transaction (extrinsic) when inputted. When its present, the api will not add the signature to the payload, but instead broadcast the inputted signed transaction. This means the signer may modify the payload it's given. The only part of the payload that may not be modified is the call data. This is verified on the api, and will throw an error if it does not match the initial payloads call data.
- This is very useful for signers that want to adjust the `mode` and `metadataHash` field for the `CheckMetadataHash` signed extension.
- Note that this is not your traditional breaking change since it more-so acts as an addition, but since this is a high magnitude change it is going to be considered a MAJOR bump.
- For more info please review the following PR [(#5914)](https://github.com/polkadot-js/api/pull/5914)
Changes:
- Replace `system_accountNextIndex` with runtime api call `accountNonceApi` for `api.derive.tx.signingInfo`
- Sanitize `eras` for `api.derive.staking._stakerRewards`
## 11.3.1 June 17, 2024
Changes:
- Fix period assumption on signingInfo (derive)
- Bump dev to 0.79.3
- Update {Polkadot, Kusama, Westend} types-known
- Bump Substrate metadata to latest
- NOTE: Moving forward when bumping the metadata for {Polkadot, Kusama, Substrate} the version will
always be a minor bump since it can add, modify, remove augmented types.
## 11.2.1 May 28, 2024
Contributed:
- fix: Re-subscribe to chain updates on reconnection if not a clone (Thanks to https://github.com/F-OBrien)
Changes:
- Add support for AuraUnincludedSegmentApi (Thanks to https://github.com/bee344)
- Add support for ParachainHost v11 Api
- Update Kusama and Westend block upgrades
- Update Substrate metadata to latest
## 11.1.1 May 21, 2024
Changes
- Dedupe nextElected accountIds in `api.derive.staking.nextElected`
- Bump @polkadot/dev to 0.79.1 w/ topo sort
- Bump yarn to 4.2.2
- fix: updated extrinsics' assetId `toHuman` (Thanks to https://github.com/bee344)
- fix `api.derive.accounts.{info && identity}`
- feat: Add support for `CheckMetadataHash` signedExtension (Thanks to https://github.com/bee344)
## 11.0.3 May 8, 2024
Changes
- Make `api.derive.staking.*` backwards compatible
- Fix `claimedRewards` regression in `api.derive.staking.queryMulti`
- Update Substrate to latest
## 11.0.2 Apr 24, 2024
Changes
+14 -5
View File
@@ -1,6 +1,6 @@
3512 Jaco Bump deps (#5785)
139 Tarik Gul 15.0.2 (#6044)
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
39 Tarik Gul 11.0.2 (#5866)
37 Keith Ingram Update contract types and rpc (#4541)
35 Stefanie Doll Updated child storage parameters (#1709)
20 Luke Schoen fix: Fixes TypeError: Cannot read property 'vesting' of undefined (#1970)
@@ -10,30 +10,31 @@
11 Ian He HttpProvider support clone() (#3949)
10 Axel Chalon Make Enum/Tuple constructor use value directly if instance (#1954)
6 Andreea Eftene Update check for contract instantiation (#5699)
6 Branislav Kontur Fix for fungiblesApi (#5944)
5 Alberto Nicolas Penayo added use of accountNonceApi (#5915)
5 Chevdor Fix metadata package link (#3458)
5 Jake Naviasky Fixing approvalFlagsToBools. (#1250)
5 Julien Eluard General WsProvider extensibility improvements (#5467)
5 Matias Volpe Bump @substrate/connect to 0.8.10 (#5863)
5 Thibaut Sardan Allow external signers to modify the payload (#6030)
4 Alex D Use derive customAccount and customLocks for balance overrides (#3248)
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 Nantian fix bigint type (#3869)
4 Scott Twiname Add support for historical BlockNumber rpc methods (#4574)
4 Thibaut Sardan no subscription for http (#3127)
3 André Silva add support for ValidationCodeHash (#3640)
3 Antoine Estienne Adapted to display moonbeam author (#3108)
3 Arjan Zijderveld Added `Emergency` to `ElectionPhase` (#3707)
3 Branislav Kontur Added FungiblesApi version 2 (#5687)
3 Ewa Kowalska Handle no council for bounties proposals (#3062)
3 hamidra add support for n key entries for NMaps (#3886)
3 Hamza Tokuchi more typos (#2532)
3 Jeeyong Um Revert "Alias for Noir types (#5678)" (#5946)
3 Josep M Sobrepere docs: improve rpc-provider README (#4719)
3 KarishmaBothara Backward compatibility thing (#3511)
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)
2 Alberto Nicolas Penayo updated remaining assetId for ChargeAssetTxPayment (#5763)
2 Alexander Krupenkin Add [u8; 33] type width for U8aFixed type (#2391)
2 Branan Riley Add proxy type for Centrifuge (#3940)
2 Caio Add `Range` and `RangeInclusive` types (#3791)
@@ -42,7 +43,6 @@
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)
2 MOZGIII Follow-up fix after #4665 (#4666)
@@ -59,12 +59,15 @@
1 Aleš Ferlan fix: use H160 for address in getTransactionCount (#5472)
1 Brad Larson [NEW] Support for custom headers with providers (#2423)
1 Btwiuse Arch Add side effect check workaround (#4994) (#5009)
1 Cameron Marshall implement xcm dry run api (#5970)
1 Carlo Sala fix(ExtrinsicPayload): decode assetId with and without option (#6037)
1 chriswmercer little readme tweak (#279)
1 codingsh #2182 - add: search for docs (#2232)
1 coolcorexix Investigate 4559 v2 (#4608)
1 Dan Forbes Add WeightToFeeCoefficient type (#2296)
1 Daniel Maricic Fixed typo in README (#2402)
1 Daniel Savu fix: Generate custom type definitions (#4224)
1 Daria choosing AccountId20 type if the address is 20 bytes (#5991)
1 David Don't log full error (#2952)
1 David Duong Avoid reserved words during named enum fields augmentation (#5203)
1 Denis Tsai realign AccountKey20Junction to polkadot xcm's Junction enum (#3770)
@@ -73,11 +76,16 @@
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 filvecchiato Add lru ttl cache implementation (#5997)
1 filvecchiato fix: update LRUcache to not keep thread (#6013)
1 flex Change BeefySignedCommitment signatures type to EcdsaSignature (#4204)
1 Florian Franzen metadataMd: use endpoint for rpc and runtime details too (#5628)
1 Francis O'Brien fix: Re-subscribe to chain updates on reconnection if not a clone (#5794)
1 Furqan A fix: fixed 404 to the docs from the api readme (#3985)
1 Gérard Dethier Fix LRUCache memory leak. (#4520)
1 Gerben van de Wiel Adding some extra notes on changes in the specname (#2329)
1 girazoki Implement xcm payment api (#5911)
1 gupnik Adds a check for tip in Submittable (#5953)
1 HackFisher fix OutboundLaneData types (#3992)
1 Hoani Bryson Multiple Endpoint support for WsProvider (#2234)
1 Hyungsuk Kang Update fees.ts (#1014)
@@ -110,6 +118,7 @@
1 philipstanislaus Update types for centrifuge chain v1.2.0 (#2424)
1 Pierre Krieger Update substrate/connect to 0.7.6 (#4940)
1 polymath-eric Allow unset external signer (#5649)
1 Przemek Rzad Increase Vec max length (#5947)
1 Qinxuan Chen Add fp_account::AccountId20 mapping (#5551)
1 qiuhao update DeriveCustom type (#2581)
1 r0t0r-r0t0r Fix memory leak on raw rpc call (#4505)
+7 -7
View File
@@ -6,7 +6,7 @@
},
"homepage": "https://github.com/polkadot-js/api#readme",
"license": "Apache-2.0",
"packageManager": "yarn@4.1.1",
"packageManager": "yarn@4.5.1",
"private": true,
"repository": {
"type": "git",
@@ -14,10 +14,10 @@
},
"sideEffects": false,
"type": "module",
"version": "11.0.2",
"version": "15.0.2",
"versions": {
"git": "11.0.2",
"npm": "11.0.2"
"git": "15.0.2",
"npm": "15.0.2"
},
"workspaces": [
"packages/*"
@@ -40,11 +40,11 @@
"test:one": "polkadot-dev-run-test --env node"
},
"devDependencies": {
"@polkadot/dev": "^0.78.9",
"@polkadot/dev": "^0.82.1",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/node": "^20.11.6"
"@types/node": "^22.7.5"
},
"resolutions": {
"typescript": "^5.3.3"
"typescript": "^5.5.4"
}
}
+8 -8
View File
@@ -18,15 +18,15 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "15.0.2",
"main": "index.js",
"dependencies": {
"@polkadot/api-base": "11.0.2",
"@polkadot/rpc-augment": "11.0.2",
"@polkadot/types": "11.0.2",
"@polkadot/types-augment": "11.0.2",
"@polkadot/types-codec": "11.0.2",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
"@polkadot/api-base": "15.0.2",
"@polkadot/rpc-augment": "15.0.2",
"@polkadot/types": "15.0.2",
"@polkadot/types-augment": "15.0.2",
"@polkadot/types-codec": "15.0.2",
"@polkadot/util": "^13.2.3",
"tslib": "^2.8.0"
}
}
+35 -97
View File
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
import type { Bytes, Option, Vec, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { Codec, ITuple } from '@polkadot/types-codec/types';
import type { Perbill, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingXcmV4Junctions } from '@polkadot/types/lookup';
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
@@ -80,10 +80,14 @@ declare module '@polkadot/api-base/types/consts' {
/**
* 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>;
/**
@@ -204,9 +208,13 @@ declare module '@polkadot/api-base/types/consts' {
};
coretime: {
/**
* The ParaId of the broker system parachain.
* The ParaId of the coretime chain.
**/
brokerId: u32 & AugmentedConst<ApiType>;
/**
* The coretime chain pot location.
**/
brokerPotLocation: StagingXcmV4Junctions & AugmentedConst<ApiType>;
/**
* Generic const
**/
@@ -290,18 +298,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
**/
@@ -370,47 +370,6 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
identity: {
/**
* The amount held on deposit for a registered identity.
**/
basicDeposit: u128 & AugmentedConst<ApiType>;
/**
* The amount held on deposit per encoded byte for a registered identity.
**/
byteDeposit: u128 & AugmentedConst<ApiType>;
/**
* Maxmimum number of registrars allowed in the system. Needed to bound the complexity
* of, e.g., updating judgements.
**/
maxRegistrars: u32 & AugmentedConst<ApiType>;
/**
* 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
* be another trie item whose value is the size of an account ID plus 32 bytes.
**/
subAccountDeposit: u128 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
indices: {
/**
* The deposit needed for reserving an index.
@@ -430,6 +389,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
@@ -438,10 +405,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>;
/**
@@ -556,10 +524,14 @@ declare module '@polkadot/api-base/types/consts' {
/**
* 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>;
/**
@@ -597,6 +569,15 @@ declare module '@polkadot/api-base/types/consts' {
[key: string]: Codec;
};
onDemandAssignmentProvider: {
/**
* The maximum number of blocks some historical revenue
* information stored for.
**/
maxHistoricalRevenue: u32 & AugmentedConst<ApiType>;
/**
* Identifier for the internal revenue balance.
**/
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
/**
* The default value for the spot traffic multiplier.
**/
@@ -887,36 +868,6 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
stateTrieMigration: {
/**
* Maximal number of bytes that a key can have.
*
* FRAME itself does not limit the key length.
* The concrete value must therefore depend on your storage usage.
* A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
* keys which are then hashed and concatenated, resulting in arbitrarily long keys.
*
* Use the *state migration RPC* to retrieve the length of the longest key in your
* storage: <https://github.com/paritytech/substrate/issues/11642>
*
* The migration will halt with a `Halted` event if this value is too small.
* Since there is no real penalty from over-estimating, it is advised to use a large
* value. The default is 512 byte.
*
* Some key lengths for reference:
* - [`frame_support::storage::StorageValue`]: 32 byte
* - [`frame_support::storage::StorageMap`]: 64 byte
* - [`frame_support::storage::StorageDoubleMap`]: 96 byte
*
* For more info see
* <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
**/
maxKeyLen: u32 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
system: {
/**
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
@@ -943,7 +894,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>;
/**
@@ -1015,19 +966,6 @@ declare module '@polkadot/api-base/types/consts' {
* 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.
**/
proposalBond: Permill & AugmentedConst<ApiType>;
/**
* Maximum amount of funds that should be placed in a deposit for making a proposal.
**/
proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;
/**
* Minimum amount of funds that should be placed in a deposit for making a proposal.
**/
proposalBondMinimum: u128 & AugmentedConst<ApiType>;
/**
* Period between successive spends.
**/
+77 -228
View File
@@ -16,6 +16,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.
**/
@@ -274,7 +278,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>;
/**
@@ -323,10 +327,19 @@ declare module '@polkadot/api-base/types/errors' {
[key: string]: AugmentedError<ApiType>;
};
coretime: {
/**
* Failed to transfer assets to the coretime chain
**/
AssetTransferFailed: AugmentedError<ApiType>;
/**
* The paraid making the call is not the coretime brokerage system parachain.
**/
NotBroker: AugmentedError<ApiType>;
/**
* Requested revenue information `when` parameter was in the future from the current
* block height.
**/
RequestedFutureRevenue: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -485,7 +498,7 @@ declare module '@polkadot/api-base/types/errors' {
**/
OcwCallWrongEra: AugmentedError<ApiType>;
/**
* Sumission was prepared for a different round.
* Submission was prepared for a different round.
**/
PreDispatchDifferentRound: AugmentedError<ApiType>;
/**
@@ -598,6 +611,10 @@ declare module '@polkadot/api-base/types/errors' {
* The new member to exchange is the same as the old member
**/
SameMember: AugmentedError<ApiType>;
/**
* The max member count for the rank has been reached.
**/
TooManyMembers: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -648,6 +665,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.
**/
@@ -783,116 +804,6 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError<ApiType>;
};
identity: {
/**
* Account ID is already named.
**/
AlreadyClaimed: AugmentedError<ApiType>;
/**
* Empty index.
**/
EmptyIndex: AugmentedError<ApiType>;
/**
* Fee is changed.
**/
FeeChanged: AugmentedError<ApiType>;
/**
* The index is invalid.
**/
InvalidIndex: AugmentedError<ApiType>;
/**
* 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.
**/
JudgementForDifferentIdentity: AugmentedError<ApiType>;
/**
* Judgement given.
**/
JudgementGiven: AugmentedError<ApiType>;
/**
* 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.
**/
NotFound: AugmentedError<ApiType>;
/**
* Account isn't named.
**/
NotNamed: AugmentedError<ApiType>;
/**
* Sub-account isn't owned by sender.
**/
NotOwned: AugmentedError<ApiType>;
/**
* 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>;
/**
* Maximum amount of registrars reached. Cannot add any more.
**/
TooManyRegistrars: AugmentedError<ApiType>;
/**
* Too many subs-accounts.
**/
TooManySubAccounts: AugmentedError<ApiType>;
/**
* The username is already taken.
**/
UsernameTaken: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
indices: {
/**
* The index was not available.
@@ -1060,7 +971,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>;
/**
@@ -1156,6 +1067,10 @@ declare module '@polkadot/api-base/types/errors' {
* pool at a time.
**/
AccountBelongsToOtherPool: AugmentedError<ApiType>;
/**
* The pool or member delegation has already migrated to delegate stake.
**/
AlreadyMigrated: AugmentedError<ApiType>;
/**
* Bonding extra is restricted to the exact pending reward amount.
**/
@@ -1247,10 +1162,18 @@ declare module '@polkadot/api-base/types/errors' {
* No imbalance in the ED deposit for the pool.
**/
NothingToAdjust: AugmentedError<ApiType>;
/**
* No slash pending that can be applied to the member.
**/
NothingToSlash: AugmentedError<ApiType>;
/**
* Either a) the caller cannot make a valid kick or b) the pool is not destroying.
**/
NotKickerOrDestroying: AugmentedError<ApiType>;
/**
* The pool or member delegation has not migrated yet to delegate stake.
**/
NotMigrated: AugmentedError<ApiType>;
/**
* The caller does not have nominating permissions for the pool.
**/
@@ -1259,6 +1182,10 @@ declare module '@polkadot/api-base/types/errors' {
* The pool is not open to join
**/
NotOpen: AugmentedError<ApiType>;
/**
* This call is not allowed in the current state of the pallet.
**/
NotSupported: AugmentedError<ApiType>;
/**
* The transaction could not be executed due to overflow risk for the pool.
**/
@@ -1293,11 +1220,6 @@ 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.
**/
@@ -1313,24 +1235,6 @@ declare module '@polkadot/api-base/types/errors' {
[key: string]: AugmentedError<ApiType>;
};
paraInclusion: {
/**
* Bitfield consists of zeros only.
**/
BitfieldAllZeros: AugmentedError<ApiType>;
/**
* Multiple bitfields submitted by same validator or validators out of order by index.
**/
BitfieldDuplicateOrUnordered: AugmentedError<ApiType>;
/**
* A bitfield that references a freed core,
* either intentionally or as part of a concluded
* invalid dispute.
**/
BitfieldReferencesFreedCore: AugmentedError<ApiType>;
/**
* Candidate scheduled despite pending candidate already existing for the para.
**/
CandidateScheduledBeforeParaFree: AugmentedError<ApiType>;
/**
* The candidate's relay-parent was not allowed. Either it was
* not recent enough or it didn't advance based on the last parachain block.
@@ -1361,10 +1265,6 @@ declare module '@polkadot/api-base/types/errors' {
* Invalid (bad signature, unknown validator, etc.) backing.
**/
InvalidBacking: AugmentedError<ApiType>;
/**
* Invalid signature
**/
InvalidBitfieldSignature: AugmentedError<ApiType>;
/**
* Invalid group index in core assignment.
**/
@@ -1398,30 +1298,10 @@ declare module '@polkadot/api-base/types/errors' {
* Code upgrade prematurely.
**/
PrematureCodeUpgrade: AugmentedError<ApiType>;
/**
* Scheduled cores out of order.
**/
ScheduledOutOfOrder: AugmentedError<ApiType>;
/**
* A different relay parent was provided compared to the on-chain stored one.
**/
UnexpectedRelayParent: AugmentedError<ApiType>;
/**
* Candidate submitted but para not scheduled.
**/
UnscheduledCandidate: AugmentedError<ApiType>;
/**
* Backed candidates are out of order (core index) or contain duplicates.
**/
UnsortedOrDuplicateBackedCandidates: AugmentedError<ApiType>;
/**
* Dispute statement sets are out of order or contain duplicates.
**/
UnsortedOrDuplicateDisputeStatementSet: AugmentedError<ApiType>;
/**
* Validator indices are out of order or contains duplicates.
**/
UnsortedOrDuplicateValidatorIndices: AugmentedError<ApiType>;
/**
* The validation data hash does not match expected.
**/
@@ -1430,10 +1310,6 @@ declare module '@polkadot/api-base/types/errors' {
* Validator index out of bounds.
**/
ValidatorIndexOutOfBounds: AugmentedError<ApiType>;
/**
* Availability bitfield has unexpected size.
**/
WrongBitfieldSize: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -1441,25 +1317,10 @@ declare module '@polkadot/api-base/types/errors' {
};
paraInherent: {
/**
* A candidate was backed by a disabled validator
* A candidate was filtered during inherent execution. This should have only been done
* during creation.
**/
BackedByDisabled: AugmentedError<ApiType>;
/**
* A candidate was backed even though the paraid was not scheduled.
**/
BackedOnUnscheduledCore: AugmentedError<ApiType>;
/**
* Disputed candidate that was concluded invalid.
**/
CandidateConcludedInvalid: AugmentedError<ApiType>;
/**
* A dispute statement was invalid.
**/
DisputeInvalid: AugmentedError<ApiType>;
/**
* The ordering of dispute statements was invalid.
**/
DisputeStatementsUnsortedOrDuplicates: AugmentedError<ApiType>;
CandidatesFilteredDuringExecution: AugmentedError<ApiType>;
/**
* The data given to the inherent will result in an overweight block.
**/
@@ -1503,6 +1364,10 @@ declare module '@polkadot/api-base/types/errors' {
* Parachain cannot currently schedule a code upgrade.
**/
CannotUpgradeCode: AugmentedError<ApiType>;
/**
* Invalid validation code size.
**/
InvalidCode: AugmentedError<ApiType>;
/**
* Para is not registered in our system.
**/
@@ -1614,6 +1479,10 @@ declare module '@polkadot/api-base/types/errors' {
* Preimage has already been noted on-chain.
**/
AlreadyNoted: AugmentedError<ApiType>;
/**
* No ticket with a cost was returned by [`Config::Consideration`] to store the preimage.
**/
NoCost: AugmentedError<ApiType>;
/**
* The user is not authorized to perform this action.
**/
@@ -1800,6 +1669,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.
**/
@@ -1839,14 +1712,14 @@ declare module '@polkadot/api-base/types/errors' {
* Invalid para code size.
**/
CodeTooLarge: AugmentedError<ApiType>;
/**
* Registering parachain with empty code is not allowed.
**/
EmptyCode: AugmentedError<ApiType>;
/**
* Invalid para head data size.
**/
HeadDataTooLarge: AugmentedError<ApiType>;
/**
* The validation code is invalid.
**/
InvalidCode: AugmentedError<ApiType>;
/**
* The caller is not the owner of this Id.
**/
@@ -2106,6 +1979,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`.
**/
@@ -2164,6 +2041,10 @@ declare module '@polkadot/api-base/types/errors' {
* Not a controller account.
**/
NotController: AugmentedError<ApiType>;
/**
* Not enough funds available to withdraw.
**/
NotEnoughFunds: AugmentedError<ApiType>;
/**
* Items are not sorted and unique.
**/
@@ -2176,6 +2057,10 @@ declare module '@polkadot/api-base/types/errors' {
* Can not rebond without unlocking chunks.
**/
NoUnlockChunk: AugmentedError<ApiType>;
/**
* Provided reward destination is not allowed.
**/
RewardDestinationRestricted: AugmentedError<ApiType>;
/**
* There are too many nominators in the system. Governance needs to adjust the staking
* settings to keep things safe for the runtime.
@@ -2191,41 +2076,9 @@ declare module '@polkadot/api-base/types/errors' {
**/
TooManyValidators: AugmentedError<ApiType>;
/**
* Generic error
* Operation not allowed for virtual stakers.
**/
[key: string]: AugmentedError<ApiType>;
};
stateTrieMigration: {
/**
* Bad child root provided.
**/
BadChildRoot: AugmentedError<ApiType>;
/**
* Bad witness data provided.
**/
BadWitness: AugmentedError<ApiType>;
/**
* A key was longer than the configured maximum.
*
* This means that the migration halted at the current [`Progress`] and
* can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
* Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
* The value should only be increased to avoid a storage migration for the currently
* stored [`crate::Progress::LastKey`].
**/
KeyTooLong: AugmentedError<ApiType>;
/**
* Max signed limits not respected.
**/
MaxSignedLimits: AugmentedError<ApiType>;
/**
* submitter does not have enough funds.
**/
NotEnoughFunds: AugmentedError<ApiType>;
/**
* Signed migration is not allowed because the maximum limit is not set yet.
**/
SignedMigrationNotAllowed: AugmentedError<ApiType>;
VirtualStakerNotAllowed: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -2247,6 +2100,10 @@ declare module '@polkadot/api-base/types/errors' {
* and the new runtime.
**/
InvalidSpecName: AugmentedError<ApiType>;
/**
* A multi-block migration is ongoing and prevents the current code from being replaced.
**/
MultiBlockMigrationsOngoing: AugmentedError<ApiType>;
/**
* Suicide called when the account has non-default composite data.
**/
@@ -2295,10 +2152,6 @@ declare module '@polkadot/api-base/types/errors' {
* amount to be spent.
**/
InsufficientPermission: AugmentedError<ApiType>;
/**
* Proposer's balance is too low.
**/
InsufficientProposersBalance: AugmentedError<ApiType>;
/**
* No proposal, bounty or spend at that index.
**/
@@ -2447,10 +2300,6 @@ declare module '@polkadot/api-base/types/errors' {
* The unlock operation cannot succeed because there are still consumers of the lock.
**/
InUse: AugmentedError<ApiType>;
/**
* Invalid non-concrete asset.
**/
InvalidAssetNotConcrete: AugmentedError<ApiType>;
/**
* Invalid asset, reserve chain could not be determined for it.
**/
+40 -118
View File
@@ -10,7 +10,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
import type { ITuple } from '@polkadot/types-codec/types';
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
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';
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV7CandidateReceipt, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, StagingKusamaRuntimeProxyType, StagingKusamaRuntimeRuntimeParametersKey, StagingKusamaRuntimeRuntimeParametersValue, StagingXcmV4AssetAssets, StagingXcmV4Location, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmV3TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
@@ -343,7 +343,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.
@@ -502,7 +502,7 @@ declare module '@polkadot/api-base/types/events' {
**/
HrmpChannelForceOpened: AugmentedEvent<ApiType, [sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32], { sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32 }>;
/**
* An HRMP channel was opened between two system chains.
* An HRMP channel was opened with a system chain.
**/
HrmpSystemChannelOpened: AugmentedEvent<ApiType, [sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32], { sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32 }>;
/**
@@ -526,82 +526,6 @@ 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.
**/
IdentityCleared: AugmentedEvent<ApiType, [who: AccountId32, deposit: u128], { who: AccountId32, deposit: u128 }>;
/**
* A name was removed and the given balance slashed.
**/
IdentityKilled: AugmentedEvent<ApiType, [who: AccountId32, deposit: u128], { who: AccountId32, deposit: u128 }>;
/**
* A name was set or reset (which will remove all judgements).
**/
IdentitySet: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
/**
* A judgement was given by a registrar.
**/
JudgementGiven: AugmentedEvent<ApiType, [target: AccountId32, registrarIndex: u32], { target: AccountId32, registrarIndex: u32 }>;
/**
* A judgement was asked from a registrar.
**/
JudgementRequested: AugmentedEvent<ApiType, [who: AccountId32, registrarIndex: u32], { who: AccountId32, registrarIndex: u32 }>;
/**
* 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.
**/
RegistrarAdded: AugmentedEvent<ApiType, [registrarIndex: u32], { registrarIndex: u32 }>;
/**
* A sub-identity was added to an identity and the deposit paid.
**/
SubIdentityAdded: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], { sub: AccountId32, main: AccountId32, deposit: u128 }>;
/**
* A sub-identity was removed from an identity and the deposit freed.
**/
SubIdentityRemoved: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], { sub: AccountId32, main: AccountId32, deposit: u128 }>;
/**
* A sub-identity was cleared, and the given deposit repatriated from the
* 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
**/
[key: string]: AugmentedEvent<ApiType>;
};
indices: {
/**
* A account index was assigned.
@@ -690,7 +614,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 }>;
/**
@@ -904,13 +828,13 @@ declare module '@polkadot/api-base/types/events' {
};
onDemandAssignmentProvider: {
/**
* An order was placed at some spot price amount.
* An order was placed at some spot price amount by orderer ordered_by
**/
OnDemandOrderPlaced: AugmentedEvent<ApiType, [paraId: u32, spotPrice: u128], { paraId: u32, spotPrice: u128 }>;
OnDemandOrderPlaced: AugmentedEvent<ApiType, [paraId: u32, spotPrice: u128, orderedBy: AccountId32], { paraId: u32, spotPrice: u128, orderedBy: AccountId32 }>;
/**
* The value of the spot traffic multiplier changed.
* The value of the spot price has likely changed
**/
SpotTrafficSet: AugmentedEvent<ApiType, [traffic: u128], { traffic: u128 }>;
SpotPriceSet: AugmentedEvent<ApiType, [spotPrice: u128], { spotPrice: u128 }>;
/**
* Generic event
**/
@@ -920,15 +844,15 @@ declare module '@polkadot/api-base/types/events' {
/**
* A candidate was backed. `[candidate, head_data]`
**/
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV6CandidateReceipt, Bytes, u32, u32]>;
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV7CandidateReceipt, Bytes, u32, u32]>;
/**
* A candidate was included. `[candidate, head_data]`
**/
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV6CandidateReceipt, Bytes, u32, u32]>;
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV7CandidateReceipt, Bytes, u32, u32]>;
/**
* A candidate timed out. `[candidate, head_data]`
**/
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV6CandidateReceipt, Bytes, u32]>;
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV7CandidateReceipt, Bytes, u32]>;
/**
* Some upward messages have been received and will be processed.
**/
@@ -938,6 +862,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: StagingKusamaRuntimeRuntimeParametersKey, oldValue: Option<StagingKusamaRuntimeRuntimeParametersValue>, newValue: Option<StagingKusamaRuntimeRuntimeParametersValue>], { key: StagingKusamaRuntimeRuntimeParametersKey, oldValue: Option<StagingKusamaRuntimeRuntimeParametersValue>, newValue: Option<StagingKusamaRuntimeRuntimeParametersValue> }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
paras: {
/**
* A para has been queued to execute pending actions. `para_id`
@@ -1171,6 +1107,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.
**/
@@ -1296,6 +1245,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.
@@ -1365,29 +1318,6 @@ declare module '@polkadot/api-base/types/events' {
**/
[key: string]: AugmentedEvent<ApiType>;
};
stateTrieMigration: {
/**
* The auto migration task finished.
**/
AutoMigrationFinished: AugmentedEvent<ApiType, []>;
/**
* Migration got halted due to an error or miss-configuration.
**/
Halted: AugmentedEvent<ApiType, [error: PalletStateTrieMigrationError], { error: PalletStateTrieMigrationError }>;
/**
* Given number of `(top, child)` keys were migrated respectively, with the given
* `compute`.
**/
Migrated: AugmentedEvent<ApiType, [top: u32, child: u32, compute: PalletStateTrieMigrationMigrationCompute], { top: u32, child: u32, compute: PalletStateTrieMigrationMigrationCompute }>;
/**
* Some account got slashed by the given amount.
**/
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
system: {
/**
* `:code` was updated.
@@ -1462,14 +1392,6 @@ declare module '@polkadot/api-base/types/events' {
* A payment failed and can be retried.
**/
PaymentFailed: AugmentedEvent<ApiType, [index: u32, paymentId: u64], { index: u32, paymentId: u64 }>;
/**
* New proposal.
**/
Proposed: AugmentedEvent<ApiType, [proposalIndex: u32], { proposalIndex: u32 }>;
/**
* A proposal was rejected; funds were slashed.
**/
Rejected: AugmentedEvent<ApiType, [proposalIndex: u32, slashed: u128], { proposalIndex: u32, slashed: u128 }>;
/**
* Spending has finished; this is the amount that rolls over until next spend.
**/
+125 -131
View File
@@ -6,12 +6,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 { 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, 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 { BinaryHeapEnqueuedOrder, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmount, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV7AssignmentAppPublic, PolkadotPrimitivesV7DisputeState, PolkadotPrimitivesV7ExecutorParams, PolkadotPrimitivesV7ScrapedOnChainVotes, PolkadotPrimitivesV7SessionInfo, PolkadotPrimitivesV7SlashingPendingSlashes, PolkadotPrimitivesV7UpgradeGoAhead, PolkadotPrimitivesV7UpgradeRestriction, PolkadotPrimitivesV7ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor, PolkadotRuntimeParachainsAssignerCoretimeSchedule, PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount, PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder, PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, 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, StagingKusamaRuntimeRuntimeParametersKey, StagingKusamaRuntimeRuntimeParametersValue, StagingKusamaRuntimeSessionKeys, StagingXcmV4Instruction, StagingXcmV4Xcm, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
import type { Observable } from '@polkadot/types/types';
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
@@ -246,10 +245,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]>;
/**
@@ -816,60 +819,6 @@ declare module '@polkadot/api-base/types/storage' {
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
identity: {
/**
* 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<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).
*
* The index into this can be cast to `RegistrarIndex` to get a valid value.
**/
registrars: AugmentedQuery<ApiType, () => Observable<Vec<Option<PalletIdentityRegistrarInfo>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Alternative "sub" identities of this account.
*
* The first item is the deposit, the second is a vector of the accounts.
*
* TWOX-NOTE: OK `AccountId` is a secure hash.
**/
subsOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[u128, Vec<AccountId32>]>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* The super-identity of an alternative "sub" identity together with its name, within that
* 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
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
indices: {
/**
* The lookup from index to account.
@@ -1013,7 +962,7 @@ 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<FrameSupportTokensMiscIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Holds on account balances.
**/
@@ -1028,10 +977,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]>;
/**
@@ -1128,13 +1081,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]>;
/**
@@ -1171,21 +1124,27 @@ declare module '@polkadot/api-base/types/storage' {
};
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.
* Queue entries that are currently bound to a particular core due to core affinity.
**/
onDemandQueue: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder>>, []> & QueryableStorageEntry<ApiType, []>;
affinityEntries: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<BinaryHeapEnqueuedOrder>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Priority queue for all orders which don't yet (or not any more) have any core affinity.
**/
freeEntries: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder>>, []> & 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]>;
paraIdAffinity: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Keeps track of the multiplier used to calculate the current spot price for the on demand
* assigner.
* Overall status of queue (both free + affinity entries)
**/
spotTraffic: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
queueStatus: AugmentedQuery<ApiType, () => Observable<PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Keeps track of accumulated revenue from on demand order sales.
**/
revenue: AugmentedQuery<ApiType, () => Observable<Vec<u128>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
@@ -1193,17 +1152,13 @@ declare module '@polkadot/api-base/types/storage' {
};
paraInclusion: {
/**
* The latest bitfield for each validator, referred to by their index in the validator set.
* Candidates pending availability by `ParaId`. They form a chain starting from the latest
* included head of the para.
* Use a different prefix post-migration to v1, since the v0 `PendingAvailability` storage
* would otherwise have the exact same prefix which could cause undefined behaviour when doing
* the migration.
**/
availabilityBitfields: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Candidates pending availability by `ParaId`.
**/
pendingAvailability: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* The commitments of candidates pending availability, by `ParaId`.
**/
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
v1: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
**/
@@ -1222,7 +1177,17 @@ 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<PolkadotPrimitivesV6ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV7ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
parameters: {
/**
* Stored parameters.
**/
parameters: AugmentedQuery<ApiType, (arg: StagingKusamaRuntimeRuntimeParametersKey | { Inflation: any } | string | Uint8Array) => Observable<Option<StagingKusamaRuntimeRuntimeParametersValue>>, [StagingKusamaRuntimeRuntimeParametersKey]> & QueryableStorageEntry<ApiType, [StagingKusamaRuntimeRuntimeParametersKey]>;
/**
* Generic query
**/
@@ -1257,11 +1222,23 @@ declare module '@polkadot/api-base/types/storage' {
**/
futureCodeHash: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* The block number at which the planned code change is expected for a para.
* The block number at which the planned code change is expected for a parachain.
*
* The change will be applied after the first parablock for this ID included which executes
* in the context of a relay chain block with a number >= `expected_at`.
**/
futureCodeUpgrades: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* The list of upcoming future code upgrades.
*
* Each item is a pair of the parachain and the expected block at which the upgrade should be
* applied. The upgrade will be applied at the given relay chain block. In contrast to
* [`FutureCodeUpgrades`] this code upgrade will be applied regardless the parachain making any
* progress or not.
*
* Ordered ascending by block number.
**/
futureCodeUpgradesAt: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The head-data of every registered para.
**/
@@ -1322,8 +1299,10 @@ declare module '@polkadot/api-base/types/storage' {
**/
upcomingParasGenesis: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsParasParaGenesisArgs>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* The list of upcoming code upgrades. Each item is a pair of which para performs a code
* upgrade and at which relay-chain block it is expected at.
* The list of upcoming code upgrades.
*
* Each item is a pair of which para performs a code upgrade and at which relay-chain block it
* is expected at.
*
* Ordered ascending by block number.
**/
@@ -1346,7 +1325,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<PolkadotPrimitivesV6UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* This is used by the relay-chain to communicate that there are restrictions for performing
* an upgrade for this parachain.
@@ -1358,7 +1337,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<PolkadotPrimitivesV6UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
**/
@@ -1366,10 +1345,8 @@ declare module '@polkadot/api-base/types/storage' {
};
paraScheduler: {
/**
* One entry for each availability core. Entries are `None` if the core is not currently
* occupied. Can be temporarily `Some` if scheduled but not occupied.
* The i'th parachain belongs to the i'th core, with the remaining cores all being
* parathread-multiplexers.
* One entry for each availability core. The i'th parachain belongs to the i'th core, with the
* remaining cores all being on demand parachain multiplexers.
*
* Bounded by the maximum of either of these two values:
* * The number of parachains and parathread multiplexers
@@ -1378,10 +1355,8 @@ declare module '@polkadot/api-base/types/storage' {
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
* as there is one currently being scheduled. Not using `None` here would overwrite the
* `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.
* scheduled on that core. 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<PolkadotRuntimeParachainsSchedulerPalletParasEntry>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
@@ -1418,7 +1393,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<PolkadotPrimitivesV6DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV7DisputeState>>, [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,
@@ -1451,7 +1426,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<PolkadotPrimitivesV6AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV7AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The earliest session for which previous session info is stored.
**/
@@ -1459,13 +1434,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<PolkadotPrimitivesV6ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7ExecutorParams>>, [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<PolkadotPrimitivesV6SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
**/
@@ -1481,7 +1456,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<PolkadotPrimitivesV6ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV7ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* All allowed relay-parents.
**/
@@ -1499,7 +1474,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<PolkadotPrimitivesV6SlashingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV7SlashingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
/**
* `ValidatorSetCount` per session.
**/
@@ -1630,6 +1605,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
**/
@@ -1836,6 +1815,10 @@ declare module '@polkadot/api-base/types/storage' {
* Counter for the related counted storage map
**/
counterForValidators: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Counter for the related counted storage map
**/
counterForVirtualStakers: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The current era index.
*
@@ -1849,6 +1832,16 @@ declare module '@polkadot/api-base/types/storage' {
* This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
**/
currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Indices of validators that have offended in the active era. The offenders are disabled for a
* whole era. For this reason they are kept here - only staking pallet knows about eras. The
* implementor of [`DisablingStrategy`] defines if a validator should be disabled which
* implicitly means that the implementor also controls the max number of disabled validators.
*
* The vec is always kept sorted so that we can find whether a given validator has previously
* offended using binary search.
**/
disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Rewards for the last [`Config::HistoryDepth`] eras.
* If reward hasn't been set or has been removed then 0 reward is returned.
@@ -1957,6 +1950,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.
*
@@ -2011,18 +2010,6 @@ declare module '@polkadot/api-base/types/storage' {
* All slashing events on nominators, mapped by era to the highest slash value of the era.
**/
nominatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
* Indices of validators that have offended in the active era and whether they are currently
* disabled.
*
* This value should be a superset of disabled validators since not all offences lead to the
* validator being disabled (if there was no slash). This is needed to track the percentage of
* validators that have offended in the current era, ensuring a new era is forced if
* `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
* whether a given validator has previously offended using binary search. It gets cleared when
* the era ends.
**/
offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Where the reward payment should be made. Keyed by stash.
*
@@ -2064,30 +2051,14 @@ declare module '@polkadot/api-base/types/storage' {
**/
validatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[Perbill, u128]>>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
stateTrieMigration: {
/**
* The limits that are imposed on automatic migrations.
* Stakers whose funds are managed by other pallets.
*
* If set to None, then no automatic migration happens.
* This pallet does not apply any locks on them, therefore they are only virtually bonded. They
* are expected to be keyless accounts and hence should not be allowed to mutate their ledger
* directly via this pallet. Instead, these accounts are managed by other pallets and accessed
* via low level apis. We keep track of them to do minimal integrity checks.
**/
autoLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Migration progress.
*
* This stores the snapshot of the last migrated keys. It can be set into motion and move
* forward by any of the means provided by this pallet.
**/
migrationProcess: AugmentedQuery<ApiType, () => Observable<PalletStateTrieMigrationMigrationTask>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The maximum limits that the signed migration could use.
*
* If not set, no signed submission is allowed.
**/
signedMigrationMaxLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
virtualStakers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Null>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Generic query
**/
@@ -2157,6 +2128,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.
**/
@@ -2307,6 +2282,15 @@ declare module '@polkadot/api-base/types/storage' {
* The latest available query index.
**/
queryCounter: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
/**
* If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally
* will be stored here.
* Runtime APIs can fetch the XCM that was executed by accessing this value.
*
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
* implementation in the XCM executor configuration.
**/
recordedXcm: AugmentedQuery<ApiType, () => Observable<Option<Vec<StagingXcmV4Instruction>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Fungible assets which we know are locked on a remote chain.
**/
@@ -2316,6 +2300,16 @@ declare module '@polkadot/api-base/types/storage' {
* then the destinations whose XCM version is unknown are considered unreachable.
**/
safeXcmVersion: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Whether or not incoming XCMs (both executed locally and received) should be recorded.
* Only one XCM program will be recorded at a time.
* This is meant to be used in runtime APIs, and it's advised it stays false
* for all other use cases, so as to not degrade regular performance.
*
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
* implementation in the XCM executor configuration.
**/
shouldRecordXcm: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The Latest versions that we know various locations support.
**/
+248 -165
View File
@@ -6,27 +6,14 @@
import '@polkadot/api-base/types/calls';
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
import type { Bytes, Null, Option, Result, U64, Vec, bool, u32 } from '@polkadot/types-codec';
import type { BTreeMap, BitVec, Bytes, Null, Option, Result, Text, Vec, bool, u128, u32, u64 } 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';
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 { OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
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 { 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';
import type { ParaId, ValidationCodeHash } from '@polkadot/types/interfaces/parachains';
import type { AccountId32, H256, RuntimeCall, Slot } from '@polkadot/types/interfaces/runtime';
import type { PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotPrimitivesV7ApprovalVotingParams, PolkadotPrimitivesV7AsyncBackingAsyncBackingParams, PolkadotPrimitivesV7AsyncBackingBackingState, PolkadotPrimitivesV7CandidateCommitments, PolkadotPrimitivesV7CandidateEvent, PolkadotPrimitivesV7CommittedCandidateReceipt, PolkadotPrimitivesV7CoreState, PolkadotPrimitivesV7DisputeState, PolkadotPrimitivesV7ExecutorParams, PolkadotPrimitivesV7GroupRotationInfo, PolkadotPrimitivesV7OccupiedCoreAssumption, PolkadotPrimitivesV7PersistedValidationData, PolkadotPrimitivesV7PvfCheckStatement, PolkadotPrimitivesV7ScrapedOnChainVotes, PolkadotPrimitivesV7SessionInfo, PolkadotPrimitivesV7SlashingDisputeProof, PolkadotPrimitivesV7SlashingPendingSlashes, PolkadotPrimitivesV7ValidatorAppPublic, PolkadotPrimitivesV7ValidatorAppSignature, RelayCommonApisInflationInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusBeefyValidatorSet, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpMmrPrimitivesError, SpMmrPrimitivesLeafProof, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpVersionRuntimeVersion, SpWeightsWeightV2Weight, StagingKusamaRuntimeOriginCaller, XcmRuntimeApisConversionsError, XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError, XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisFeesError, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
import type { IExtrinsic, Observable } from '@polkadot/types/types';
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
@@ -34,189 +21,230 @@ export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<Ap
declare module '@polkadot/api-base/types/calls' {
interface AugmentedCalls<ApiType extends ApiTypes> {
/** 0xbc9d89904f5b923f/1 */
/** 0xbc9d89904f5b923f/ */
accountNonceApi: {
/**
* The API to query account nonce (aka transaction index)
* Get current account nonce of given `AccountId`.
**/
accountNonce: AugmentedCall<ApiType, (accountId: AccountId | string | Uint8Array) => Observable<Index>>;
accountNonce: AugmentedCall<ApiType, (account: AccountId32 | string | Uint8Array) => Observable<u32>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x687ad44ad37f03c2/1 */
/** 0x687ad44ad37f03c2/ */
authorityDiscoveryApi: {
/**
* Retrieve authority identifiers of the current and next authority set.
**/
authorities: AugmentedCall<ApiType, () => Observable<Vec<AuthorityId>>>;
authorities: AugmentedCall<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xcbca25e39f142387/2 */
/** 0xcbca25e39f142387/ */
babeApi: {
/**
* Return the genesis configuration for BABE. The configuration is only read on genesis.
* Return the configuration for BABE.
**/
configuration: AugmentedCall<ApiType, () => Observable<BabeGenesisConfiguration>>;
configuration: AugmentedCall<ApiType, () => Observable<SpConsensusBabeBabeConfiguration>>;
/**
* Returns information regarding the current epoch.
**/
currentEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
currentEpoch: AugmentedCall<ApiType, () => Observable<SpConsensusBabeEpoch>>;
/**
* Returns the slot that started the current epoch.
**/
currentEpochStart: AugmentedCall<ApiType, () => Observable<Slot>>;
/**
* Generates a proof of key ownership for the given authority in the current epoch.
* Generates a proof of key ownership for the given authority in the, current epoch. An example usage of this module is coupled with the, session historical module to prove that a given authority key is, tied to a given staking identity during a specific session. Proofs, of key ownership are necessary for submitting equivocation reports., NOTE: even though the API takes a `slot` as parameter the current, implementations ignores this parameter and instead relies on this, method being called at the correct block height, i.e. any point at, which the epoch for the given slot is live on-chain. Future, implementations will instead use indexed data through an offchain, worker, not requiring older states to be available.
**/
generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authority_id: SpConsensusBabeAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
/**
* Returns information regarding the next epoch (which was already previously announced).
* Returns information regarding the next epoch (which was already, previously announced).
**/
nextEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
nextEpoch: AugmentedCall<ApiType, () => Observable<SpConsensusBabeEpoch>>;
/**
* Submits an unsigned extrinsic to report an equivocation.
* Submits an unsigned extrinsic to report an equivocation. The caller, must provide the equivocation proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`). The, extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
**/
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BabeEquivocationProof | { offender?: any; slotNumber?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusSlotsEquivocationProof | { offender?: any; slot?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, key_owner_proof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x49eaaf1b548a0cb0/3 */
/** 0x49eaaf1b548a0cb0/ */
beefyApi: {
/**
* Return the block number where BEEFY consensus is enabled/started
**/
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<BlockNumber>>>;
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<u32>>>;
/**
* Generates a proof of key ownership for the given authority in the given set.
* Generates a proof of key ownership for the given authority in the, given set. An example usage of this module is coupled with the, session historical module to prove that a given authority key is, tied to a given staking identity during a specific session. Proofs, of key ownership are necessary for submitting equivocation reports., NOTE: even though the API takes a `set_id` as parameter the current, implementations ignores this parameter and instead relies on this, method being called at the correct block height, i.e. any point at, which the given set id is live on-chain. Future implementations will, instead use indexed data through an offchain worker, not requiring, older states to be available.
**/
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: ValidatorSetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
generateKeyOwnershipProof: AugmentedCall<ApiType, (set_id: u64 | AnyNumber | Uint8Array, authority_id: SpConsensusBeefyEcdsaCryptoPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
/**
* Submits an unsigned extrinsic to report an equivocation.
* Submits an unsigned extrinsic to report an equivocation. The caller, must provide the equivocation proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`). The, extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
**/
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BeefyEquivocationProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusBeefyDoubleVotingProof | { first?: any; second?: any } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
/**
* Return the current active BEEFY validator set
**/
validatorSet: AugmentedCall<ApiType, () => Observable<Option<ValidatorSet>>>;
validatorSet: AugmentedCall<ApiType, () => Observable<Option<SpConsensusBeefyValidatorSet>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x2a5e924655399e60/1 */
/** 0x2a5e924655399e60/ */
beefyMmrApi: {
/**
* Return the currently active BEEFY authority set proof.
**/
authoritySetProof: AugmentedCall<ApiType, () => Observable<BeefyAuthoritySet>>;
authoritySetProof: AugmentedCall<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>>;
/**
* Return the next/queued BEEFY authority set proof.
**/
nextAuthoritySetProof: AugmentedCall<ApiType, () => Observable<BeefyNextAuthoritySet>>;
nextAuthoritySetProof: AugmentedCall<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x40fe3ad401f8959a/6 */
/** 0x40fe3ad401f8959a/ */
blockBuilder: {
/**
* Apply the given extrinsic.
* Apply the given extrinsic.,, Returns an inclusion outcome which specifies if this extrinsic is included in, this block or not.
**/
applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<Result<Result<Null, SpRuntimeDispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>>;
/**
* Check that the inherents are valid.
* Check that the inherents are valid. The inherent data will vary from chain to chain.
**/
checkInherents: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array, data: InherentData | { data?: any } | string | Uint8Array) => Observable<CheckInherentsResult>>;
checkInherents: AugmentedCall<ApiType, (block: SpRuntimeBlock | { header?: any; extrinsics?: any } | string | Uint8Array, data: SpInherentsInherentData | { data?: any } | string | Uint8Array) => Observable<SpInherentsCheckInherentsResult>>;
/**
* Finish the current block.
**/
finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
finalizeBlock: AugmentedCall<ApiType, () => Observable<SpRuntimeHeader>>;
/**
* Generate inherent extrinsics.
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
**/
inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | { data?: any } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;
inherentExtrinsics: AugmentedCall<ApiType, (inherent: SpInherentsInherentData | { data?: any } | string | Uint8Array) => Observable<Vec<Bytes>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xdf6acb689907609b/4 */
/** 0xdf6acb689907609b/ */
core: {
/**
* Execute the given block.
**/
executeBlock: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable<Null>>;
executeBlock: AugmentedCall<ApiType, (block: SpRuntimeBlock | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable<Null>>;
/**
* Initialize a block with the given header.
* Initialize a block with the given header and return the runtime executive mode.
**/
initializeBlock: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
initializeBlock: AugmentedCall<ApiType, (header: SpRuntimeHeader | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<SpRuntimeExtrinsicInclusionMode>>;
/**
* Returns the version of the runtime.
**/
version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;
version: AugmentedCall<ApiType, () => Observable<SpVersionRuntimeVersion>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xfbc577b9d747efd6/1 */
/** 0x91b1c8b16328eb92/ */
dryRunApi: {
/**
* Dry run call.
**/
dryRunCall: AugmentedCall<ApiType, (origin: StagingKusamaRuntimeOriginCaller | { system: any } | { Void: any } | { Origins: any } | { ParachainsOrigin: any } | { XcmPallet: any } | string | Uint8Array, call: RuntimeCall | IMethod | string | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>>;
/**
* Dry run XCM program
**/
dryRunXcm: AugmentedCall<ApiType, (origin_location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, xcm: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisDryRunError>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xfbc577b9d747efd6/ */
genesisBuilder: {
/**
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the, storage.,, In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and, puts it into the storage. If the provided JSON blob is incorrect or incomplete or the, deserialization fails, an error is returned.,, Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no, defaults will be used.
**/
buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
buildState: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<Null, Text>>>;
/**
* Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by, `id`.,, If `id` is `None` the function returns JSON blob representation of the default, `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default, `RuntimeGenesisConfig`.,, Otherwise function returns a JSON representation of the built-in, named, `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not, exists. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of, (potentially nested) key-value pairs that are intended for customizing the default, runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation, of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can, be used in `build_state` method.
**/
createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
getPreset: AugmentedCall<ApiType, (id: Option<Text> | null | Uint8Array | Text | string) => Observable<Option<Bytes>>>;
/**
* Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.,, The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If, no named presets are provided by the runtime the list is empty.
**/
presetNames: AugmentedCall<ApiType, () => Observable<Vec<Text>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xed99c5acb25eedf5/3 */
/** 0xed99c5acb25eedf5/ */
grandpaApi: {
/**
* Get current GRANDPA authority set id.
**/
currentSetId: AugmentedCall<ApiType, () => Observable<SetId>>;
currentSetId: AugmentedCall<ApiType, () => Observable<u64>>;
/**
* Generates a proof of key ownership for the given authority in the given set.
* Generates a proof of key ownership for the given authority in the, given set. An example usage of this module is coupled with the, session historical module to prove that a given authority key is, tied to a given staking identity during a specific session. Proofs, of key ownership are necessary for submitting equivocation reports., NOTE: even though the API takes a `set_id` as parameter the current, implementations ignore this parameter and instead rely on this, method being called at the correct block height, i.e. any point at, which the given set id is live on-chain. Future implementations will, instead use indexed data through an offchain worker, not requiring, older states to be available.
**/
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: SetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
generateKeyOwnershipProof: AugmentedCall<ApiType, (set_id: u64 | AnyNumber | Uint8Array, authority_id: SpConsensusGrandpaAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
/**
* Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
* Get the current GRANDPA authorities and weights. This should not change except, for when changes are scheduled and the corresponding delay has passed.,, When called at block B, it will return the set of authorities that should be, used to finalize descendants of this block (B+1, B+2, ...). The block B itself, is finalized by the authorities from block B-1.
**/
grandpaAuthorities: AugmentedCall<ApiType, () => Observable<AuthorityList>>;
grandpaAuthorities: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>>;
/**
* Submits an unsigned extrinsic to report an equivocation.
* Submits an unsigned extrinsic to report an equivocation. The caller, must provide the equivocation proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`). The, extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
**/
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x37e397fc7c91f5e4/2 */
/** 0xc51ff1fa3f5d0cca/ */
inflation: {
/**
* Return the current estimates of the inflation amount.,, This is marked as experimental in light of RFC#89. Nonetheless, its usage is highly, recommended over trying to read-storage, or re-create the onchain logic.
**/
experimentalInflationPredictionInfo: AugmentedCall<ApiType, () => Observable<RelayCommonApisInflationInfo>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x9ffb505aa738d69c/ */
locationToAccountApi: {
/**
* Converts `Location` to `AccountId`.
**/
convertLocation: AugmentedCall<ApiType, (location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<AccountId32, XcmRuntimeApisConversionsError>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x37e397fc7c91f5e4/ */
metadata: {
/**
* Returns the metadata of a runtime
* Returns the metadata of a runtime.
**/
metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
/**
* Returns the metadata at a given version.
* Returns the metadata at a given version.,, If the given `version` isn't supported, this will return `None`., Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime.
**/
metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
/**
* Returns the supported metadata versions.
* Returns the supported metadata versions.,, This can be used to call `metadata_at_version`.
**/
metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
/**
@@ -224,194 +252,218 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x91d5df18b0d2cf58/2 */
/** 0x91d5df18b0d2cf58/ */
mmrApi: {
/**
* Generate MMR proof for the given block numbers.
* Generate MMR proof for a series of block numbers. If `best_known_block_number = Some(n)`,, use historical MMR state at given block height `n`. Else, use current MMR state.
**/
generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
generateProof: AugmentedCall<ApiType, (block_numbers: Vec<u32> | (u32 | AnyNumber | Uint8Array)[], best_known_block_number: Option<u32> | null | Uint8Array | u32 | AnyNumber) => Observable<Result<ITuple<[Vec<Bytes>, SpMmrPrimitivesLeafProof]>, SpMmrPrimitivesError>>>;
/**
* Return the number of MMR blocks in the chain.
**/
mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<U64, MmrError>>>;
mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<u64, SpMmrPrimitivesError>>>;
/**
* Return the on-chain MMR root hash.
**/
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<H256, SpMmrPrimitivesError>>>;
/**
* Verify MMR proof against on-chain MMR.
* Verify MMR proof against on-chain MMR for a batch of leaves.,, Note this function will use on-chain MMR root hash and check if the proof matches the hash., Note, the leaves should be sorted such that corresponding leaves and leaf indices have the, same position in both the `leaves` vector and the `leaf_indices` vector contained in the [LeafProof]
**/
verifyProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
verifyProof: AugmentedCall<ApiType, (leaves: Vec<Bytes> | (Bytes | string | Uint8Array)[], proof: SpMmrPrimitivesLeafProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<Null, SpMmrPrimitivesError>>>;
/**
* Verify MMR proof against given root hash.
* Verify MMR proof against given root hash for a batch of leaves.,, Note this function does not require any on-chain storage - the, proof is verified against given MMR root hash.,, Note, the leaves should be sorted such that corresponding leaves and leaf indices have the, same position in both the `leaves` vector and the `leaf_indices` vector contained in the [LeafProof]
**/
verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
verifyProofStateless: AugmentedCall<ApiType, (root: H256 | string | Uint8Array, leaves: Vec<Bytes> | (Bytes | string | Uint8Array)[], proof: SpMmrPrimitivesLeafProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<Null, SpMmrPrimitivesError>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x17a6bc0d0062aeb3/1 */
/** 0x17a6bc0d0062aeb3/ */
nominationPoolsApi: {
/**
* Returns the equivalent points of `new_funds` for a given pool.
**/
balanceToPoints: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, newFunds: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
balanceToPoints: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array, new_funds: u128 | AnyNumber | Uint8Array) => Observable<u128>>;
/**
* Returns the pending rewards for the given member.
* Returns true if the delegated funds of the pool `member` needs migration.,, Once a pool has successfully migrated to the strategy, [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake), the funds of the, member can be migrated from pool account to the member's account. Use, [`migrate_delegation`](pallet_nomination_pools::Call::migrate_delegation), to migrate the funds of the pool member.
**/
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
memberNeedsDelegateMigration: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<bool>>;
/**
* Returns the pending slash for a given pool member.
**/
memberPendingSlash: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<u128>>;
/**
* Returns the pending rewards for the member that the AccountId was given for.
**/
pendingRewards: AugmentedCall<ApiType, (who: AccountId32 | string | Uint8Array) => Observable<u128>>;
/**
* Returns the equivalent balance of `points` for a given pool.
**/
pointsToBalance: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, points: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
pointsToBalance: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array, points: u128 | AnyNumber | Uint8Array) => Observable<u128>>;
/**
* Returns true if the pool with `pool_id` needs migration.,, This can happen when the `pallet-nomination-pools` has switched to using strategy, [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake) but the pool, still has funds that were staked using the older strategy, [TransferStake](pallet_nomination_pools::adapter::TransferStake). Use, [`migrate_pool_to_delegate_stake`](pallet_nomination_pools::Call::migrate_pool_to_delegate_stake), to migrate the pool.
**/
poolNeedsDelegateMigration: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<bool>>;
/**
* Returns the pending slash for a given pool.
**/
poolPendingSlash: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xf78b278be53f454c/2 */
/** 0xf78b278be53f454c/ */
offchainWorkerApi: {
/**
* Starts the off-chain task for given block header.
**/
offchainWorker: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
offchainWorker: AugmentedCall<ApiType, (header: SpRuntimeHeader | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xaf2c0297a23e6d3d/10 */
/** 0xaf2c0297a23e6d3d/ */
parachainHost: {
/**
* Approval voting configuration parameters
**/
approvalVotingParams: AugmentedCall<ApiType, () => Observable<ApprovalVotingParams>>;
approvalVotingParams: AugmentedCall<ApiType, () => Observable<PolkadotPrimitivesV7ApprovalVotingParams>>;
/**
* Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.
* Returns the persisted validation data for the given `ParaId` along with the corresponding, validation code hash. Instead of accepting assumption about the para, matches the validation, data hash against an expected one and yields `None` if they're not equal.
**/
assumedValidationData: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, hash: Hash | string | Uint8Array) => Observable<Option<ITuple<[PersistedValidationData, ValidationCodeHash]>>>>;
assumedValidationData: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, expected_persisted_validation_data_hash: H256 | string | Uint8Array) => Observable<Option<ITuple<[PolkadotPrimitivesV7PersistedValidationData, H256]>>>>;
/**
* Returns candidate's acceptance limitations for asynchronous backing for a relay parent
* Returns candidate's acceptance limitations for asynchronous backing for a relay parent.
**/
asyncBackingParams: AugmentedCall<ApiType, () => Observable<AsyncBackingParams>>;
asyncBackingParams: AugmentedCall<ApiType, () => Observable<PolkadotPrimitivesV7AsyncBackingAsyncBackingParams>>;
/**
* Yields information on all availability cores as relevant to the child block.
* Yields information on all availability cores as relevant to the child block., Cores are either free or occupied. Free cores can have paras assigned to them.
**/
availabilityCores: AugmentedCall<ApiType, () => Observable<Vec<CoreState>>>;
availabilityCores: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV7CoreState>>>;
/**
* Get a vector of events concerning candidates that occurred within a block.
**/
candidateEvents: AugmentedCall<ApiType, () => Observable<Vec<CandidateEvent>>>;
candidateEvents: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV7CandidateEvent>>>;
/**
* Get the receipt of a candidate pending availability.
* Get the receipt of a candidate pending availability. This returns `Some` for any paras, assigned to occupied cores in `availability_cores` and `None` otherwise.
**/
candidatePendingAvailability: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Option<CommittedCandidateReceipt>>>;
candidatePendingAvailability: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7CommittedCandidateReceipt>>>;
/**
* Elastic scaling support
**/
candidatesPendingAvailability: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array) => Observable<Vec<PolkadotPrimitivesV7CommittedCandidateReceipt>>>;
/**
* Checks if the given validation outputs pass the acceptance criteria.
**/
checkValidationOutputs: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, outputs: CandidateCommitments | { upwardMessages?: any; horizontalMessages?: any; newValidationCode?: any; headData?: any; processedDownwardMessages?: any; hrmpWatermark?: any } | string | Uint8Array) => Observable<bool>>;
checkValidationOutputs: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, outputs: PolkadotPrimitivesV7CandidateCommitments | { 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
* Claim queue
**/
disabledValidators: AugmentedCall<ApiType, () => Observable<ValidatorIndex>>;
claimQueue: AugmentedCall<ApiType, () => Observable<BTreeMap<u32, Vec<u32>>>>;
/**
* Returns a list of all disabled validators at the given block.
**/
disabledValidators: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
/**
* Returns all onchain disputes.
**/
disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, DisputeState]>>>>;
disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[u32, H256, PolkadotPrimitivesV7DisputeState]>>>>;
/**
* Get all the pending inbound messages in the downward message queue for a para.
**/
dmqContents: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Vec<InboundDownwardMessage>>>;
dmqContents: AugmentedCall<ApiType, (recipient: ParaId | AnyNumber | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundDownwardMessage>>>;
/**
* Get the contents of all channels addressed to the given recipient.
* Get the contents of all channels addressed to the given recipient. Channels that have no, messages in them are also included.
**/
inboundHrmpChannelsContents: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Vec<InboundHrmpMessage>>>;
inboundHrmpChannelsContents: AugmentedCall<ApiType, (recipient: ParaId | AnyNumber | Uint8Array) => Observable<BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>>>;
/**
* Returns a merkle proof of a validator session key
* Returns a merkle proof of a validator session key., NOTE: This function is only available since parachain host version 5.
**/
keyOwnershipProof: AugmentedCall<ApiType, (validatorId: ValidatorId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
keyOwnershipProof: AugmentedCall<ApiType, (validator_id: PolkadotPrimitivesV7ValidatorAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
/**
* Get the minimum number of backing votes for a parachain candidate. This is a staging method! Do not use on production runtimes!
* 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!
* Get node features., This is a staging method! Do not use on production runtimes!
**/
nodeFeatures: AugmentedCall<ApiType, () => Observable<NodeFeatures>>;
nodeFeatures: AugmentedCall<ApiType, () => Observable<BitVec>>;
/**
* Scrape dispute relevant from on-chain, backing votes and resolved disputes.
**/
onChainVotes: AugmentedCall<ApiType, () => Observable<Option<ScrapedOnChainVotes>>>;
onChainVotes: AugmentedCall<ApiType, () => Observable<Option<PolkadotPrimitivesV7ScrapedOnChainVotes>>>;
/**
* Returns the state of parachain backing for a given para
* Returns the state of parachain backing for a given para.
**/
paraBackingState: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Option<BackingState>>>;
paraBackingState: AugmentedCall<ApiType, (_: ParaId | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7AsyncBackingBackingState>>>;
/**
* Yields the persisted validation data for the given `ParaId` along with an assumption that should be used if the para currently occupies a core.
* Yields the persisted validation data for the given `ParaId` along with an assumption that, should be used if the para currently occupies a core.,, Returns `None` if either the para is not registered or the assumption is `Freed`, and the para already occupies a core.
**/
persistedValidationData: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<PersistedValidationData>>>;
persistedValidationData: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV7OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<PolkadotPrimitivesV7PersistedValidationData>>>;
/**
* Returns code hashes of PVFs that require pre-checking by validators in the active set.
* Returns code hashes of PVFs that require pre-checking by validators in the active set.,, NOTE: This function is only available since parachain host version 2.
**/
pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<ValidationCodeHash>>>;
pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<H256>>>;
/**
* Returns execution parameters for the session.
**/
sessionExecutorParams: AugmentedCall<ApiType, (sessionIndex: SessionIndex | AnyNumber | Uint8Array) => Observable<Option<ExecutorParams>>>;
sessionExecutorParams: AugmentedCall<ApiType, (session_index: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7ExecutorParams>>>;
/**
* Returns the session index expected at a child of the block.
* Returns the session index expected at a child of the block.,, This can be used to instantiate a `SigningContext`.
**/
sessionIndexForChild: AugmentedCall<ApiType, () => Observable<SessionIndex>>;
sessionIndexForChild: AugmentedCall<ApiType, () => Observable<u32>>;
/**
* Get the session info for the given session, if stored.
* Get the session info for the given session, if stored.,, NOTE: This function is only available since parachain host version 2.
**/
sessionInfo: AugmentedCall<ApiType, (index: SessionIndex | AnyNumber | Uint8Array) => Observable<Option<SessionInfo>>>;
sessionInfo: AugmentedCall<ApiType, (index: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7SessionInfo>>>;
/**
* Submits a PVF pre-checking statement into the transaction pool.
* Submits a PVF pre-checking statement into the transaction pool.,, NOTE: This function is only available since parachain host version 2.
**/
submitPvfCheckStatement: AugmentedCall<ApiType, (stmt: PvfCheckStatement | { accept?: any; subject?: any; sessionIndex?: any; validatorIndex?: any } | string | Uint8Array, signature: ValidatorSignature | string | Uint8Array) => Observable<Null>>;
submitPvfCheckStatement: AugmentedCall<ApiType, (stmt: PolkadotPrimitivesV7PvfCheckStatement | { accept?: any; subject?: any; sessionIndex?: any; validatorIndex?: any } | string | Uint8Array, signature: PolkadotPrimitivesV7ValidatorAppSignature | string | Uint8Array) => Observable<Null>>;
/**
* Submit an unsigned extrinsic to slash validators who lost a dispute about a candidate of a past session
* Submit an unsigned extrinsic to slash validators who lost a dispute about, a candidate of a past session., NOTE: This function is only available since parachain host version 5.
**/
submitReportDisputeLost: AugmentedCall<ApiType, (disputeProof: DisputeProof | { timeSlot?: any; kind?: any; validatorIndex?: any; validatorId?: any } | string | Uint8Array, keyOwnershipProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
submitReportDisputeLost: AugmentedCall<ApiType, (dispute_proof: PolkadotPrimitivesV7SlashingDisputeProof | { timeSlot?: any; kind?: any; validatorIndex?: any; validatorId?: any } | string | Uint8Array, key_ownership_proof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
/**
* Returns a list of validators that lost a past session dispute and need to be slashed
* Returns a list of validators that lost a past session dispute and need to be slashed., NOTE: This function is only available since parachain host version 5.
**/
unappliedSlashes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, PendingSlashes]>>>>;
unappliedSlashes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[u32, H256, PolkadotPrimitivesV7SlashingPendingSlashes]>>>>;
/**
* Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.
* Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.,, Returns `None` if either the para is not registered or the assumption is `Freed`, and the para already occupies a core.
**/
validationCode: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<ValidationCode>>>;
validationCode: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV7OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<Bytes>>>;
/**
* Get the validation code from its hash.
**/
validationCodeByHash: AugmentedCall<ApiType, (hash: ValidationCodeHash | string | Uint8Array) => Observable<Option<ValidationCode>>>;
validationCodeByHash: AugmentedCall<ApiType, (hash: ValidationCodeHash | string | Uint8Array) => Observable<Option<Bytes>>>;
/**
* Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`.
* Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`.,, NOTE: This function is only available since parachain host version 2.
**/
validationCodeHash: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<ValidationCodeHash>>>;
validationCodeHash: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV7OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<H256>>>;
/**
* Returns the validator groups and rotation info localized based on the hypothetical child of a block whose state this is invoked on
* Returns the validator groups and rotation info localized based on the hypothetical child, of a block whose state this is invoked on. Note that `now` in the `GroupRotationInfo`, should be the successor of the number of the block.
**/
validatorGroups: AugmentedCall<ApiType, () => Observable<ITuple<[Vec<Vec<ParaValidatorIndex>>, GroupRotationInfo]>>>;
validatorGroups: AugmentedCall<ApiType, () => Observable<ITuple<[Vec<Vec<u32>>, PolkadotPrimitivesV7GroupRotationInfo]>>>;
/**
* Get the current validators.
**/
validators: AugmentedCall<ApiType, () => Observable<Vec<ValidatorId>>>;
validators: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV7ValidatorAppPublic>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xab3c0572291feb8b/1 */
/** 0xab3c0572291feb8b/ */
sessionKeys: {
/**
* Decode the given public session keys.
* Decode the given public session keys.,, Returns the list of public raw public keys + key type.
**/
decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, KeyTypeId]>>>>>;
decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, SpCoreCryptoKeyTypeId]>>>>>;
/**
* Generate a set of session keys with optionally using the given seed.
* Generate a set of session keys with optionally using the given seed., The keys should be stored within the keystore exposed via runtime, externalities.,, The seed needs to be a valid `utf8` string.,, Returns the concatenated SCALE encoded public keys.
**/
generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;
/**
@@ -419,69 +471,100 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x18ef58a3b67ba770/1 */
/** 0x18ef58a3b67ba770/ */
stakingApi: {
/**
* Returns the page count of exposures for a validator `account` in a given era.
**/
erasStakersPageCount: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<u32>>;
/**
* Returns the nominations quota for a nominator with a given balance.
**/
nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
nominationsQuota: AugmentedCall<ApiType, (balance: u128 | AnyNumber | Uint8Array) => Observable<u32>>;
/**
* Returns true if validator `account` has pages to be claimed for the given era.
**/
pendingRewards: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<bool>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xd2bc9897eed08f15/3 */
/** 0xd2bc9897eed08f15/ */
taggedTransactionQueue: {
/**
* Validate the transaction.
* Validate the transaction.,, This method is invoked by the transaction pool to learn details about given transaction., The implementation should make sure to verify the correctness of the transaction, against current state. The given `block_hash` corresponds to the hash of the block, that is used as current state.,, Note that this call may be performed by the pool multiple times and transactions, might be verified in any possible order.
**/
validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;
validateTransaction: AugmentedCall<ApiType, (source: SpRuntimeTransactionValidityTransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, block_hash: H256 | string | Uint8Array) => Observable<Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x37c8bb1350a9a2a8/4 */
/** 0x37c8bb1350a9a2a8/ */
transactionPaymentApi: {
/**
* The transaction fee details
*
**/
queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
/**
* The transaction info
*
**/
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
/**
* Query the output of the current LengthToFee given some input
*
**/
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
/**
* Query the output of the current WeightToFee given some input
*
**/
queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;
queryWeightToFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<u128>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xf3ff14d5ab527059/3 */
/** 0xf3ff14d5ab527059/ */
transactionPaymentCallApi: {
/**
* The call fee details
* Query fee details of a given encoded `Call`.
**/
queryCallFeeDetails: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
queryCallFeeDetails: AugmentedCall<ApiType, (call: RuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
/**
* The call info
* Query information of a dispatch class, weight, and fee of a given encoded `Call`.
**/
queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
queryCallInfo: AugmentedCall<ApiType, (call: RuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
/**
* Query the output of the current LengthToFee given some input
* Query the output of the current `LengthToFee` given some input.
**/
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
/**
* Query the output of the current WeightToFee given some input
* Query the output of the current `WeightToFee` given some input.
**/
queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;
queryWeightToFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<u128>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x6ff52ee858e6c5bd/ */
xcmPaymentApi: {
/**
* Returns a list of acceptable payment assets.,, # Arguments,, * `xcm_version`: Version.
**/
queryAcceptablePaymentAssets: AugmentedCall<ApiType, (xcm_version: u32 | AnyNumber | Uint8Array) => Observable<Result<Vec<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>>;
/**
* Get delivery fees for sending a specific `message` to a `destination`., These always come in a specific asset, defined by the chain.,, # Arguments, * `message`: The message that'll be sent, necessary because most delivery fees are based on the, size of the message., * `destination`: The destination to send the message to. Different destinations may use, different senders that charge different fees.
**/
queryDeliveryFees: AugmentedCall<ApiType, (destination: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>>;
/**
* Converts a weight into a fee for the specified `AssetId`.,, # Arguments,, * `weight`: convertible `Weight`., * `asset`: `VersionedAssetId`.
**/
queryWeightToAssetFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, asset: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<u128, XcmRuntimeApisFeesError>>>;
/**
* Returns a weight needed to execute a XCM.,, # Arguments,, * `message`: `VersionedXcm`.
**/
queryXcmWeight: AugmentedCall<ApiType, (message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>>;
/**
* Generic call
**/
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/api-augment', path: 'auto', type: 'auto', version: '11.0.2' };
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '15.0.2' };
+80 -66
View File
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
import type { Bytes, Option, Vec, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { Codec, ITuple } from '@polkadot/types-codec/types';
import type { Perbill, Permill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingXcmV4Junctions } from '@polkadot/types/lookup';
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
@@ -80,10 +80,14 @@ declare module '@polkadot/api-base/types/consts' {
/**
* 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>;
/**
@@ -202,6 +206,20 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
coretime: {
/**
* The ParaId of the coretime chain.
**/
brokerId: u32 & AugmentedConst<ApiType>;
/**
* The coretime chain pot location.
**/
brokerPotLocation: StagingXcmV4Junctions & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
crowdloan: {
/**
* The minimum amount that may be contributed into a crowdloan. Should almost certainly be
@@ -280,18 +298,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
**/
@@ -331,47 +341,6 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
identity: {
/**
* The amount held on deposit for a registered identity.
**/
basicDeposit: u128 & AugmentedConst<ApiType>;
/**
* The amount held on deposit per encoded byte for a registered identity.
**/
byteDeposit: u128 & AugmentedConst<ApiType>;
/**
* Maxmimum number of registrars allowed in the system. Needed to bound the complexity
* of, e.g., updating judgements.
**/
maxRegistrars: u32 & AugmentedConst<ApiType>;
/**
* 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
* be another trie item whose value is the size of an account ID plus 32 bytes.
**/
subAccountDeposit: u128 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
indices: {
/**
* The deposit needed for reserving an index.
@@ -391,6 +360,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
@@ -399,10 +376,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>;
/**
@@ -464,6 +442,25 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
onDemand: {
/**
* The maximum number of blocks some historical revenue
* information stored for.
**/
maxHistoricalRevenue: u32 & AugmentedConst<ApiType>;
/**
* Identifier for the internal revenue balance.
**/
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
/**
* The default value for the spot traffic multiplier.
**/
trafficDefaultValue: u128 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
paras: {
unsignedPriority: u64 & AugmentedConst<ApiType>;
/**
@@ -661,6 +658,36 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
stateTrieMigration: {
/**
* Maximal number of bytes that a key can have.
*
* FRAME itself does not limit the key length.
* The concrete value must therefore depend on your storage usage.
* A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
* keys which are then hashed and concatenated, resulting in arbitrarily long keys.
*
* Use the *state migration RPC* to retrieve the length of the longest key in your
* storage: <https://github.com/paritytech/substrate/issues/11642>
*
* The migration will halt with a `Halted` event if this value is too small.
* Since there is no real penalty from over-estimating, it is advised to use a large
* value. The default is 512 byte.
*
* Some key lengths for reference:
* - [`frame_support::storage::StorageValue`]: 32 byte
* - [`frame_support::storage::StorageMap`]: 64 byte
* - [`frame_support::storage::StorageDoubleMap`]: 96 byte
*
* For more info see
* <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
**/
maxKeyLen: u32 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
system: {
/**
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
@@ -687,7 +714,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>;
/**
@@ -759,19 +786,6 @@ declare module '@polkadot/api-base/types/consts' {
* 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.
**/
proposalBond: Permill & AugmentedConst<ApiType>;
/**
* Maximum amount of funds that should be placed in a deposit for making a proposal.
**/
proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;
/**
* Minimum amount of funds that should be placed in a deposit for making a proposal.
**/
proposalBondMinimum: u128 & AugmentedConst<ApiType>;
/**
* Period between successive spends.
**/
+159 -188
View File
@@ -16,6 +16,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.
**/
@@ -274,7 +278,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>;
/**
@@ -322,6 +326,53 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError<ApiType>;
};
coretime: {
/**
* Failed to transfer assets to the coretime chain
**/
AssetTransferFailed: AugmentedError<ApiType>;
/**
* The paraid making the call is not the coretime brokerage system parachain.
**/
NotBroker: AugmentedError<ApiType>;
/**
* Requested revenue information `when` parameter was in the future from the current
* block height.
**/
RequestedFutureRevenue: 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`
@@ -447,7 +498,7 @@ declare module '@polkadot/api-base/types/errors' {
**/
OcwCallWrongEra: AugmentedError<ApiType>;
/**
* Sumission was prepared for a different round.
* Submission was prepared for a different round.
**/
PreDispatchDifferentRound: AugmentedError<ApiType>;
/**
@@ -641,116 +692,6 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError<ApiType>;
};
identity: {
/**
* Account ID is already named.
**/
AlreadyClaimed: AugmentedError<ApiType>;
/**
* Empty index.
**/
EmptyIndex: AugmentedError<ApiType>;
/**
* Fee is changed.
**/
FeeChanged: AugmentedError<ApiType>;
/**
* The index is invalid.
**/
InvalidIndex: AugmentedError<ApiType>;
/**
* 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.
**/
JudgementForDifferentIdentity: AugmentedError<ApiType>;
/**
* Judgement given.
**/
JudgementGiven: AugmentedError<ApiType>;
/**
* 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.
**/
NotFound: AugmentedError<ApiType>;
/**
* Account isn't named.
**/
NotNamed: AugmentedError<ApiType>;
/**
* Sub-account isn't owned by sender.
**/
NotOwned: AugmentedError<ApiType>;
/**
* 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>;
/**
* Maximum amount of registrars reached. Cannot add any more.
**/
TooManyRegistrars: AugmentedError<ApiType>;
/**
* Too many subs-accounts.
**/
TooManySubAccounts: AugmentedError<ApiType>;
/**
* The username is already taken.
**/
UsernameTaken: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
indices: {
/**
* The index was not available.
@@ -893,6 +834,10 @@ declare module '@polkadot/api-base/types/errors' {
* pool at a time.
**/
AccountBelongsToOtherPool: AugmentedError<ApiType>;
/**
* The pool or member delegation has already migrated to delegate stake.
**/
AlreadyMigrated: AugmentedError<ApiType>;
/**
* Bonding extra is restricted to the exact pending reward amount.
**/
@@ -984,10 +929,18 @@ declare module '@polkadot/api-base/types/errors' {
* No imbalance in the ED deposit for the pool.
**/
NothingToAdjust: AugmentedError<ApiType>;
/**
* No slash pending that can be applied to the member.
**/
NothingToSlash: AugmentedError<ApiType>;
/**
* Either a) the caller cannot make a valid kick or b) the pool is not destroying.
**/
NotKickerOrDestroying: AugmentedError<ApiType>;
/**
* The pool or member delegation has not migrated yet to delegate stake.
**/
NotMigrated: AugmentedError<ApiType>;
/**
* The caller does not have nominating permissions for the pool.
**/
@@ -996,6 +949,10 @@ declare module '@polkadot/api-base/types/errors' {
* The pool is not open to join
**/
NotOpen: AugmentedError<ApiType>;
/**
* This call is not allowed in the current state of the pallet.
**/
NotSupported: AugmentedError<ApiType>;
/**
* The transaction could not be executed due to overflow risk for the pool.
**/
@@ -1029,25 +986,22 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError<ApiType>;
};
onDemand: {
/**
* 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.
**/
BitfieldAllZeros: AugmentedError<ApiType>;
/**
* Multiple bitfields submitted by same validator or validators out of order by index.
**/
BitfieldDuplicateOrUnordered: AugmentedError<ApiType>;
/**
* A bitfield that references a freed core,
* either intentionally or as part of a concluded
* invalid dispute.
**/
BitfieldReferencesFreedCore: AugmentedError<ApiType>;
/**
* Candidate scheduled despite pending candidate already existing for the para.
**/
CandidateScheduledBeforeParaFree: AugmentedError<ApiType>;
/**
* The candidate's relay-parent was not allowed. Either it was
* not recent enough or it didn't advance based on the last parachain block.
@@ -1078,10 +1032,6 @@ declare module '@polkadot/api-base/types/errors' {
* Invalid (bad signature, unknown validator, etc.) backing.
**/
InvalidBacking: AugmentedError<ApiType>;
/**
* Invalid signature
**/
InvalidBitfieldSignature: AugmentedError<ApiType>;
/**
* Invalid group index in core assignment.
**/
@@ -1115,30 +1065,10 @@ declare module '@polkadot/api-base/types/errors' {
* Code upgrade prematurely.
**/
PrematureCodeUpgrade: AugmentedError<ApiType>;
/**
* Scheduled cores out of order.
**/
ScheduledOutOfOrder: AugmentedError<ApiType>;
/**
* A different relay parent was provided compared to the on-chain stored one.
**/
UnexpectedRelayParent: AugmentedError<ApiType>;
/**
* Candidate submitted but para not scheduled.
**/
UnscheduledCandidate: AugmentedError<ApiType>;
/**
* Backed candidates are out of order (core index) or contain duplicates.
**/
UnsortedOrDuplicateBackedCandidates: AugmentedError<ApiType>;
/**
* Dispute statement sets are out of order or contain duplicates.
**/
UnsortedOrDuplicateDisputeStatementSet: AugmentedError<ApiType>;
/**
* Validator indices are out of order or contains duplicates.
**/
UnsortedOrDuplicateValidatorIndices: AugmentedError<ApiType>;
/**
* The validation data hash does not match expected.
**/
@@ -1147,10 +1077,6 @@ declare module '@polkadot/api-base/types/errors' {
* Validator index out of bounds.
**/
ValidatorIndexOutOfBounds: AugmentedError<ApiType>;
/**
* Availability bitfield has unexpected size.
**/
WrongBitfieldSize: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -1158,25 +1084,10 @@ declare module '@polkadot/api-base/types/errors' {
};
paraInherent: {
/**
* A candidate was backed by a disabled validator
* A candidate was filtered during inherent execution. This should have only been done
* during creation.
**/
BackedByDisabled: AugmentedError<ApiType>;
/**
* A candidate was backed even though the paraid was not scheduled.
**/
BackedOnUnscheduledCore: AugmentedError<ApiType>;
/**
* Disputed candidate that was concluded invalid.
**/
CandidateConcludedInvalid: AugmentedError<ApiType>;
/**
* A dispute statement was invalid.
**/
DisputeInvalid: AugmentedError<ApiType>;
/**
* The ordering of dispute statements was invalid.
**/
DisputeStatementsUnsortedOrDuplicates: AugmentedError<ApiType>;
CandidatesFilteredDuringExecution: AugmentedError<ApiType>;
/**
* The data given to the inherent will result in an overweight block.
**/
@@ -1220,6 +1131,10 @@ declare module '@polkadot/api-base/types/errors' {
* Parachain cannot currently schedule a code upgrade.
**/
CannotUpgradeCode: AugmentedError<ApiType>;
/**
* Invalid validation code size.
**/
InvalidCode: AugmentedError<ApiType>;
/**
* Para is not registered in our system.
**/
@@ -1331,6 +1246,10 @@ declare module '@polkadot/api-base/types/errors' {
* Preimage has already been noted on-chain.
**/
AlreadyNoted: AugmentedError<ApiType>;
/**
* No ticket with a cost was returned by [`Config::Consideration`] to store the preimage.
**/
NoCost: AugmentedError<ApiType>;
/**
* The user is not authorized to perform this action.
**/
@@ -1447,6 +1366,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.
**/
@@ -1486,14 +1409,14 @@ declare module '@polkadot/api-base/types/errors' {
* Invalid para code size.
**/
CodeTooLarge: AugmentedError<ApiType>;
/**
* Registering parachain with empty code is not allowed.
**/
EmptyCode: AugmentedError<ApiType>;
/**
* Invalid para head data size.
**/
HeadDataTooLarge: AugmentedError<ApiType>;
/**
* The validation code is invalid.
**/
InvalidCode: AugmentedError<ApiType>;
/**
* The caller is not the owner of this Id.
**/
@@ -1619,6 +1542,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`.
**/
@@ -1677,6 +1604,10 @@ declare module '@polkadot/api-base/types/errors' {
* Not a controller account.
**/
NotController: AugmentedError<ApiType>;
/**
* Not enough funds available to withdraw.
**/
NotEnoughFunds: AugmentedError<ApiType>;
/**
* Items are not sorted and unique.
**/
@@ -1689,6 +1620,10 @@ declare module '@polkadot/api-base/types/errors' {
* Can not rebond without unlocking chunks.
**/
NoUnlockChunk: AugmentedError<ApiType>;
/**
* Provided reward destination is not allowed.
**/
RewardDestinationRestricted: AugmentedError<ApiType>;
/**
* There are too many nominators in the system. Governance needs to adjust the staking
* settings to keep things safe for the runtime.
@@ -1703,6 +1638,46 @@ declare module '@polkadot/api-base/types/errors' {
* staking settings to keep things safe for the runtime.
**/
TooManyValidators: AugmentedError<ApiType>;
/**
* Operation not allowed for virtual stakers.
**/
VirtualStakerNotAllowed: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
stateTrieMigration: {
/**
* Bad child root provided.
**/
BadChildRoot: AugmentedError<ApiType>;
/**
* Bad witness data provided.
**/
BadWitness: AugmentedError<ApiType>;
/**
* A key was longer than the configured maximum.
*
* This means that the migration halted at the current [`Progress`] and
* can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
* Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
* The value should only be increased to avoid a storage migration for the currently
* stored [`crate::Progress::LastKey`].
**/
KeyTooLong: AugmentedError<ApiType>;
/**
* Max signed limits not respected.
**/
MaxSignedLimits: AugmentedError<ApiType>;
/**
* submitter does not have enough funds.
**/
NotEnoughFunds: AugmentedError<ApiType>;
/**
* Signed migration is not allowed because the maximum limit is not set yet.
**/
SignedMigrationNotAllowed: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -1724,6 +1699,10 @@ declare module '@polkadot/api-base/types/errors' {
* and the new runtime.
**/
InvalidSpecName: AugmentedError<ApiType>;
/**
* A multi-block migration is ongoing and prevents the current code from being replaced.
**/
MultiBlockMigrationsOngoing: AugmentedError<ApiType>;
/**
* Suicide called when the account has non-default composite data.
**/
@@ -1772,10 +1751,6 @@ declare module '@polkadot/api-base/types/errors' {
* amount to be spent.
**/
InsufficientPermission: AugmentedError<ApiType>;
/**
* Proposer's balance is too low.
**/
InsufficientProposersBalance: AugmentedError<ApiType>;
/**
* No proposal, bounty or spend at that index.
**/
@@ -1924,10 +1899,6 @@ declare module '@polkadot/api-base/types/errors' {
* The unlock operation cannot succeed because there are still consumers of the lock.
**/
InUse: AugmentedError<ApiType>;
/**
* Invalid non-concrete asset.
**/
InvalidAssetNotConcrete: AugmentedError<ApiType>;
/**
* Invalid asset, reserve chain could not be determined for it.
**/
+86 -90
View File
@@ -10,7 +10,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
import type { ITuple } from '@polkadot/types-codec/types';
import type { 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, 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';
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV7CandidateReceipt, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeProxyType, PolkadotRuntimeRuntimeParametersKey, PolkadotRuntimeRuntimeParametersValue, 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>;
@@ -255,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`
@@ -329,7 +343,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.
@@ -397,7 +411,7 @@ declare module '@polkadot/api-base/types/events' {
**/
HrmpChannelForceOpened: AugmentedEvent<ApiType, [sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32], { sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32 }>;
/**
* An HRMP channel was opened between two system chains.
* An HRMP channel was opened with a system chain.
**/
HrmpSystemChannelOpened: AugmentedEvent<ApiType, [sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32], { sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32 }>;
/**
@@ -421,82 +435,6 @@ 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.
**/
IdentityCleared: AugmentedEvent<ApiType, [who: AccountId32, deposit: u128], { who: AccountId32, deposit: u128 }>;
/**
* A name was removed and the given balance slashed.
**/
IdentityKilled: AugmentedEvent<ApiType, [who: AccountId32, deposit: u128], { who: AccountId32, deposit: u128 }>;
/**
* A name was set or reset (which will remove all judgements).
**/
IdentitySet: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
/**
* A judgement was given by a registrar.
**/
JudgementGiven: AugmentedEvent<ApiType, [target: AccountId32, registrarIndex: u32], { target: AccountId32, registrarIndex: u32 }>;
/**
* A judgement was asked from a registrar.
**/
JudgementRequested: AugmentedEvent<ApiType, [who: AccountId32, registrarIndex: u32], { who: AccountId32, registrarIndex: u32 }>;
/**
* 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.
**/
RegistrarAdded: AugmentedEvent<ApiType, [registrarIndex: u32], { registrarIndex: u32 }>;
/**
* A sub-identity was added to an identity and the deposit paid.
**/
SubIdentityAdded: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], { sub: AccountId32, main: AccountId32, deposit: u128 }>;
/**
* A sub-identity was removed from an identity and the deposit freed.
**/
SubIdentityRemoved: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], { sub: AccountId32, main: AccountId32, deposit: u128 }>;
/**
* A sub-identity was cleared, and the given deposit repatriated from the
* 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
**/
[key: string]: AugmentedEvent<ApiType>;
};
indices: {
/**
* A account index was assigned.
@@ -667,19 +605,33 @@ declare module '@polkadot/api-base/types/events' {
**/
[key: string]: AugmentedEvent<ApiType>;
};
onDemand: {
/**
* An order was placed at some spot price amount by orderer ordered_by
**/
OnDemandOrderPlaced: AugmentedEvent<ApiType, [paraId: u32, spotPrice: u128, orderedBy: AccountId32], { paraId: u32, spotPrice: u128, orderedBy: AccountId32 }>;
/**
* The value of the spot price has likely changed
**/
SpotPriceSet: AugmentedEvent<ApiType, [spotPrice: u128], { spotPrice: u128 }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
paraInclusion: {
/**
* A candidate was backed. `[candidate, head_data]`
**/
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV6CandidateReceipt, Bytes, u32, u32]>;
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV7CandidateReceipt, Bytes, u32, u32]>;
/**
* A candidate was included. `[candidate, head_data]`
**/
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV6CandidateReceipt, Bytes, u32, u32]>;
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV7CandidateReceipt, Bytes, u32, u32]>;
/**
* A candidate timed out. `[candidate, head_data]`
**/
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV6CandidateReceipt, Bytes, u32]>;
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV7CandidateReceipt, Bytes, u32]>;
/**
* Some upward messages have been received and will be processed.
**/
@@ -689,6 +641,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: PolkadotRuntimeRuntimeParametersKey, oldValue: Option<PolkadotRuntimeRuntimeParametersValue>, newValue: Option<PolkadotRuntimeRuntimeParametersValue>], { key: PolkadotRuntimeRuntimeParametersKey, oldValue: Option<PolkadotRuntimeRuntimeParametersValue>, newValue: Option<PolkadotRuntimeRuntimeParametersValue> }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
paras: {
/**
* A para has been queued to execute pending actions. `para_id`
@@ -892,6 +856,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.
**/
@@ -940,6 +917,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.
@@ -1009,6 +990,29 @@ declare module '@polkadot/api-base/types/events' {
**/
[key: string]: AugmentedEvent<ApiType>;
};
stateTrieMigration: {
/**
* The auto migration task finished.
**/
AutoMigrationFinished: AugmentedEvent<ApiType, []>;
/**
* Migration got halted due to an error or miss-configuration.
**/
Halted: AugmentedEvent<ApiType, [error: PalletStateTrieMigrationError], { error: PalletStateTrieMigrationError }>;
/**
* Given number of `(top, child)` keys were migrated respectively, with the given
* `compute`.
**/
Migrated: AugmentedEvent<ApiType, [top: u32, child: u32, compute: PalletStateTrieMigrationMigrationCompute], { top: u32, child: u32, compute: PalletStateTrieMigrationMigrationCompute }>;
/**
* Some account got slashed by the given amount.
**/
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
system: {
/**
* `:code` was updated.
@@ -1083,14 +1087,6 @@ declare module '@polkadot/api-base/types/events' {
* A payment failed and can be retried.
**/
PaymentFailed: AugmentedEvent<ApiType, [index: u32, paymentId: u64], { index: u32, paymentId: u64 }>;
/**
* New proposal.
**/
Proposed: AugmentedEvent<ApiType, [proposalIndex: u32], { proposalIndex: u32 }>;
/**
* A proposal was rejected; funds were slashed.
**/
Rejected: AugmentedEvent<ApiType, [proposalIndex: u32, slashed: u128], { proposalIndex: u32, slashed: u128 }>;
/**
* Spending has finished; this is the amount that rolls over until next spend.
**/
+185 -103
View File
@@ -6,12 +6,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, 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, 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 { BinaryHeapEnqueuedOrder, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletReferendaReferendumInfo, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV7AssignmentAppPublic, PolkadotPrimitivesV7DisputeState, PolkadotPrimitivesV7ExecutorParams, PolkadotPrimitivesV7ScrapedOnChainVotes, PolkadotPrimitivesV7SessionInfo, PolkadotPrimitivesV7SlashingPendingSlashes, PolkadotPrimitivesV7UpgradeGoAhead, PolkadotPrimitivesV7UpgradeRestriction, PolkadotPrimitivesV7ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor, PolkadotRuntimeParachainsAssignerCoretimeSchedule, PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount, PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder, PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerPalletCoreOccupied, PolkadotRuntimeParachainsSchedulerPalletParasEntry, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, PolkadotRuntimeRuntimeParametersKey, PolkadotRuntimeRuntimeParametersValue, PolkadotRuntimeSessionKeys, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight, StagingXcmV4Instruction, StagingXcmV4Xcm, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
import type { Observable } from '@polkadot/types/types';
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
@@ -228,11 +227,11 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Freeze locks on account balances.
**/
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmountRuntimeFreezeReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Holds on account balances.
**/
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmountRuntimeHoldReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeHoldReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* The total units of outstanding deactivated balance in the system.
**/
@@ -240,10 +239,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]>;
/**
@@ -422,6 +425,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.
@@ -727,60 +750,6 @@ declare module '@polkadot/api-base/types/storage' {
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
identity: {
/**
* 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<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).
*
* The index into this can be cast to `RegistrarIndex` to get a valid value.
**/
registrars: AugmentedQuery<ApiType, () => Observable<Vec<Option<PalletIdentityRegistrarInfo>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Alternative "sub" identities of this account.
*
* The first item is the deposit, the second is a vector of the accounts.
*
* TWOX-NOTE: OK `AccountId` is a secure hash.
**/
subsOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[u128, Vec<AccountId32>]>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* The super-identity of an alternative "sub" identity together with its name, within that
* 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
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
indices: {
/**
* The lookup from index to account.
@@ -952,13 +921,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]>;
/**
@@ -993,19 +962,43 @@ declare module '@polkadot/api-base/types/storage' {
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
onDemand: {
/**
* Queue entries that are currently bound to a particular core due to core affinity.
**/
affinityEntries: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<BinaryHeapEnqueuedOrder>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Priority queue for all orders which don't yet (or not any more) have any core affinity.
**/
freeEntries: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder>>, []> & 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<PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Overall status of queue (both free + affinity entries)
**/
queueStatus: AugmentedQuery<ApiType, () => Observable<PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Keeps track of accumulated revenue from on demand order sales.
**/
revenue: AugmentedQuery<ApiType, () => Observable<Vec<u128>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
paraInclusion: {
/**
* The latest bitfield for each validator, referred to by their index in the validator set.
* Candidates pending availability by `ParaId`. They form a chain starting from the latest
* included head of the para.
* Use a different prefix post-migration to v1, since the v0 `PendingAvailability` storage
* would otherwise have the exact same prefix which could cause undefined behaviour when doing
* the migration.
**/
availabilityBitfields: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Candidates pending availability by `ParaId`.
**/
pendingAvailability: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* The commitments of candidates pending availability, by `ParaId`.
**/
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
v1: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
**/
@@ -1024,7 +1017,17 @@ 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<PolkadotPrimitivesV6ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV7ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
parameters: {
/**
* Stored parameters.
**/
parameters: AugmentedQuery<ApiType, (arg: PolkadotRuntimeRuntimeParametersKey | { Inflation: any } | string | Uint8Array) => Observable<Option<PolkadotRuntimeRuntimeParametersValue>>, [PolkadotRuntimeRuntimeParametersKey]> & QueryableStorageEntry<ApiType, [PolkadotRuntimeRuntimeParametersKey]>;
/**
* Generic query
**/
@@ -1059,11 +1062,23 @@ declare module '@polkadot/api-base/types/storage' {
**/
futureCodeHash: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* The block number at which the planned code change is expected for a para.
* The block number at which the planned code change is expected for a parachain.
*
* The change will be applied after the first parablock for this ID included which executes
* in the context of a relay chain block with a number >= `expected_at`.
**/
futureCodeUpgrades: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* The list of upcoming future code upgrades.
*
* Each item is a pair of the parachain and the expected block at which the upgrade should be
* applied. The upgrade will be applied at the given relay chain block. In contrast to
* [`FutureCodeUpgrades`] this code upgrade will be applied regardless the parachain making any
* progress or not.
*
* Ordered ascending by block number.
**/
futureCodeUpgradesAt: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The head-data of every registered para.
**/
@@ -1124,8 +1139,10 @@ declare module '@polkadot/api-base/types/storage' {
**/
upcomingParasGenesis: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsParasParaGenesisArgs>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* The list of upcoming code upgrades. Each item is a pair of which para performs a code
* upgrade and at which relay-chain block it is expected at.
* The list of upcoming code upgrades.
*
* Each item is a pair of which para performs a code upgrade and at which relay-chain block it
* is expected at.
*
* Ordered ascending by block number.
**/
@@ -1148,7 +1165,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<PolkadotPrimitivesV6UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* This is used by the relay-chain to communicate that there are restrictions for performing
* an upgrade for this parachain.
@@ -1160,7 +1177,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<PolkadotPrimitivesV6UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
**/
@@ -1168,10 +1185,8 @@ declare module '@polkadot/api-base/types/storage' {
};
paraScheduler: {
/**
* One entry for each availability core. Entries are `None` if the core is not currently
* occupied. Can be temporarily `Some` if scheduled but not occupied.
* The i'th parachain belongs to the i'th core, with the remaining cores all being
* parathread-multiplexers.
* One entry for each availability core. The i'th parachain belongs to the i'th core, with the
* remaining cores all being on demand parachain multiplexers.
*
* Bounded by the maximum of either of these two values:
* * The number of parachains and parathread multiplexers
@@ -1180,10 +1195,8 @@ declare module '@polkadot/api-base/types/storage' {
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
* as there is one currently being scheduled. Not using `None` here would overwrite the
* `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.
* scheduled on that core. 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<PolkadotRuntimeParachainsSchedulerPalletParasEntry>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
@@ -1220,7 +1233,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<PolkadotPrimitivesV6DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV7DisputeState>>, [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,
@@ -1253,7 +1266,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<PolkadotPrimitivesV6AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV7AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The earliest session for which previous session info is stored.
**/
@@ -1261,13 +1274,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<PolkadotPrimitivesV6ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7ExecutorParams>>, [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<PolkadotPrimitivesV6SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
**/
@@ -1283,7 +1296,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<PolkadotPrimitivesV6ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV7ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* All allowed relay-parents.
**/
@@ -1301,7 +1314,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<PolkadotPrimitivesV6SlashingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV7SlashingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
/**
* `ValidatorSetCount` per session.
**/
@@ -1409,6 +1422,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
**/
@@ -1528,6 +1545,10 @@ declare module '@polkadot/api-base/types/storage' {
* Counter for the related counted storage map
**/
counterForValidators: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Counter for the related counted storage map
**/
counterForVirtualStakers: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The current era index.
*
@@ -1541,6 +1562,16 @@ declare module '@polkadot/api-base/types/storage' {
* This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
**/
currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Indices of validators that have offended in the active era. The offenders are disabled for a
* whole era. For this reason they are kept here - only staking pallet knows about eras. The
* implementor of [`DisablingStrategy`] defines if a validator should be disabled which
* implicitly means that the implementor also controls the max number of disabled validators.
*
* The vec is always kept sorted so that we can find whether a given validator has previously
* offended using binary search.
**/
disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Rewards for the last [`Config::HistoryDepth`] eras.
* If reward hasn't been set or has been removed then 0 reward is returned.
@@ -1649,6 +1680,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.
*
@@ -1703,18 +1740,6 @@ declare module '@polkadot/api-base/types/storage' {
* All slashing events on nominators, mapped by era to the highest slash value of the era.
**/
nominatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
* Indices of validators that have offended in the active era and whether they are currently
* disabled.
*
* This value should be a superset of disabled validators since not all offences lead to the
* validator being disabled (if there was no slash). This is needed to track the percentage of
* validators that have offended in the current era, ensuring a new era is forced if
* `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
* whether a given validator has previously offended using binary search. It gets cleared when
* the era ends.
**/
offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Where the reward payment should be made. Keyed by stash.
*
@@ -1755,6 +1780,40 @@ declare module '@polkadot/api-base/types/storage' {
* and slash value of the era.
**/
validatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[Perbill, u128]>>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
* Stakers whose funds are managed by other pallets.
*
* This pallet does not apply any locks on them, therefore they are only virtually bonded. They
* are expected to be keyless accounts and hence should not be allowed to mutate their ledger
* directly via this pallet. Instead, these accounts are managed by other pallets and accessed
* via low level apis. We keep track of them to do minimal integrity checks.
**/
virtualStakers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Null>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
stateTrieMigration: {
/**
* The limits that are imposed on automatic migrations.
*
* If set to None, then no automatic migration happens.
**/
autoLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Migration progress.
*
* This stores the snapshot of the last migrated keys. It can be set into motion and move
* forward by any of the means provided by this pallet.
**/
migrationProcess: AugmentedQuery<ApiType, () => Observable<PalletStateTrieMigrationMigrationTask>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The maximum limits that the signed migration could use.
*
* If not set, no signed submission is allowed.
**/
signedMigrationMaxLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
@@ -1824,6 +1883,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.
**/
@@ -1974,6 +2037,15 @@ declare module '@polkadot/api-base/types/storage' {
* The latest available query index.
**/
queryCounter: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
/**
* If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally
* will be stored here.
* Runtime APIs can fetch the XCM that was executed by accessing this value.
*
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
* implementation in the XCM executor configuration.
**/
recordedXcm: AugmentedQuery<ApiType, () => Observable<Option<Vec<StagingXcmV4Instruction>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Fungible assets which we know are locked on a remote chain.
**/
@@ -1983,6 +2055,16 @@ declare module '@polkadot/api-base/types/storage' {
* then the destinations whose XCM version is unknown are considered unreachable.
**/
safeXcmVersion: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Whether or not incoming XCMs (both executed locally and received) should be recorded.
* Only one XCM program will be recorded at a time.
* This is meant to be used in runtime APIs, and it's advised it stays false
* for all other use cases, so as to not degrade regular performance.
*
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
* implementation in the XCM executor configuration.
**/
shouldRecordXcm: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The Latest versions that we know various locations support.
**/
+262 -154
View File
@@ -6,26 +6,14 @@
import '@polkadot/api-base/types/calls';
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
import type { Bytes, Null, Option, Result, U64, Vec, bool, u32 } from '@polkadot/types-codec';
import type { BTreeMap, BitVec, Bytes, Null, Option, Result, Text, Vec, bool, u128, u32, u64 } 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';
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 { OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
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 { 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 { RuntimeVersion } from '@polkadot/types/interfaces/state';
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
import type { ParaId, ValidationCodeHash } from '@polkadot/types/interfaces/parachains';
import type { AccountId32, H256, RuntimeCall, Slot } from '@polkadot/types/interfaces/runtime';
import type { PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotPrimitivesV7ApprovalVotingParams, PolkadotPrimitivesV7AsyncBackingAsyncBackingParams, PolkadotPrimitivesV7AsyncBackingBackingState, PolkadotPrimitivesV7CandidateCommitments, PolkadotPrimitivesV7CandidateEvent, PolkadotPrimitivesV7CommittedCandidateReceipt, PolkadotPrimitivesV7CoreState, PolkadotPrimitivesV7DisputeState, PolkadotPrimitivesV7ExecutorParams, PolkadotPrimitivesV7GroupRotationInfo, PolkadotPrimitivesV7OccupiedCoreAssumption, PolkadotPrimitivesV7PersistedValidationData, PolkadotPrimitivesV7PvfCheckStatement, PolkadotPrimitivesV7ScrapedOnChainVotes, PolkadotPrimitivesV7SessionInfo, PolkadotPrimitivesV7SlashingDisputeProof, PolkadotPrimitivesV7SlashingPendingSlashes, PolkadotPrimitivesV7ValidatorAppPublic, PolkadotPrimitivesV7ValidatorAppSignature, PolkadotRuntimeOriginCaller, RelayCommonApisInflationInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusBeefyValidatorSet, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpMmrPrimitivesError, SpMmrPrimitivesLeafProof, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpVersionRuntimeVersion, SpWeightsWeightV2Weight, XcmRuntimeApisConversionsError, XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError, XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisFeesError, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
import type { IExtrinsic, Observable } from '@polkadot/types/types';
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
@@ -33,189 +21,230 @@ export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<Ap
declare module '@polkadot/api-base/types/calls' {
interface AugmentedCalls<ApiType extends ApiTypes> {
/** 0xbc9d89904f5b923f/1 */
/** 0xbc9d89904f5b923f/ */
accountNonceApi: {
/**
* The API to query account nonce (aka transaction index)
* Get current account nonce of given `AccountId`.
**/
accountNonce: AugmentedCall<ApiType, (accountId: AccountId | string | Uint8Array) => Observable<Index>>;
accountNonce: AugmentedCall<ApiType, (account: AccountId32 | string | Uint8Array) => Observable<u32>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x687ad44ad37f03c2/1 */
/** 0x687ad44ad37f03c2/ */
authorityDiscoveryApi: {
/**
* Retrieve authority identifiers of the current and next authority set.
**/
authorities: AugmentedCall<ApiType, () => Observable<Vec<AuthorityId>>>;
authorities: AugmentedCall<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xcbca25e39f142387/2 */
/** 0xcbca25e39f142387/ */
babeApi: {
/**
* Return the genesis configuration for BABE. The configuration is only read on genesis.
* Return the configuration for BABE.
**/
configuration: AugmentedCall<ApiType, () => Observable<BabeGenesisConfiguration>>;
configuration: AugmentedCall<ApiType, () => Observable<SpConsensusBabeBabeConfiguration>>;
/**
* Returns information regarding the current epoch.
**/
currentEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
currentEpoch: AugmentedCall<ApiType, () => Observable<SpConsensusBabeEpoch>>;
/**
* Returns the slot that started the current epoch.
**/
currentEpochStart: AugmentedCall<ApiType, () => Observable<Slot>>;
/**
* Generates a proof of key ownership for the given authority in the current epoch.
* Generates a proof of key ownership for the given authority in the, current epoch. An example usage of this module is coupled with the, session historical module to prove that a given authority key is, tied to a given staking identity during a specific session. Proofs, of key ownership are necessary for submitting equivocation reports., NOTE: even though the API takes a `slot` as parameter the current, implementations ignores this parameter and instead relies on this, method being called at the correct block height, i.e. any point at, which the epoch for the given slot is live on-chain. Future, implementations will instead use indexed data through an offchain, worker, not requiring older states to be available.
**/
generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authority_id: SpConsensusBabeAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
/**
* Returns information regarding the next epoch (which was already previously announced).
* Returns information regarding the next epoch (which was already, previously announced).
**/
nextEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
nextEpoch: AugmentedCall<ApiType, () => Observable<SpConsensusBabeEpoch>>;
/**
* Submits an unsigned extrinsic to report an equivocation.
* Submits an unsigned extrinsic to report an equivocation. The caller, must provide the equivocation proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`). The, extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
**/
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BabeEquivocationProof | { offender?: any; slotNumber?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusSlotsEquivocationProof | { offender?: any; slot?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, key_owner_proof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x49eaaf1b548a0cb0/3 */
/** 0x49eaaf1b548a0cb0/ */
beefyApi: {
/**
* Return the block number where BEEFY consensus is enabled/started
**/
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<BlockNumber>>>;
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<u32>>>;
/**
* Generates a proof of key ownership for the given authority in the given set.
* Generates a proof of key ownership for the given authority in the, given set. An example usage of this module is coupled with the, session historical module to prove that a given authority key is, tied to a given staking identity during a specific session. Proofs, of key ownership are necessary for submitting equivocation reports., NOTE: even though the API takes a `set_id` as parameter the current, implementations ignores this parameter and instead relies on this, method being called at the correct block height, i.e. any point at, which the given set id is live on-chain. Future implementations will, instead use indexed data through an offchain worker, not requiring, older states to be available.
**/
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: ValidatorSetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
generateKeyOwnershipProof: AugmentedCall<ApiType, (set_id: u64 | AnyNumber | Uint8Array, authority_id: SpConsensusBeefyEcdsaCryptoPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
/**
* Submits an unsigned extrinsic to report an equivocation.
* Submits an unsigned extrinsic to report an equivocation. The caller, must provide the equivocation proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`). The, extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
**/
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BeefyEquivocationProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusBeefyDoubleVotingProof | { first?: any; second?: any } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
/**
* Return the current active BEEFY validator set
**/
validatorSet: AugmentedCall<ApiType, () => Observable<Option<ValidatorSet>>>;
validatorSet: AugmentedCall<ApiType, () => Observable<Option<SpConsensusBeefyValidatorSet>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x2a5e924655399e60/1 */
/** 0x2a5e924655399e60/ */
beefyMmrApi: {
/**
* Return the currently active BEEFY authority set proof.
**/
authoritySetProof: AugmentedCall<ApiType, () => Observable<BeefyAuthoritySet>>;
authoritySetProof: AugmentedCall<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>>;
/**
* Return the next/queued BEEFY authority set proof.
**/
nextAuthoritySetProof: AugmentedCall<ApiType, () => Observable<BeefyNextAuthoritySet>>;
nextAuthoritySetProof: AugmentedCall<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x40fe3ad401f8959a/6 */
/** 0x40fe3ad401f8959a/ */
blockBuilder: {
/**
* Apply the given extrinsic.
* Apply the given extrinsic.,, Returns an inclusion outcome which specifies if this extrinsic is included in, this block or not.
**/
applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<Result<Result<Null, SpRuntimeDispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>>;
/**
* Check that the inherents are valid.
* Check that the inherents are valid. The inherent data will vary from chain to chain.
**/
checkInherents: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array, data: InherentData | { data?: any } | string | Uint8Array) => Observable<CheckInherentsResult>>;
checkInherents: AugmentedCall<ApiType, (block: SpRuntimeBlock | { header?: any; extrinsics?: any } | string | Uint8Array, data: SpInherentsInherentData | { data?: any } | string | Uint8Array) => Observable<SpInherentsCheckInherentsResult>>;
/**
* Finish the current block.
**/
finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
finalizeBlock: AugmentedCall<ApiType, () => Observable<SpRuntimeHeader>>;
/**
* Generate inherent extrinsics.
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
**/
inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | { data?: any } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;
inherentExtrinsics: AugmentedCall<ApiType, (inherent: SpInherentsInherentData | { data?: any } | string | Uint8Array) => Observable<Vec<Bytes>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xdf6acb689907609b/4 */
/** 0xdf6acb689907609b/ */
core: {
/**
* Execute the given block.
**/
executeBlock: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable<Null>>;
executeBlock: AugmentedCall<ApiType, (block: SpRuntimeBlock | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable<Null>>;
/**
* Initialize a block with the given header.
* Initialize a block with the given header and return the runtime executive mode.
**/
initializeBlock: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
initializeBlock: AugmentedCall<ApiType, (header: SpRuntimeHeader | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<SpRuntimeExtrinsicInclusionMode>>;
/**
* Returns the version of the runtime.
**/
version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;
version: AugmentedCall<ApiType, () => Observable<SpVersionRuntimeVersion>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xfbc577b9d747efd6/1 */
/** 0x91b1c8b16328eb92/ */
dryRunApi: {
/**
* Dry run call.
**/
dryRunCall: AugmentedCall<ApiType, (origin: PolkadotRuntimeOriginCaller | { system: any } | { Void: any } | { Origins: any } | { ParachainsOrigin: any } | { XcmPallet: any } | string | Uint8Array, call: RuntimeCall | IMethod | string | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>>;
/**
* Dry run XCM program
**/
dryRunXcm: AugmentedCall<ApiType, (origin_location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, xcm: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisDryRunError>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xfbc577b9d747efd6/ */
genesisBuilder: {
/**
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the, storage.,, In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and, puts it into the storage. If the provided JSON blob is incorrect or incomplete or the, deserialization fails, an error is returned.,, Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no, defaults will be used.
**/
buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
buildState: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<Null, Text>>>;
/**
* Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by, `id`.,, If `id` is `None` the function returns JSON blob representation of the default, `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default, `RuntimeGenesisConfig`.,, Otherwise function returns a JSON representation of the built-in, named, `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not, exists. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of, (potentially nested) key-value pairs that are intended for customizing the default, runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation, of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can, be used in `build_state` method.
**/
createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
getPreset: AugmentedCall<ApiType, (id: Option<Text> | null | Uint8Array | Text | string) => Observable<Option<Bytes>>>;
/**
* Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.,, The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If, no named presets are provided by the runtime the list is empty.
**/
presetNames: AugmentedCall<ApiType, () => Observable<Vec<Text>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xed99c5acb25eedf5/3 */
/** 0xed99c5acb25eedf5/ */
grandpaApi: {
/**
* Get current GRANDPA authority set id.
**/
currentSetId: AugmentedCall<ApiType, () => Observable<SetId>>;
currentSetId: AugmentedCall<ApiType, () => Observable<u64>>;
/**
* Generates a proof of key ownership for the given authority in the given set.
* Generates a proof of key ownership for the given authority in the, given set. An example usage of this module is coupled with the, session historical module to prove that a given authority key is, tied to a given staking identity during a specific session. Proofs, of key ownership are necessary for submitting equivocation reports., NOTE: even though the API takes a `set_id` as parameter the current, implementations ignore this parameter and instead rely on this, method being called at the correct block height, i.e. any point at, which the given set id is live on-chain. Future implementations will, instead use indexed data through an offchain worker, not requiring, older states to be available.
**/
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: SetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
generateKeyOwnershipProof: AugmentedCall<ApiType, (set_id: u64 | AnyNumber | Uint8Array, authority_id: SpConsensusGrandpaAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
/**
* Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
* Get the current GRANDPA authorities and weights. This should not change except, for when changes are scheduled and the corresponding delay has passed.,, When called at block B, it will return the set of authorities that should be, used to finalize descendants of this block (B+1, B+2, ...). The block B itself, is finalized by the authorities from block B-1.
**/
grandpaAuthorities: AugmentedCall<ApiType, () => Observable<AuthorityList>>;
grandpaAuthorities: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>>;
/**
* Submits an unsigned extrinsic to report an equivocation.
* Submits an unsigned extrinsic to report an equivocation. The caller, must provide the equivocation proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`). The, extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
**/
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x37e397fc7c91f5e4/2 */
/** 0xc51ff1fa3f5d0cca/ */
inflation: {
/**
* Return the current estimates of the inflation amount.,, This is marked as experimental in light of RFC#89. Nonetheless, its usage is highly, recommended over trying to read-storage, or re-create the onchain logic.
**/
experimentalInflationPredictionInfo: AugmentedCall<ApiType, () => Observable<RelayCommonApisInflationInfo>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x9ffb505aa738d69c/ */
locationToAccountApi: {
/**
* Converts `Location` to `AccountId`.
**/
convertLocation: AugmentedCall<ApiType, (location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<AccountId32, XcmRuntimeApisConversionsError>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x37e397fc7c91f5e4/ */
metadata: {
/**
* Returns the metadata of a runtime
* Returns the metadata of a runtime.
**/
metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
/**
* Returns the metadata at a given version.
* Returns the metadata at a given version.,, If the given `version` isn't supported, this will return `None`., Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime.
**/
metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
/**
* Returns the supported metadata versions.
* Returns the supported metadata versions.,, This can be used to call `metadata_at_version`.
**/
metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
/**
@@ -223,170 +252,218 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x91d5df18b0d2cf58/2 */
/** 0x91d5df18b0d2cf58/ */
mmrApi: {
/**
* Generate MMR proof for the given block numbers.
* Generate MMR proof for a series of block numbers. If `best_known_block_number = Some(n)`,, use historical MMR state at given block height `n`. Else, use current MMR state.
**/
generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
generateProof: AugmentedCall<ApiType, (block_numbers: Vec<u32> | (u32 | AnyNumber | Uint8Array)[], best_known_block_number: Option<u32> | null | Uint8Array | u32 | AnyNumber) => Observable<Result<ITuple<[Vec<Bytes>, SpMmrPrimitivesLeafProof]>, SpMmrPrimitivesError>>>;
/**
* Return the number of MMR blocks in the chain.
**/
mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<U64, MmrError>>>;
mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<u64, SpMmrPrimitivesError>>>;
/**
* Return the on-chain MMR root hash.
**/
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<H256, SpMmrPrimitivesError>>>;
/**
* Verify MMR proof against on-chain MMR.
* Verify MMR proof against on-chain MMR for a batch of leaves.,, Note this function will use on-chain MMR root hash and check if the proof matches the hash., Note, the leaves should be sorted such that corresponding leaves and leaf indices have the, same position in both the `leaves` vector and the `leaf_indices` vector contained in the [LeafProof]
**/
verifyProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
verifyProof: AugmentedCall<ApiType, (leaves: Vec<Bytes> | (Bytes | string | Uint8Array)[], proof: SpMmrPrimitivesLeafProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<Null, SpMmrPrimitivesError>>>;
/**
* Verify MMR proof against given root hash.
* Verify MMR proof against given root hash for a batch of leaves.,, Note this function does not require any on-chain storage - the, proof is verified against given MMR root hash.,, Note, the leaves should be sorted such that corresponding leaves and leaf indices have the, same position in both the `leaves` vector and the `leaf_indices` vector contained in the [LeafProof]
**/
verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
verifyProofStateless: AugmentedCall<ApiType, (root: H256 | string | Uint8Array, leaves: Vec<Bytes> | (Bytes | string | Uint8Array)[], proof: SpMmrPrimitivesLeafProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<Null, SpMmrPrimitivesError>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x17a6bc0d0062aeb3/1 */
/** 0x17a6bc0d0062aeb3/ */
nominationPoolsApi: {
/**
* Returns the equivalent points of `new_funds` for a given pool.
**/
balanceToPoints: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, newFunds: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
balanceToPoints: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array, new_funds: u128 | AnyNumber | Uint8Array) => Observable<u128>>;
/**
* Returns the pending rewards for the given member.
* Returns true if the delegated funds of the pool `member` needs migration.,, Once a pool has successfully migrated to the strategy, [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake), the funds of the, member can be migrated from pool account to the member's account. Use, [`migrate_delegation`](pallet_nomination_pools::Call::migrate_delegation), to migrate the funds of the pool member.
**/
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
memberNeedsDelegateMigration: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<bool>>;
/**
* Returns the pending slash for a given pool member.
**/
memberPendingSlash: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<u128>>;
/**
* Returns the pending rewards for the member that the AccountId was given for.
**/
pendingRewards: AugmentedCall<ApiType, (who: AccountId32 | string | Uint8Array) => Observable<u128>>;
/**
* Returns the equivalent balance of `points` for a given pool.
**/
pointsToBalance: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, points: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
pointsToBalance: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array, points: u128 | AnyNumber | Uint8Array) => Observable<u128>>;
/**
* Returns true if the pool with `pool_id` needs migration.,, This can happen when the `pallet-nomination-pools` has switched to using strategy, [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake) but the pool, still has funds that were staked using the older strategy, [TransferStake](pallet_nomination_pools::adapter::TransferStake). Use, [`migrate_pool_to_delegate_stake`](pallet_nomination_pools::Call::migrate_pool_to_delegate_stake), to migrate the pool.
**/
poolNeedsDelegateMigration: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<bool>>;
/**
* Returns the pending slash for a given pool.
**/
poolPendingSlash: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xf78b278be53f454c/2 */
/** 0xf78b278be53f454c/ */
offchainWorkerApi: {
/**
* Starts the off-chain task for given block header.
**/
offchainWorker: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
offchainWorker: AugmentedCall<ApiType, (header: SpRuntimeHeader | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xaf2c0297a23e6d3d/5 */
/** 0xaf2c0297a23e6d3d/ */
parachainHost: {
/**
* Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.
* Approval voting configuration parameters
**/
assumedValidationData: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, hash: Hash | string | Uint8Array) => Observable<Option<ITuple<[PersistedValidationData, ValidationCodeHash]>>>>;
approvalVotingParams: AugmentedCall<ApiType, () => Observable<PolkadotPrimitivesV7ApprovalVotingParams>>;
/**
* Yields information on all availability cores as relevant to the child block.
* Returns the persisted validation data for the given `ParaId` along with the corresponding, validation code hash. Instead of accepting assumption about the para, matches the validation, data hash against an expected one and yields `None` if they're not equal.
**/
availabilityCores: AugmentedCall<ApiType, () => Observable<Vec<CoreState>>>;
assumedValidationData: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, expected_persisted_validation_data_hash: H256 | string | Uint8Array) => Observable<Option<ITuple<[PolkadotPrimitivesV7PersistedValidationData, H256]>>>>;
/**
* Returns candidate's acceptance limitations for asynchronous backing for a relay parent.
**/
asyncBackingParams: AugmentedCall<ApiType, () => Observable<PolkadotPrimitivesV7AsyncBackingAsyncBackingParams>>;
/**
* Yields information on all availability cores as relevant to the child block., Cores are either free or occupied. Free cores can have paras assigned to them.
**/
availabilityCores: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV7CoreState>>>;
/**
* Get a vector of events concerning candidates that occurred within a block.
**/
candidateEvents: AugmentedCall<ApiType, () => Observable<Vec<CandidateEvent>>>;
candidateEvents: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV7CandidateEvent>>>;
/**
* Get the receipt of a candidate pending availability.
* Get the receipt of a candidate pending availability. This returns `Some` for any paras, assigned to occupied cores in `availability_cores` and `None` otherwise.
**/
candidatePendingAvailability: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Option<CommittedCandidateReceipt>>>;
candidatePendingAvailability: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7CommittedCandidateReceipt>>>;
/**
* Elastic scaling support
**/
candidatesPendingAvailability: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array) => Observable<Vec<PolkadotPrimitivesV7CommittedCandidateReceipt>>>;
/**
* Checks if the given validation outputs pass the acceptance criteria.
**/
checkValidationOutputs: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, outputs: CandidateCommitments | { upwardMessages?: any; horizontalMessages?: any; newValidationCode?: any; headData?: any; processedDownwardMessages?: any; hrmpWatermark?: any } | string | Uint8Array) => Observable<bool>>;
checkValidationOutputs: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, outputs: PolkadotPrimitivesV7CandidateCommitments | { upwardMessages?: any; horizontalMessages?: any; newValidationCode?: any; headData?: any; processedDownwardMessages?: any; hrmpWatermark?: any } | string | Uint8Array) => Observable<bool>>;
/**
* Claim queue
**/
claimQueue: AugmentedCall<ApiType, () => Observable<BTreeMap<u32, Vec<u32>>>>;
/**
* Returns a list of all disabled validators at the given block.
**/
disabledValidators: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
/**
* Returns all onchain disputes.
**/
disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, DisputeState]>>>>;
disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[u32, H256, PolkadotPrimitivesV7DisputeState]>>>>;
/**
* Get all the pending inbound messages in the downward message queue for a para.
**/
dmqContents: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Vec<InboundDownwardMessage>>>;
dmqContents: AugmentedCall<ApiType, (recipient: ParaId | AnyNumber | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundDownwardMessage>>>;
/**
* Get the contents of all channels addressed to the given recipient.
* Get the contents of all channels addressed to the given recipient. Channels that have no, messages in them are also included.
**/
inboundHrmpChannelsContents: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Vec<InboundHrmpMessage>>>;
inboundHrmpChannelsContents: AugmentedCall<ApiType, (recipient: ParaId | AnyNumber | Uint8Array) => Observable<BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>>>;
/**
* Returns a merkle proof of a validator session key
* Returns a merkle proof of a validator session key., NOTE: This function is only available since parachain host version 5.
**/
keyOwnershipProof: AugmentedCall<ApiType, (validatorId: ValidatorId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
keyOwnershipProof: AugmentedCall<ApiType, (validator_id: PolkadotPrimitivesV7ValidatorAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
/**
* 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<BitVec>>;
/**
* Scrape dispute relevant from on-chain, backing votes and resolved disputes.
**/
onChainVotes: AugmentedCall<ApiType, () => Observable<Option<ScrapedOnChainVotes>>>;
onChainVotes: AugmentedCall<ApiType, () => Observable<Option<PolkadotPrimitivesV7ScrapedOnChainVotes>>>;
/**
* Yields the persisted validation data for the given `ParaId` along with an assumption that should be used if the para currently occupies a core.
* Returns the state of parachain backing for a given para.
**/
persistedValidationData: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<PersistedValidationData>>>;
paraBackingState: AugmentedCall<ApiType, (_: ParaId | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7AsyncBackingBackingState>>>;
/**
* Returns code hashes of PVFs that require pre-checking by validators in the active set.
* Yields the persisted validation data for the given `ParaId` along with an assumption that, should be used if the para currently occupies a core.,, Returns `None` if either the para is not registered or the assumption is `Freed`, and the para already occupies a core.
**/
pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<ValidationCodeHash>>>;
persistedValidationData: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV7OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<PolkadotPrimitivesV7PersistedValidationData>>>;
/**
* Returns code hashes of PVFs that require pre-checking by validators in the active set.,, NOTE: This function is only available since parachain host version 2.
**/
pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<H256>>>;
/**
* Returns execution parameters for the session.
**/
sessionExecutorParams: AugmentedCall<ApiType, (sessionIndex: SessionIndex | AnyNumber | Uint8Array) => Observable<Option<ExecutorParams>>>;
sessionExecutorParams: AugmentedCall<ApiType, (session_index: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7ExecutorParams>>>;
/**
* Returns the session index expected at a child of the block.
* Returns the session index expected at a child of the block.,, This can be used to instantiate a `SigningContext`.
**/
sessionIndexForChild: AugmentedCall<ApiType, () => Observable<SessionIndex>>;
sessionIndexForChild: AugmentedCall<ApiType, () => Observable<u32>>;
/**
* Get the session info for the given session, if stored.
* Get the session info for the given session, if stored.,, NOTE: This function is only available since parachain host version 2.
**/
sessionInfo: AugmentedCall<ApiType, (index: SessionIndex | AnyNumber | Uint8Array) => Observable<Option<SessionInfo>>>;
sessionInfo: AugmentedCall<ApiType, (index: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7SessionInfo>>>;
/**
* Submits a PVF pre-checking statement into the transaction pool.
* Submits a PVF pre-checking statement into the transaction pool.,, NOTE: This function is only available since parachain host version 2.
**/
submitPvfCheckStatement: AugmentedCall<ApiType, (stmt: PvfCheckStatement | { accept?: any; subject?: any; sessionIndex?: any; validatorIndex?: any } | string | Uint8Array, signature: ValidatorSignature | string | Uint8Array) => Observable<Null>>;
submitPvfCheckStatement: AugmentedCall<ApiType, (stmt: PolkadotPrimitivesV7PvfCheckStatement | { accept?: any; subject?: any; sessionIndex?: any; validatorIndex?: any } | string | Uint8Array, signature: PolkadotPrimitivesV7ValidatorAppSignature | string | Uint8Array) => Observable<Null>>;
/**
* Submit an unsigned extrinsic to slash validators who lost a dispute about a candidate of a past session
* Submit an unsigned extrinsic to slash validators who lost a dispute about, a candidate of a past session., NOTE: This function is only available since parachain host version 5.
**/
submitReportDisputeLost: AugmentedCall<ApiType, (disputeProof: DisputeProof | { timeSlot?: any; kind?: any; validatorIndex?: any; validatorId?: any } | string | Uint8Array, keyOwnershipProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
submitReportDisputeLost: AugmentedCall<ApiType, (dispute_proof: PolkadotPrimitivesV7SlashingDisputeProof | { timeSlot?: any; kind?: any; validatorIndex?: any; validatorId?: any } | string | Uint8Array, key_ownership_proof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
/**
* Returns a list of validators that lost a past session dispute and need to be slashed
* Returns a list of validators that lost a past session dispute and need to be slashed., NOTE: This function is only available since parachain host version 5.
**/
unappliedSlashes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, PendingSlashes]>>>>;
unappliedSlashes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[u32, H256, PolkadotPrimitivesV7SlashingPendingSlashes]>>>>;
/**
* Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.
* Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.,, Returns `None` if either the para is not registered or the assumption is `Freed`, and the para already occupies a core.
**/
validationCode: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<ValidationCode>>>;
validationCode: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV7OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<Bytes>>>;
/**
* Get the validation code from its hash.
**/
validationCodeByHash: AugmentedCall<ApiType, (hash: ValidationCodeHash | string | Uint8Array) => Observable<Option<ValidationCode>>>;
validationCodeByHash: AugmentedCall<ApiType, (hash: ValidationCodeHash | string | Uint8Array) => Observable<Option<Bytes>>>;
/**
* Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`.
* Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`.,, NOTE: This function is only available since parachain host version 2.
**/
validationCodeHash: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<ValidationCodeHash>>>;
validationCodeHash: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV7OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<H256>>>;
/**
* Returns the validator groups and rotation info localized based on the hypothetical child of a block whose state this is invoked on
* Returns the validator groups and rotation info localized based on the hypothetical child, of a block whose state this is invoked on. Note that `now` in the `GroupRotationInfo`, should be the successor of the number of the block.
**/
validatorGroups: AugmentedCall<ApiType, () => Observable<ITuple<[Vec<Vec<ParaValidatorIndex>>, GroupRotationInfo]>>>;
validatorGroups: AugmentedCall<ApiType, () => Observable<ITuple<[Vec<Vec<u32>>, PolkadotPrimitivesV7GroupRotationInfo]>>>;
/**
* Get the current validators.
**/
validators: AugmentedCall<ApiType, () => Observable<Vec<ValidatorId>>>;
validators: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV7ValidatorAppPublic>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xab3c0572291feb8b/1 */
/** 0xab3c0572291feb8b/ */
sessionKeys: {
/**
* Decode the given public session keys.
* Decode the given public session keys.,, Returns the list of public raw public keys + key type.
**/
decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, KeyTypeId]>>>>>;
decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, SpCoreCryptoKeyTypeId]>>>>>;
/**
* Generate a set of session keys with optionally using the given seed.
* Generate a set of session keys with optionally using the given seed., The keys should be stored within the keystore exposed via runtime, externalities.,, The seed needs to be a valid `utf8` string.,, Returns the concatenated SCALE encoded public keys.
**/
generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;
/**
@@ -394,69 +471,100 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x18ef58a3b67ba770/1 */
/** 0x18ef58a3b67ba770/ */
stakingApi: {
/**
* Returns the page count of exposures for a validator `account` in a given era.
**/
erasStakersPageCount: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<u32>>;
/**
* Returns the nominations quota for a nominator with a given balance.
**/
nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
nominationsQuota: AugmentedCall<ApiType, (balance: u128 | AnyNumber | Uint8Array) => Observable<u32>>;
/**
* Returns true if validator `account` has pages to be claimed for the given era.
**/
pendingRewards: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<bool>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xd2bc9897eed08f15/3 */
/** 0xd2bc9897eed08f15/ */
taggedTransactionQueue: {
/**
* Validate the transaction.
* Validate the transaction.,, This method is invoked by the transaction pool to learn details about given transaction., The implementation should make sure to verify the correctness of the transaction, against current state. The given `block_hash` corresponds to the hash of the block, that is used as current state.,, Note that this call may be performed by the pool multiple times and transactions, might be verified in any possible order.
**/
validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;
validateTransaction: AugmentedCall<ApiType, (source: SpRuntimeTransactionValidityTransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, block_hash: H256 | string | Uint8Array) => Observable<Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x37c8bb1350a9a2a8/4 */
/** 0x37c8bb1350a9a2a8/ */
transactionPaymentApi: {
/**
* The transaction fee details
*
**/
queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
/**
* The transaction info
*
**/
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
/**
* Query the output of the current LengthToFee given some input
*
**/
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
/**
* Query the output of the current WeightToFee given some input
*
**/
queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;
queryWeightToFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<u128>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xf3ff14d5ab527059/3 */
/** 0xf3ff14d5ab527059/ */
transactionPaymentCallApi: {
/**
* The call fee details
* Query fee details of a given encoded `Call`.
**/
queryCallFeeDetails: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
queryCallFeeDetails: AugmentedCall<ApiType, (call: RuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
/**
* The call info
* Query information of a dispatch class, weight, and fee of a given encoded `Call`.
**/
queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
queryCallInfo: AugmentedCall<ApiType, (call: RuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
/**
* Query the output of the current LengthToFee given some input
* Query the output of the current `LengthToFee` given some input.
**/
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
/**
* Query the output of the current WeightToFee given some input
* Query the output of the current `WeightToFee` given some input.
**/
queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;
queryWeightToFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<u128>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x6ff52ee858e6c5bd/ */
xcmPaymentApi: {
/**
* Returns a list of acceptable payment assets.,, # Arguments,, * `xcm_version`: Version.
**/
queryAcceptablePaymentAssets: AugmentedCall<ApiType, (xcm_version: u32 | AnyNumber | Uint8Array) => Observable<Result<Vec<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>>;
/**
* Get delivery fees for sending a specific `message` to a `destination`., These always come in a specific asset, defined by the chain.,, # Arguments, * `message`: The message that'll be sent, necessary because most delivery fees are based on the, size of the message., * `destination`: The destination to send the message to. Different destinations may use, different senders that charge different fees.
**/
queryDeliveryFees: AugmentedCall<ApiType, (destination: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>>;
/**
* Converts a weight into a fee for the specified `AssetId`.,, # Arguments,, * `weight`: convertible `Weight`., * `asset`: `VersionedAssetId`.
**/
queryWeightToAssetFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, asset: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<u128, XcmRuntimeApisFeesError>>>;
/**
* Returns a weight needed to execute a XCM.,, # Arguments,, * `message`: `VersionedXcm`.
**/
queryXcmWeight: AugmentedCall<ApiType, (message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>>;
/**
* Generic call
**/
File diff suppressed because it is too large Load Diff
+62 -13
View File
@@ -256,6 +256,7 @@ declare module '@polkadot/api-base/types/consts' {
[key: string]: Codec;
};
broker: {
maxAutoRenewals: u32 & AugmentedConst<ApiType>;
/**
* Maximum number of legacy leases.
**/
@@ -353,6 +354,11 @@ declare module '@polkadot/api-base/types/consts' {
* The maximum allowable length in bytes for storage keys.
**/
maxStorageKeyLen: u32 & AugmentedConst<ApiType>;
/**
* The maximum size of the transient storage in bytes.
* This includes keys, values, and previous entries used for storage rollback.
**/
maxTransientStorageSize: u32 & AugmentedConst<ApiType>;
/**
* Cost schedule and limits.
**/
@@ -399,6 +405,12 @@ declare module '@polkadot/api-base/types/consts' {
* The maximum size in bytes submitted evidence is allowed to be.
**/
evidenceSize: u32 & AugmentedConst<ApiType>;
/**
* Represents the highest possible rank in this pallet.
*
* Increasing this value is supported, but decreasing it may lead to a broken state.
**/
maxRank: u32 & AugmentedConst<ApiType>;
/**
* Generic const
**/
@@ -1224,6 +1236,56 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
revive: {
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::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.
**/
codeHashLockupDepositPercent: Perbill & AugmentedConst<ApiType>;
/**
* The amount of balance a caller has to pay for each byte of storage.
*
* # Note
*
* It is safe to chage this value on a live chain as all refunds are pro rata.
**/
depositPerByte: u128 & AugmentedConst<ApiType>;
/**
* The amount of balance a caller has to pay for each storage item.
*
* # Note
*
* It is safe to chage this value on a live chain as all refunds are pro rata.
**/
depositPerItem: u128 & AugmentedConst<ApiType>;
/**
* The maximum length of a contract code in bytes.
*
* This value hugely affects the memory requirements of this pallet since all the code of
* all contracts on the call stack will need to be held in memory. Setting of a correct
* value will be enforced in [`Pallet::integrity_test`].
**/
maxCodeLen: u32 & AugmentedConst<ApiType>;
/**
* Make contract callable functions marked as `#[unstable]` available.
*
* Contracts that use `#[unstable]` functions won't be able to be uploaded unless
* this is set to `true`. This is only meant for testnets and dev nodes in order to
* experiment with new features.
*
* # Warning
*
* Do **not** set to `true` on productions chains.
**/
unsafeUnstableInterface: bool & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
safeMode: {
/**
* The amount that will be reserved upon calling [`Pallet::enter`].
@@ -1623,19 +1685,6 @@ declare module '@polkadot/api-base/types/consts' {
* 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.
**/
proposalBond: Permill & AugmentedConst<ApiType>;
/**
* Maximum amount of funds that should be placed in a deposit for making a proposal.
**/
proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;
/**
* Minimum amount of funds that should be placed in a deposit for making a proposal.
**/
proposalBondMinimum: u128 & AugmentedConst<ApiType>;
/**
* Period between successive spends.
**/
+284 -6
View File
@@ -265,6 +265,28 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError<ApiType>;
};
assetConversionMigration: {
/**
* Provided asset pair is not supported for pool.
**/
InvalidAssetPair: AugmentedError<ApiType>;
/**
* Indicates a partial transfer of balance to the new account during a migration.
**/
PartialTransfer: AugmentedError<ApiType>;
/**
* The pool doesn't exist.
**/
PoolNotFound: AugmentedError<ApiType>;
/**
* Pool's balance cannot be zero.
**/
ZeroBalance: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
assetRate: {
/**
* The given asset ID already has an assigned conversion rate and cannot be re-created.
@@ -292,6 +314,10 @@ declare module '@polkadot/api-base/types/errors' {
* The asset is not live, and likely being destroyed.
**/
AssetNotLive: AugmentedError<ApiType>;
/**
* The asset ID must be equal to the [`NextAssetId`].
**/
BadAssetId: AugmentedError<ApiType>;
/**
* Invalid metadata given.
**/
@@ -458,9 +484,21 @@ declare module '@polkadot/api-base/types/errors' {
**/
InvalidConfiguration: AugmentedError<ApiType>;
/**
* An equivocation proof provided as part of an equivocation report is invalid.
* A double voting proof provided as part of an equivocation report is invalid.
**/
InvalidEquivocationProof: AugmentedError<ApiType>;
InvalidDoubleVotingProof: AugmentedError<ApiType>;
/**
* The session of the equivocation proof is invalid
**/
InvalidEquivocationProofSession: AugmentedError<ApiType>;
/**
* A fork voting proof provided as part of an equivocation report is invalid.
**/
InvalidForkVotingProof: AugmentedError<ApiType>;
/**
* A future block voting proof provided as part of an equivocation report is invalid.
**/
InvalidFutureBlockVotingProof: AugmentedError<ApiType>;
/**
* A key ownership proof provided as part of an equivocation report is invalid.
**/
@@ -526,6 +564,10 @@ declare module '@polkadot/api-base/types/errors' {
* The lease expiry time has already passed.
**/
AlreadyExpired: AugmentedError<ApiType>;
/**
* Attempted to disable auto-renewal for a core that didn't have it enabled.
**/
AutoRenewalNotEnabled: AugmentedError<ApiType>;
/**
* The pivot mask for the interlacing is complete (and therefore not a strict subset).
**/
@@ -547,10 +589,22 @@ declare module '@polkadot/api-base/types/errors' {
* The configuration could not be applied because it is invalid.
**/
InvalidConfig: AugmentedError<ApiType>;
/**
* The revenue must be claimed for 1 or more timeslices.
**/
NoClaimTimeslices: AugmentedError<ApiType>;
/**
* The history item does not exist.
**/
NoHistory: AugmentedError<ApiType>;
/**
* Only cores which are assigned to a task can be auto-renewed.
**/
NonTaskAutoRenewal: AugmentedError<ApiType>;
/**
* The caller doesn't have the permission to enable or disable auto-renewal.
**/
NoPermission: AugmentedError<ApiType>;
/**
* There is no sale happening currently.
**/
@@ -583,6 +637,10 @@ declare module '@polkadot/api-base/types/errors' {
* The sale limit has been reached.
**/
SoldOut: AugmentedError<ApiType>;
/**
* Failed to get the sovereign account of a task.
**/
SovereignAccountNotFound: AugmentedError<ApiType>;
/**
* An item cannot be dropped because it is still valid.
**/
@@ -591,6 +649,10 @@ declare module '@polkadot/api-base/types/errors' {
* The purchase cannot happen yet as the sale period is yet to begin.
**/
TooEarly: AugmentedError<ApiType>;
/**
* We reached the limit for auto-renewals.
**/
TooManyAutoRenewals: AugmentedError<ApiType>;
/**
* The maximum amount of leases has already been reached.
**/
@@ -771,6 +833,10 @@ declare module '@polkadot/api-base/types/errors' {
* The executed contract exhausted its gas limit.
**/
OutOfGas: AugmentedError<ApiType>;
/**
* Can not add more data to transient storage.
**/
OutOfTransientStorage: AugmentedError<ApiType>;
/**
* The output buffer supplied to a contract API call was too small.
**/
@@ -786,6 +852,10 @@ declare module '@polkadot/api-base/types/errors' {
* contract code execution which is not supported.
**/
ReentranceDenied: AugmentedError<ApiType>;
/**
* A contract attempted to invoke a state modifying API while being in read-only mode.
**/
StateChangeDenied: AugmentedError<ApiType>;
/**
* More storage was created than allowed by the storage deposit limit.
**/
@@ -1888,6 +1958,10 @@ declare module '@polkadot/api-base/types/errors' {
* pool at a time.
**/
AccountBelongsToOtherPool: AugmentedError<ApiType>;
/**
* The pool or member delegation has already migrated to delegate stake.
**/
AlreadyMigrated: AugmentedError<ApiType>;
/**
* Bonding extra is restricted to the exact pending reward amount.
**/
@@ -1979,10 +2053,18 @@ declare module '@polkadot/api-base/types/errors' {
* No imbalance in the ED deposit for the pool.
**/
NothingToAdjust: AugmentedError<ApiType>;
/**
* No slash pending that can be applied to the member.
**/
NothingToSlash: AugmentedError<ApiType>;
/**
* Either a) the caller cannot make a valid kick or b) the pool is not destroying.
**/
NotKickerOrDestroying: AugmentedError<ApiType>;
/**
* The pool or member delegation has not migrated yet to delegate stake.
**/
NotMigrated: AugmentedError<ApiType>;
/**
* The caller does not have nominating permissions for the pool.
**/
@@ -1991,6 +2073,10 @@ declare module '@polkadot/api-base/types/errors' {
* The pool is not open to join
**/
NotOpen: AugmentedError<ApiType>;
/**
* This call is not allowed in the current state of the pallet.
**/
NotSupported: AugmentedError<ApiType>;
/**
* The transaction could not be executed due to overflow risk for the pool.
**/
@@ -2033,6 +2119,10 @@ declare module '@polkadot/api-base/types/errors' {
* The asset is not live, and likely being destroyed.
**/
AssetNotLive: AugmentedError<ApiType>;
/**
* The asset ID must be equal to the [`NextAssetId`].
**/
BadAssetId: AugmentedError<ApiType>;
/**
* Invalid metadata given.
**/
@@ -2230,6 +2320,10 @@ declare module '@polkadot/api-base/types/errors' {
* The new member to exchange is the same as the old member
**/
SameMember: AugmentedError<ApiType>;
/**
* The max member count for the rank has been reached.
**/
TooManyMembers: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -2443,6 +2537,182 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError<ApiType>;
};
revive: {
/**
* Can not add a delegate dependency to the code hash of the contract itself.
**/
CannotAddSelfAsDelegateDependency: AugmentedError<ApiType>;
/**
* No code info could be found at the supplied code hash.
**/
CodeInfoNotFound: AugmentedError<ApiType>;
/**
* Code removal was denied because the code is still in use by at least one contract.
**/
CodeInUse: AugmentedError<ApiType>;
/**
* No code could be found at the supplied code hash.
**/
CodeNotFound: AugmentedError<ApiType>;
/**
* The contract failed to compile or is missing the correct entry points.
*
* A more detailed error can be found on the node console if debug messages are enabled
* by supplying `-lruntime::revive=debug`.
**/
CodeRejected: AugmentedError<ApiType>;
/**
* The code supplied to `instantiate_with_code` exceeds the limit specified in the
* current schedule.
**/
CodeTooLarge: AugmentedError<ApiType>;
/**
* No contract was found at the specified address.
**/
ContractNotFound: AugmentedError<ApiType>;
/**
* The contract ran to completion but decided to revert its storage changes.
* Please note that this error is only returned from extrinsics. When called directly
* or via RPC an `Ok` will be returned. In this case the caller needs to inspect the flags
* to determine whether a reversion has taken place.
**/
ContractReverted: AugmentedError<ApiType>;
/**
* Contract trapped during execution.
**/
ContractTrapped: AugmentedError<ApiType>;
/**
* Input passed to a contract API function failed to decode as expected type.
**/
DecodingFailed: AugmentedError<ApiType>;
/**
* The contract already depends on the given delegate dependency.
**/
DelegateDependencyAlreadyExists: AugmentedError<ApiType>;
/**
* The dependency was not found in the contract's delegate dependencies.
**/
DelegateDependencyNotFound: AugmentedError<ApiType>;
/**
* A contract with the same AccountId already exists.
**/
DuplicateContract: AugmentedError<ApiType>;
/**
* PolkaVM failed during code execution. Probably due to a malformed program.
**/
ExecutionFailed: AugmentedError<ApiType>;
/**
* `seal_call` forwarded this contracts input. It therefore is no longer available.
**/
InputForwarded: AugmentedError<ApiType>;
/**
* Invalid combination of flags supplied to `seal_call` or `seal_delegate_call`.
**/
InvalidCallFlags: AugmentedError<ApiType>;
/**
* Invalid schedule supplied, e.g. with zero weight of a basic operation.
**/
InvalidSchedule: AugmentedError<ApiType>;
/**
* Invalid storage flags were passed to one of the storage syscalls.
**/
InvalidStorageFlags: AugmentedError<ApiType>;
/**
* The contract tried to call a syscall which does not exist (at its current api level).
**/
InvalidSyscall: AugmentedError<ApiType>;
/**
* Performing a call was denied because the calling depth reached the limit
* of what is specified in the schedule.
**/
MaxCallDepthReached: AugmentedError<ApiType>;
/**
* The contract has reached its maximum number of delegate dependencies.
**/
MaxDelegateDependenciesReached: AugmentedError<ApiType>;
/**
* A pending migration needs to complete before the extrinsic can be called.
**/
MigrationInProgress: AugmentedError<ApiType>;
/**
* The chain does not provide a chain extension. Calling the chain extension results
* in this error. Note that this usually shouldn't happen as deploying such contracts
* is rejected.
**/
NoChainExtension: AugmentedError<ApiType>;
/**
* Migrate dispatch call was attempted but no migration was performed.
**/
NoMigrationPerformed: AugmentedError<ApiType>;
/**
* A buffer outside of sandbox memory was passed to a contract API function.
**/
OutOfBounds: AugmentedError<ApiType>;
/**
* The executed contract exhausted its gas limit.
**/
OutOfGas: AugmentedError<ApiType>;
/**
* Can not add more data to transient storage.
**/
OutOfTransientStorage: AugmentedError<ApiType>;
/**
* The output buffer supplied to a contract API call was too small.
**/
OutputBufferTooSmall: AugmentedError<ApiType>;
/**
* A contract called into the runtime which then called back into this pallet.
**/
ReenteredPallet: AugmentedError<ApiType>;
/**
* A call tried to invoke a contract that is flagged as non-reentrant.
**/
ReentranceDenied: AugmentedError<ApiType>;
/**
* A contract attempted to invoke a state modifying API while being in read-only mode.
**/
StateChangeDenied: AugmentedError<ApiType>;
/**
* More storage was created than allowed by the storage deposit limit.
**/
StorageDepositLimitExhausted: AugmentedError<ApiType>;
/**
* Origin doesn't have enough balance to pay the required storage deposits.
**/
StorageDepositNotEnoughFunds: AugmentedError<ApiType>;
/**
* A contract self destructed in its constructor.
*
* This can be triggered by a call to `seal_terminate`.
**/
TerminatedInConstructor: AugmentedError<ApiType>;
/**
* Termination of a contract is not allowed while the contract is already
* on the call stack. Can be triggered by `seal_terminate`.
**/
TerminatedWhileReentrant: AugmentedError<ApiType>;
/**
* The amount of topics passed to `seal_deposit_events` exceeds the limit.
**/
TooManyTopics: AugmentedError<ApiType>;
/**
* Performing the requested transfer failed. Probably because there isn't enough
* free balance in the sender's account.
**/
TransferFailed: AugmentedError<ApiType>;
/**
* The size defined in `T::MaxValueSize` was exceeded.
**/
ValueTooLarge: AugmentedError<ApiType>;
/**
* Failed to decode the XCM program.
**/
XCMDecodeFailed: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
safeMode: {
/**
* The account already has a deposit reserved and can therefore not enter or extend again.
@@ -2813,6 +3083,10 @@ declare module '@polkadot/api-base/types/errors' {
* Not a controller account.
**/
NotController: AugmentedError<ApiType>;
/**
* Not enough funds available to withdraw.
**/
NotEnoughFunds: AugmentedError<ApiType>;
/**
* Items are not sorted and unique.
**/
@@ -2825,6 +3099,10 @@ declare module '@polkadot/api-base/types/errors' {
* Can not rebond without unlocking chunks.
**/
NoUnlockChunk: AugmentedError<ApiType>;
/**
* Provided reward destination is not allowed.
**/
RewardDestinationRestricted: AugmentedError<ApiType>;
/**
* There are too many nominators in the system. Governance needs to adjust the staking
* settings to keep things safe for the runtime.
@@ -2839,6 +3117,10 @@ declare module '@polkadot/api-base/types/errors' {
* staking settings to keep things safe for the runtime.
**/
TooManyValidators: AugmentedError<ApiType>;
/**
* Operation not allowed for virtual stakers.
**/
VirtualStakerNotAllowed: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -3124,10 +3406,6 @@ declare module '@polkadot/api-base/types/errors' {
* amount to be spent.
**/
InsufficientPermission: AugmentedError<ApiType>;
/**
* Proposer's balance is too low.
**/
InsufficientProposersBalance: AugmentedError<ApiType>;
/**
* No proposal, bounty or spend at that index.
**/
+129 -27
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, 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';
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletBrokerCoretimeInterfaceCoreAssignment, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsOrigin, PalletConvictionVotingTally, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsTypeU128, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletReviveExecOrigin, 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>;
@@ -131,6 +131,20 @@ declare module '@polkadot/api-base/types/events' {
* and `SwapTokenForExactToken` will generate this event.
**/
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]>> }>;
/**
* Pool has been touched in order to fulfill operational requirements.
**/
Touched: AugmentedEvent<ApiType, [poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, who: AccountId32], { poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, who: AccountId32 }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
assetConversionMigration: {
/**
* Indicates that a pool has been migrated to the new account ID.
**/
MigratedToNewAccount: AugmentedEvent<ApiType, [poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, priorAccount: AccountId32, newAccount: AccountId32], { poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, priorAccount: AccountId32, newAccount: AccountId32 }>;
/**
* Generic event
**/
@@ -145,7 +159,7 @@ declare module '@polkadot/api-base/types/events' {
* A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
* has been paid by `who` in an asset `asset_id`.
**/
AssetTxFeePaid: AugmentedEvent<ApiType, [who: AccountId32, actualFee: u128, tip: u128, assetId: u32], { who: AccountId32, actualFee: u128, tip: u128, assetId: u32 }>;
AssetTxFeePaid: AugmentedEvent<ApiType, [who: AccountId32, actualFee: u128, tip: u128, assetId: FrameSupportTokensFungibleUnionOfNativeOrWithId], { who: AccountId32, actualFee: u128, tip: u128, assetId: FrameSupportTokensFungibleUnionOfNativeOrWithId }>;
/**
* Generic event
**/
@@ -205,6 +219,10 @@ declare module '@polkadot/api-base/types/events' {
* Some asset class was created.
**/
Created: AugmentedEvent<ApiType, [assetId: u32, creator: AccountId32, owner: AccountId32], { assetId: u32, creator: AccountId32, owner: AccountId32 }>;
/**
* Some assets were deposited (e.g. for transaction fees).
**/
Deposited: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, amount: u128], { assetId: u32, who: AccountId32, amount: u128 }>;
/**
* An asset class was destroyed.
**/
@@ -259,16 +277,9 @@ declare module '@polkadot/api-base/types/events' {
**/
TransferredApproved: AugmentedEvent<ApiType, [assetId: u32, owner: AccountId32, delegate: AccountId32, destination: AccountId32, amount: u128], { assetId: u32, owner: AccountId32, delegate: AccountId32, destination: AccountId32, amount: u128 }>;
/**
* Generic event
* Some assets were withdrawn from the account (e.g. for transaction fees).
**/
[key: string]: AugmentedEvent<ApiType>;
};
assetTxPayment: {
/**
* A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
* has been paid by `who` in an asset `asset_id`.
**/
AssetTxFeePaid: AugmentedEvent<ApiType, [who: AccountId32, actualFee: u128, tip: u128, assetId: Option<u32>], { who: AccountId32, actualFee: u128, tip: u128, assetId: Option<u32> }>;
Withdrawn: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, amount: u128], { assetId: u32, who: AccountId32, amount: u128 }>;
/**
* Generic event
**/
@@ -421,14 +432,24 @@ declare module '@polkadot/api-base/types/events' {
[key: string]: AugmentedEvent<ApiType>;
};
broker: {
/**
* Some historical Instantaneous Core Pool payment record has been dropped.
**/
AllowedRenewalDropped: AugmentedEvent<ApiType, [when: u32, core: u16], { when: u32, core: u16 }>;
/**
* A Region has been assigned to a particular task.
**/
Assigned: AugmentedEvent<ApiType, [regionId: PalletBrokerRegionId, duration: u32, task: u32], { regionId: PalletBrokerRegionId, duration: u32, task: u32 }>;
AutoRenewalDisabled: AugmentedEvent<ApiType, [core: u16, task: u32], { core: u16, task: u32 }>;
AutoRenewalEnabled: AugmentedEvent<ApiType, [core: u16, task: u32], { core: u16, task: u32 }>;
/**
* Failed to auto-renew a core, likely due to the payer account not being sufficiently
* funded.
**/
AutoRenewalFailed: AugmentedEvent<ApiType, [core: u16, payer: Option<AccountId32>], { core: u16, payer: Option<AccountId32> }>;
/**
* The auto-renewal limit has been reached upon renewing cores.
*
* This should never happen, given that enable_auto_renew checks for this before enabling
* auto-renewal.
**/
AutoRenewalLimitReached: AugmentedEvent<ApiType, []>;
/**
* Some historical Instantaneous Core Pool Revenue is ready for payout claims.
**/
@@ -486,6 +507,10 @@ declare module '@polkadot/api-base/types/events' {
* A Region has been added to the Instantaneous Coretime Pool.
**/
Pooled: AugmentedEvent<ApiType, [regionId: PalletBrokerRegionId, duration: u32], { regionId: PalletBrokerRegionId, duration: u32 }>;
/**
* Some historical Instantaneous Core Pool payment record has been dropped.
**/
PotentialRenewalDropped: AugmentedEvent<ApiType, [when: u32, core: u16], { when: u32, core: u16 }>;
/**
* A Region of Bulk Coretime has been purchased.
**/
@@ -525,7 +550,7 @@ declare module '@polkadot/api-base/types/events' {
/**
* A new sale has been initialized.
**/
SaleInitialized: AugmentedEvent<ApiType, [saleStart: u32, leadinLength: u32, startPrice: u128, regularPrice: u128, regionBegin: u32, regionEnd: u32, idealCoresSold: u16, coresOffered: u16], { saleStart: u32, leadinLength: u32, startPrice: u128, regularPrice: u128, regionBegin: u32, regionEnd: u32, idealCoresSold: u16, coresOffered: u16 }>;
SaleInitialized: AugmentedEvent<ApiType, [saleStart: u32, leadinLength: u32, startPrice: u128, endPrice: u128, regionBegin: u32, regionEnd: u32, idealCoresSold: u16, coresOffered: u16], { saleStart: u32, leadinLength: u32, startPrice: u128, endPrice: u128, regionBegin: u32, regionEnd: u32, idealCoresSold: u16, coresOffered: u16 }>;
/**
* The sale rotation has been started and a new sale is imminent.
**/
@@ -533,7 +558,7 @@ declare module '@polkadot/api-base/types/events' {
/**
* Ownership of a Region has been transferred.
**/
Transferred: AugmentedEvent<ApiType, [regionId: PalletBrokerRegionId, duration: u32, oldOwner: AccountId32, owner: AccountId32], { regionId: PalletBrokerRegionId, duration: u32, oldOwner: AccountId32, owner: AccountId32 }>;
Transferred: AugmentedEvent<ApiType, [regionId: PalletBrokerRegionId, duration: u32, oldOwner: Option<AccountId32>, owner: Option<AccountId32>], { regionId: PalletBrokerRegionId, duration: u32, oldOwner: Option<AccountId32>, owner: Option<AccountId32> }>;
/**
* Generic event
**/
@@ -633,6 +658,14 @@ declare module '@polkadot/api-base/types/events' {
* An \[account\] has cancelled a previous delegation operation.
**/
Undelegated: AugmentedEvent<ApiType, [AccountId32]>;
/**
* An account that has voted
**/
Voted: AugmentedEvent<ApiType, [who: AccountId32, vote: PalletConvictionVotingVoteAccountVote], { who: AccountId32, vote: PalletConvictionVotingVoteAccountVote }>;
/**
* A vote that been removed
**/
VoteRemoved: AugmentedEvent<ApiType, [who: AccountId32, vote: PalletConvictionVotingVoteAccountVote], { who: AccountId32, vote: PalletConvictionVotingVoteAccountVote }>;
/**
* Generic event
**/
@@ -668,7 +701,7 @@ declare module '@polkadot/api-base/types/events' {
/**
* Parameters for the pallet have changed.
**/
ParamsChanged: AugmentedEvent<ApiType, [params: PalletCoreFellowshipParamsType], { params: PalletCoreFellowshipParamsType }>;
ParamsChanged: AugmentedEvent<ApiType, [params: PalletCoreFellowshipParamsTypeU128], { params: PalletCoreFellowshipParamsTypeU128 }>;
/**
* Member has been promoted to the given rank.
**/
@@ -911,6 +944,10 @@ declare module '@polkadot/api-base/types/events' {
[key: string]: AugmentedEvent<ApiType>;
};
glutton: {
/**
* The block length limit has been updated.
**/
BlockLengthLimitSet: AugmentedEvent<ApiType, [blockLength: u64], { blockLength: u64 }>;
/**
* The computation limit has been updated.
**/
@@ -1396,8 +1433,10 @@ declare module '@polkadot/api-base/types/events' {
* A member has been removed from a pool.
*
* The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked).
* Any funds that are still delegated (i.e. dangling delegation) are released and are
* represented by `released_balance`.
**/
MemberRemoved: AugmentedEvent<ApiType, [poolId: u32, member: AccountId32], { poolId: u32, member: AccountId32 }>;
MemberRemoved: AugmentedEvent<ApiType, [poolId: u32, member: AccountId32, releasedBalance: u128], { poolId: u32, member: AccountId32, releasedBalance: u128 }>;
/**
* Topped up deficit in frozen ED of the reward pool.
**/
@@ -1544,6 +1583,10 @@ declare module '@polkadot/api-base/types/events' {
* Some asset class was created.
**/
Created: AugmentedEvent<ApiType, [assetId: u32, creator: AccountId32, owner: AccountId32], { assetId: u32, creator: AccountId32, owner: AccountId32 }>;
/**
* Some assets were deposited (e.g. for transaction fees).
**/
Deposited: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, amount: u128], { assetId: u32, who: AccountId32, amount: u128 }>;
/**
* An asset class was destroyed.
**/
@@ -1597,6 +1640,10 @@ declare module '@polkadot/api-base/types/events' {
* the approved `delegate`.
**/
TransferredApproved: AugmentedEvent<ApiType, [assetId: u32, owner: AccountId32, delegate: AccountId32, destination: AccountId32, amount: u128], { assetId: u32, owner: AccountId32, delegate: AccountId32, destination: AccountId32, amount: u128 }>;
/**
* Some assets were withdrawn from the account (e.g. for transaction fees).
**/
Withdrawn: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, amount: u128], { assetId: u32, who: AccountId32, amount: u128 }>;
/**
* Generic event
**/
@@ -1849,6 +1896,69 @@ declare module '@polkadot/api-base/types/events' {
**/
[key: string]: AugmentedEvent<ApiType>;
};
revive: {
/**
* A contract was called either by a plain account or another contract.
*
* # Note
*
* Please keep in mind that like all events this is only emitted for successful
* calls. This is because on failure all storage changes including events are
* rolled back.
**/
Called: AugmentedEvent<ApiType, [caller: PalletReviveExecOrigin, contract: AccountId32], { caller: PalletReviveExecOrigin, contract: AccountId32 }>;
/**
* A code with the specified hash was removed.
**/
CodeRemoved: AugmentedEvent<ApiType, [codeHash: H256, depositReleased: u128, remover: AccountId32], { codeHash: H256, depositReleased: u128, remover: AccountId32 }>;
/**
* Code with the specified hash has been stored.
**/
CodeStored: AugmentedEvent<ApiType, [codeHash: H256, depositHeld: u128, uploader: AccountId32], { codeHash: H256, depositHeld: u128, uploader: AccountId32 }>;
/**
* A contract's code was updated.
**/
ContractCodeUpdated: AugmentedEvent<ApiType, [contract: AccountId32, newCodeHash: H256, oldCodeHash: H256], { contract: AccountId32, newCodeHash: H256, oldCodeHash: H256 }>;
/**
* A custom event emitted by the contract.
**/
ContractEmitted: AugmentedEvent<ApiType, [contract: AccountId32, data: Bytes], { contract: AccountId32, data: Bytes }>;
/**
* A contract delegate called a code hash.
*
* # Note
*
* Please keep in mind that like all events this is only emitted for successful
* calls. This is because on failure all storage changes including events are
* rolled back.
**/
DelegateCalled: AugmentedEvent<ApiType, [contract: AccountId32, codeHash: H256], { contract: AccountId32, codeHash: H256 }>;
/**
* Contract deployed by address at the specified address.
**/
Instantiated: AugmentedEvent<ApiType, [deployer: AccountId32, contract: AccountId32], { deployer: AccountId32, contract: AccountId32 }>;
/**
* Some funds have been transferred and held as storage deposit.
**/
StorageDepositTransferredAndHeld: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;
/**
* Some storage deposit funds have been transferred and released.
**/
StorageDepositTransferredAndReleased: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;
/**
* Contract has been removed.
*
* # Note
*
* The only way for a contract to be removed and emitting this event is by calling
* `seal_terminate`.
**/
Terminated: AugmentedEvent<ApiType, [contract: AccountId32, beneficiary: AccountId32], { contract: AccountId32, beneficiary: AccountId32 }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
rootTesting: {
/**
* Event dispatched when the trigger_defensive extrinsic is called.
@@ -2392,14 +2502,6 @@ declare module '@polkadot/api-base/types/events' {
* A payment failed and can be retried.
**/
PaymentFailed: AugmentedEvent<ApiType, [index: u32, paymentId: Null], { index: u32, paymentId: Null }>;
/**
* New proposal.
**/
Proposed: AugmentedEvent<ApiType, [proposalIndex: u32], { proposalIndex: u32 }>;
/**
* A proposal was rejected; funds were slashed.
**/
Rejected: AugmentedEvent<ApiType, [proposalIndex: u32, slashed: u128], { proposalIndex: u32, slashed: u128 }>;
/**
* Spending has finished; this is the amount that rolls over until next spend.
**/
+119 -20
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, 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 { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerAutoRenewalRecord, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerOnDemandRevenueRecord, PalletBrokerPoolIoRecord, PalletBrokerPotentialRenewalId, PalletBrokerPotentialRenewalRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsTypeU128, 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, PalletReviveStorageContractInfo, PalletReviveStorageDeletionQueueManager, PalletReviveWasmCodeInfo, 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>;
@@ -132,6 +132,18 @@ declare module '@polkadot/api-base/types/storage' {
* Metadata of an asset.
**/
metadata: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletAssetsAssetMetadata>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
* item has no effect.
*
* This can be useful for setting up constraints for IDs of the new assets. For example, by
* providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
* auto-increment model can be applied to all new asset IDs.
*
* The initial next asset ID can be set using the [`GenesisConfig`] or the
* [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
**/
nextAssetId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
@@ -305,11 +317,11 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Freeze locks on account balances.
**/
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmountRuntimeFreezeReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Holds on account balances.
**/
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmountRuntimeHoldReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeHoldReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* The total units of outstanding deactivated balance in the system.
**/
@@ -397,9 +409,11 @@ declare module '@polkadot/api-base/types/storage' {
};
broker: {
/**
* Records of allowed renewals.
* Keeping track of cores which have auto-renewal enabled.
*
* Sorted by `CoreIndex` to make the removal of cores from auto-renewal more efficient.
**/
allowedRenewals: AugmentedQuery<ApiType, (arg: PalletBrokerAllowedRenewalId | { core?: any; when?: any } | string | Uint8Array) => Observable<Option<PalletBrokerAllowedRenewalRecord>>, [PalletBrokerAllowedRenewalId]> & QueryableStorageEntry<ApiType, [PalletBrokerAllowedRenewalId]>;
autoRenewals: AugmentedQuery<ApiType, () => Observable<Vec<PalletBrokerAutoRenewalRecord>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The current configuration of this pallet.
**/
@@ -425,13 +439,23 @@ declare module '@polkadot/api-base/types/storage' {
**/
leases: AugmentedQuery<ApiType, () => Observable<Vec<PalletBrokerLeaseRecordItem>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The current (unassigned) Regions.
* Records of potential renewals.
*
* Renewals will only actually be allowed if `CompletionStatus` is actually `Complete`.
**/
potentialRenewals: AugmentedQuery<ApiType, (arg: PalletBrokerPotentialRenewalId | { core?: any; when?: any } | string | Uint8Array) => Observable<Option<PalletBrokerPotentialRenewalRecord>>, [PalletBrokerPotentialRenewalId]> & QueryableStorageEntry<ApiType, [PalletBrokerPotentialRenewalId]>;
/**
* The current (unassigned or provisionally assigend) Regions.
**/
regions: AugmentedQuery<ApiType, (arg: PalletBrokerRegionId | { begin?: any; core?: any; mask?: any } | string | Uint8Array) => Observable<Option<PalletBrokerRegionRecord>>, [PalletBrokerRegionId]> & QueryableStorageEntry<ApiType, [PalletBrokerRegionId]>;
/**
* The Polkadot Core reservations (generally tasked with the maintenance of System Chains).
**/
reservations: AugmentedQuery<ApiType, () => Observable<Vec<Vec<PalletBrokerScheduleItem>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Received revenue info from the relay chain.
**/
revenueInbox: AugmentedQuery<ApiType, () => Observable<Option<PalletBrokerOnDemandRevenueRecord>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The details of the current sale, including its properties and status.
**/
@@ -571,7 +595,7 @@ declare module '@polkadot/api-base/types/storage' {
/**
* The overall status of the system.
**/
params: AugmentedQuery<ApiType, () => Observable<PalletCoreFellowshipParamsType>, []> & QueryableStorageEntry<ApiType, []>;
params: AugmentedQuery<ApiType, () => Observable<PalletCoreFellowshipParamsTypeU128>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
@@ -842,6 +866,13 @@ declare module '@polkadot/api-base/types/storage' {
* over `1.0` could stall the chain.
**/
compute: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The proportion of the `block length` to consume on each block.
*
* `1.0` is mapped to `100%`. Must be at most [`crate::RESOURCE_HARD_LIMIT`]. Setting this to
* over `1.0` could stall the chain.
**/
length: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The proportion of the remaining `proof_size` to consume during `on_idle`.
*
@@ -1399,11 +1430,21 @@ declare module '@polkadot/api-base/types/storage' {
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
palletExampleMbms: {
/**
* Define a storage item to illustrate multi-block migrations.
**/
myMap: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u64>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
**/
[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]>;
parameters: AugmentedQuery<ApiType, (arg: KitchensinkRuntimeRuntimeParametersKey | { Storage: any } | string | Uint8Array) => Observable<Option<KitchensinkRuntimeRuntimeParametersValue>>, [KitchensinkRuntimeRuntimeParametersKey]> & QueryableStorageEntry<ApiType, [KitchensinkRuntimeRuntimeParametersKey]>;
/**
* Generic query
**/
@@ -1428,6 +1469,18 @@ declare module '@polkadot/api-base/types/storage' {
* Metadata of an asset.
**/
metadata: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletAssetsAssetMetadata>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
* item has no effect.
*
* This can be useful for setting up constraints for IDs of the new assets. For example, by
* providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
* auto-increment model can be applied to all new asset IDs.
*
* The initial next asset ID can be set using the [`GenesisConfig`] or the
* [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
**/
nextAssetId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
@@ -1628,6 +1681,41 @@ declare module '@polkadot/api-base/types/storage' {
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
revive: {
/**
* A mapping from a contract's code hash to its code info.
**/
codeInfoOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletReviveWasmCodeInfo>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
/**
* The code associated with a given account.
**/
contractInfoOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletReviveStorageContractInfo>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Evicted contracts that await child trie deletion.
*
* Child trie deletion is a heavy operation depending on the amount of storage items
* stored in said trie. Therefore this operation is performed lazily in `on_idle`.
**/
deletionQueue: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* A pair of monotonic counters used to track the latest contract marked for deletion
* and the latest deleted contract in queue.
**/
deletionQueueCounter: AugmentedQuery<ApiType, () => Observable<PalletReviveStorageDeletionQueueManager>, []> & QueryableStorageEntry<ApiType, []>;
/**
* A migration can span across multiple blocks. This storage defines a cursor to track the
* progress of the migration, enabling us to resume from the last completed position.
**/
migrationInProgress: AugmentedQuery<ApiType, () => Observable<Option<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* A mapping from a contract's code hash to its code.
**/
pristineCode: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Bytes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
safeMode: {
/**
* Holds the reserve that was taken from an account at a specific block number.
@@ -1861,6 +1949,10 @@ declare module '@polkadot/api-base/types/storage' {
* Counter for the related counted storage map
**/
counterForValidators: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Counter for the related counted storage map
**/
counterForVirtualStakers: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The current era index.
*
@@ -1874,6 +1966,16 @@ declare module '@polkadot/api-base/types/storage' {
* This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
**/
currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Indices of validators that have offended in the active era. The offenders are disabled for a
* whole era. For this reason they are kept here - only staking pallet knows about eras. The
* implementor of [`DisablingStrategy`] defines if a validator should be disabled which
* implicitly means that the implementor also controls the max number of disabled validators.
*
* The vec is always kept sorted so that we can find whether a given validator has previously
* offended using binary search.
**/
disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Rewards for the last [`Config::HistoryDepth`] eras.
* If reward hasn't been set or has been removed then 0 reward is returned.
@@ -2042,18 +2144,6 @@ declare module '@polkadot/api-base/types/storage' {
* All slashing events on nominators, mapped by era to the highest slash value of the era.
**/
nominatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
* Indices of validators that have offended in the active era and whether they are currently
* disabled.
*
* This value should be a superset of disabled validators since not all offences lead to the
* validator being disabled (if there was no slash). This is needed to track the percentage of
* validators that have offended in the current era, ensuring a new era is forced if
* `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
* whether a given validator has previously offended using binary search. It gets cleared when
* the era ends.
**/
offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Where the reward payment should be made. Keyed by stash.
*
@@ -2094,6 +2184,15 @@ declare module '@polkadot/api-base/types/storage' {
* and slash value of the era.
**/
validatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[Perbill, u128]>>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
* Stakers whose funds are managed by other pallets.
*
* This pallet does not apply any locks on them, therefore they are only virtually bonded. They
* are expected to be keyless accounts and hence should not be allowed to mutate their ledger
* directly via this pallet. Instead, these accounts are managed by other pallets and accessed
* via low level apis. We keep track of them to do minimal integrity checks.
**/
virtualStakers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Null>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Generic query
**/
+228 -160
View File
@@ -6,30 +6,13 @@
import '@polkadot/api-base/types/calls';
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
import type { Bytes, Null, Option, Result, U64, Vec, bool, u128, u32 } from '@polkadot/types-codec';
import type { Bytes, Null, Option, Result, Struct, Text, Vec, bool, u128, u32, u64 } 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 { OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
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, 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 { SpStatementStoreStatement, StagingXcmV3MultiLocation } from '@polkadot/types/lookup';
import type { AccountId32, H256, RuntimeCall, Slot } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemEventRecord, PalletContractsPrimitivesCode, PalletContractsPrimitivesCodeUploadReturnValue, PalletContractsPrimitivesContractAccessError, PalletContractsPrimitivesContractResult, PalletContractsPrimitivesExecReturnValue, PalletContractsPrimitivesStorageDeposit, PalletContractsWasmDeterminism, PalletRevivePrimitivesCode, PalletRevivePrimitivesCodeUploadReturnValue, PalletRevivePrimitivesContractAccessError, PalletRevivePrimitivesContractResult, PalletRevivePrimitivesExecReturnValue, PalletRevivePrimitivesStorageDeposit, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyForkVotingProofOpaqueValue, SpConsensusBeefyFutureBlockVotingProof, SpConsensusBeefyValidatorSet, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpMixnetMixnode, SpMixnetMixnodesErr, SpMixnetSessionStatus, SpMmrPrimitivesError, SpMmrPrimitivesLeafProof, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpStatementStoreRuntimeApiInvalidStatement, SpStatementStoreRuntimeApiStatementSource, SpStatementStoreRuntimeApiValidStatement, SpStatementStoreStatement, SpVersionRuntimeVersion, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
import type { IExtrinsic, Observable } from '@polkadot/types/types';
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
@@ -37,227 +20,250 @@ export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<Ap
declare module '@polkadot/api-base/types/calls' {
interface AugmentedCalls<ApiType extends ApiTypes> {
/** 0xbc9d89904f5b923f/1 */
/** 0xbc9d89904f5b923f/ */
accountNonceApi: {
/**
* The API to query account nonce (aka transaction index)
* Get current account nonce of given `AccountId`.
**/
accountNonce: AugmentedCall<ApiType, (accountId: AccountId | string | Uint8Array) => Observable<Index>>;
accountNonce: AugmentedCall<ApiType, (account: AccountId32 | string | Uint8Array) => Observable<u32>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x8a8047a53a8277ec/1 */
/** 0x8a8047a53a8277ec/ */
assetConversionApi: {
/**
* Get pool reserves
* Returns the size of the liquidity pool for the given asset pair.
**/
getReserves: AugmentedCall<ApiType, (asset1: StagingXcmV3MultiLocation, asset2: StagingXcmV3MultiLocation) => Observable<Option<ITuple<[Balance, Balance]>>>>;
getReserves: AugmentedCall<ApiType, (asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array) => Observable<Option<ITuple<[u128, u128]>>>>;
/**
* Quote price: exact tokens for tokens
* Provides a quote for [`Pallet::swap_exact_tokens_for_tokens`].,, Note that the price may have changed by the time the transaction is executed., (Use `amount_out_min` to control slippage.)
**/
quotePriceExactTokensForTokens: AugmentedCall<ApiType, (asset1: StagingXcmV3MultiLocation, asset2: StagingXcmV3MultiLocation, amount: u128 | AnyNumber | Uint8Array, include_fee: bool | boolean | Uint8Array) => Observable<Option<Balance>>>;
quotePriceExactTokensForTokens: AugmentedCall<ApiType, (asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array, include_fee: bool | boolean | Uint8Array) => Observable<Option<u128>>>;
/**
* Quote price: tokens for exact tokens
* Provides a quote for [`Pallet::swap_tokens_for_exact_tokens`].,, Note that the price may have changed by the time the transaction is executed., (Use `amount_in_max` to control slippage.)
**/
quotePriceTokensForExactTokens: AugmentedCall<ApiType, (asset1: StagingXcmV3MultiLocation, asset2: StagingXcmV3MultiLocation, amount: u128 | AnyNumber | Uint8Array, include_fee: bool | boolean | Uint8Array) => Observable<Option<Balance>>>;
quotePriceTokensForExactTokens: AugmentedCall<ApiType, (asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array, include_fee: bool | boolean | Uint8Array) => Observable<Option<u128>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x8453b50b22293977/1 */
/** 0x8453b50b22293977/ */
assetsApi: {
/**
* Return the current set of authorities.
* Returns the list of `AssetId`s and corresponding balance that an `AccountId` has.
**/
accountBalances: AugmentedCall<ApiType, (account: AccountId | string | Uint8Array) => Observable<Vec<ITuple<[u32, TAssetBalance]>>>>;
accountBalances: AugmentedCall<ApiType, (account: AccountId32 | string | Uint8Array) => Observable<Vec<ITuple<[u32, u128]>>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x687ad44ad37f03c2/1 */
/** 0x687ad44ad37f03c2/ */
authorityDiscoveryApi: {
/**
* Retrieve authority identifiers of the current and next authority set.
**/
authorities: AugmentedCall<ApiType, () => Observable<Vec<AuthorityId>>>;
authorities: AugmentedCall<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xcbca25e39f142387/2 */
/** 0xcbca25e39f142387/ */
babeApi: {
/**
* Return the genesis configuration for BABE. The configuration is only read on genesis.
* Return the configuration for BABE.
**/
configuration: AugmentedCall<ApiType, () => Observable<BabeGenesisConfiguration>>;
configuration: AugmentedCall<ApiType, () => Observable<SpConsensusBabeBabeConfiguration>>;
/**
* Returns information regarding the current epoch.
**/
currentEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
currentEpoch: AugmentedCall<ApiType, () => Observable<SpConsensusBabeEpoch>>;
/**
* Returns the slot that started the current epoch.
**/
currentEpochStart: AugmentedCall<ApiType, () => Observable<Slot>>;
/**
* Generates a proof of key ownership for the given authority in the current epoch.
* Generates a proof of key ownership for the given authority in the, current epoch. An example usage of this module is coupled with the, session historical module to prove that a given authority key is, tied to a given staking identity during a specific session. Proofs, of key ownership are necessary for submitting equivocation reports., NOTE: even though the API takes a `slot` as parameter the current, implementations ignores this parameter and instead relies on this, method being called at the correct block height, i.e. any point at, which the epoch for the given slot is live on-chain. Future, implementations will instead use indexed data through an offchain, worker, not requiring older states to be available.
**/
generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authority_id: SpConsensusBabeAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
/**
* Returns information regarding the next epoch (which was already previously announced).
* Returns information regarding the next epoch (which was already, previously announced).
**/
nextEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
nextEpoch: AugmentedCall<ApiType, () => Observable<SpConsensusBabeEpoch>>;
/**
* Submits an unsigned extrinsic to report an equivocation.
* Submits an unsigned extrinsic to report an equivocation. The caller, must provide the equivocation proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`). The, extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
**/
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BabeEquivocationProof | { offender?: any; slotNumber?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusSlotsEquivocationProof | { offender?: any; slot?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, key_owner_proof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x49eaaf1b548a0cb0/3 */
/** 0x49eaaf1b548a0cb0/ */
beefyApi: {
/**
* Return the block number where BEEFY consensus is enabled/started
**/
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<BlockNumber>>>;
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<u32>>>;
/**
* Generates a proof of key ownership for the given authority in the given set.
* Generates a proof that the `prev_block_number` is part of the canonical chain at, `best_known_block_number`.
**/
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: ValidatorSetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
generateAncestryProof: AugmentedCall<ApiType, (prev_block_number: u32 | AnyNumber | Uint8Array, best_known_block_number: Option<u32> | null | Uint8Array | u32 | AnyNumber) => Observable<Option<Bytes>>>;
/**
* Submits an unsigned extrinsic to report an equivocation.
* Generates a proof of key ownership for the given authority in the, given set. An example usage of this module is coupled with the, session historical module to prove that a given authority key is, tied to a given staking identity during a specific session. Proofs, of key ownership are necessary for submitting equivocation reports., NOTE: even though the API takes a `set_id` as parameter the current, implementations ignores this parameter and instead relies on this, method being called at the correct block height, i.e. any point at, which the given set id is live on-chain. Future implementations will, instead use indexed data through an offchain worker, not requiring, older states to be available.
**/
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BeefyEquivocationProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
generateKeyOwnershipProof: AugmentedCall<ApiType, (set_id: u64 | AnyNumber | Uint8Array, authority_id: SpConsensusBeefyEcdsaCryptoPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
/**
* Submits an unsigned extrinsic to report a double voting equivocation. The caller, must provide the double voting proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`). The, extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
**/
submitReportDoubleVotingUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusBeefyDoubleVotingProof | { first?: any; second?: any } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
/**
* Submits an unsigned extrinsic to report a fork voting equivocation. The caller, must provide the fork voting proof (the ancestry proof should be obtained using, `generate_ancestry_proof`) and a key ownership proof (should be obtained using, `generate_key_ownership_proof`). The extrinsic will be unsigned and should only, be accepted for local authorship (not to be broadcast to the network). This method, returns `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
**/
submitReportForkVotingUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusBeefyForkVotingProofOpaqueValue | { vote?: any; ancestryProof?: any; header?: any } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
/**
* Submits an unsigned extrinsic to report a future block voting equivocation. The caller, must provide the future block voting proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`)., The extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
**/
submitReportFutureBlockVotingUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusBeefyFutureBlockVotingProof | { vote?: any } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
/**
* Return the current active BEEFY validator set
**/
validatorSet: AugmentedCall<ApiType, () => Observable<Option<ValidatorSet>>>;
validatorSet: AugmentedCall<ApiType, () => Observable<Option<SpConsensusBeefyValidatorSet>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x40fe3ad401f8959a/6 */
/** 0x40fe3ad401f8959a/ */
blockBuilder: {
/**
* Apply the given extrinsic.
* Apply the given extrinsic.,, Returns an inclusion outcome which specifies if this extrinsic is included in, this block or not.
**/
applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<Result<Result<Null, SpRuntimeDispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>>;
/**
* Check that the inherents are valid.
* Check that the inherents are valid. The inherent data will vary from chain to chain.
**/
checkInherents: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array, data: InherentData | { data?: any } | string | Uint8Array) => Observable<CheckInherentsResult>>;
checkInherents: AugmentedCall<ApiType, (block: SpRuntimeBlock | { header?: any; extrinsics?: any } | string | Uint8Array, data: SpInherentsInherentData | { data?: any } | string | Uint8Array) => Observable<SpInherentsCheckInherentsResult>>;
/**
* Finish the current block.
**/
finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
finalizeBlock: AugmentedCall<ApiType, () => Observable<SpRuntimeHeader>>;
/**
* Generate inherent extrinsics.
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
**/
inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | { data?: any } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;
inherentExtrinsics: AugmentedCall<ApiType, (inherent: SpInherentsInherentData | { data?: any } | string | Uint8Array) => Observable<Vec<Bytes>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x68b66ba122c93fa7/2 */
/** 0x68b66ba122c93fa7/ */
contractsApi: {
/**
* Perform a call from a specified account to a given contract.
* Perform a call from a specified account to a given contract.,, See [`crate::Pallet::bare_call`].
**/
call: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, dest: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: Option<WeightV2> | null | Uint8Array | WeightV2 | { refTime?: any; proofSize?: any } | string, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber, inputData: Bytes | string | Uint8Array) => Observable<ContractExecResult>>;
call: AugmentedCall<ApiType, (origin: AccountId32 | string | Uint8Array, dest: AccountId32 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, gas_limit: Option<SpWeightsWeightV2Weight> | null | Uint8Array | SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber, input_data: Bytes | string | Uint8Array) => Observable<{
readonly gasConsumed: SpWeightsWeightV2Weight;
readonly gasRequired: SpWeightsWeightV2Weight;
readonly storageDeposit: PalletContractsPrimitivesStorageDeposit;
readonly debugMessage: Bytes;
readonly result: Result<PalletContractsPrimitivesExecReturnValue, SpRuntimeDispatchError>;
readonly events: Option<Vec<FrameSystemEventRecord>>;
} & Struct>>;
/**
* Query a given storage key in a given contract.
* Query a given storage key in a given contract.,, Returns `Ok(Some(Vec<u8>))` if the storage value exists under the given key in the, specified account and `Ok(None)` if it doesn't. If the account specified by the address, doesn't exist, or doesn't have a contract then `Err` is returned.
**/
getStorage: AugmentedCall<ApiType, (address: AccountId | string | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
getStorage: AugmentedCall<ApiType, (address: AccountId32 | string | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Result<Option<Bytes>, PalletContractsPrimitivesContractAccessError>>>;
/**
* Instantiate a new contract.
* Instantiate a new contract.,, See `[crate::Pallet::bare_instantiate]`.
**/
instantiate: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: Option<WeightV2> | null | Uint8Array | WeightV2 | { refTime?: any; proofSize?: any } | string, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber, code: CodeSource | { Upload: any } | { Existing: any } | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => Observable<ContractInstantiateResult>>;
instantiate: AugmentedCall<ApiType, (origin: AccountId32 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, gas_limit: Option<SpWeightsWeightV2Weight> | null | Uint8Array | SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber, code: PalletContractsPrimitivesCode | { Upload: any } | { Existing: any } | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => Observable<PalletContractsPrimitivesContractResult>>;
/**
* Upload new code without instantiating a contract from it.
* Upload new code without instantiating a contract from it.,, See [`crate::Pallet::bare_upload_code`].
**/
uploadCode: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, code: Bytes | string | Uint8Array, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber) => Observable<CodeUploadResult>>;
uploadCode: AugmentedCall<ApiType, (origin: AccountId32 | string | Uint8Array, code: Bytes | string | Uint8Array, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber, determinism: PalletContractsWasmDeterminism | 'Enforced' | 'Relaxed' | number | Uint8Array) => Observable<Result<PalletContractsPrimitivesCodeUploadReturnValue, SpRuntimeDispatchError>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xdf6acb689907609b/5 */
/** 0xdf6acb689907609b/ */
core: {
/**
* Execute the given block.
**/
executeBlock: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable<Null>>;
executeBlock: AugmentedCall<ApiType, (block: SpRuntimeBlock | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable<Null>>;
/**
* Initialize a block with the given header.
* Initialize a block with the given header and return the runtime executive mode.
**/
initializeBlock: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<ExtrinsicInclusionMode>>;
initializeBlock: AugmentedCall<ApiType, (header: SpRuntimeHeader | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<SpRuntimeExtrinsicInclusionMode>>;
/**
* Returns the version of the runtime.
**/
version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;
version: AugmentedCall<ApiType, () => Observable<SpVersionRuntimeVersion>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xfbc577b9d747efd6/1 */
/** 0xfbc577b9d747efd6/ */
genesisBuilder: {
/**
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the, storage.,, In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and, puts it into the storage. If the provided JSON blob is incorrect or incomplete or the, deserialization fails, an error is returned.,, Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no, defaults will be used.
**/
buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
buildState: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<Null, Text>>>;
/**
* Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by, `id`.,, If `id` is `None` the function returns JSON blob representation of the default, `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default, `RuntimeGenesisConfig`.,, Otherwise function returns a JSON representation of the built-in, named, `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not, exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of, (potentially nested) key-value pairs that are intended for customizing the default, runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation, of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can, be used in `build_state` method.
**/
createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
getPreset: AugmentedCall<ApiType, (id: Option<Text> | null | Uint8Array | Text | string) => Observable<Option<Bytes>>>;
/**
* Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.,, The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If, no named presets are provided by the runtime the list is empty.
**/
presetNames: AugmentedCall<ApiType, () => Observable<Vec<Text>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xed99c5acb25eedf5/3 */
/** 0xed99c5acb25eedf5/ */
grandpaApi: {
/**
* Get current GRANDPA authority set id.
**/
currentSetId: AugmentedCall<ApiType, () => Observable<SetId>>;
currentSetId: AugmentedCall<ApiType, () => Observable<u64>>;
/**
* Generates a proof of key ownership for the given authority in the given set.
* Generates a proof of key ownership for the given authority in the, given set. An example usage of this module is coupled with the, session historical module to prove that a given authority key is, tied to a given staking identity during a specific session. Proofs, of key ownership are necessary for submitting equivocation reports., NOTE: even though the API takes a `set_id` as parameter the current, implementations ignore this parameter and instead rely on this, method being called at the correct block height, i.e. any point at, which the given set id is live on-chain. Future implementations will, instead use indexed data through an offchain worker, not requiring, older states to be available.
**/
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: SetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
generateKeyOwnershipProof: AugmentedCall<ApiType, (set_id: u64 | AnyNumber | Uint8Array, authority_id: SpConsensusGrandpaAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
/**
* Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
* Get the current GRANDPA authorities and weights. This should not change except, for when changes are scheduled and the corresponding delay has passed.,, When called at block B, it will return the set of authorities that should be, used to finalize descendants of this block (B+1, B+2, ...). The block B itself, is finalized by the authorities from block B-1.
**/
grandpaAuthorities: AugmentedCall<ApiType, () => Observable<AuthorityList>>;
grandpaAuthorities: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>>;
/**
* Submits an unsigned extrinsic to report an equivocation.
* Submits an unsigned extrinsic to report an equivocation. The caller, must provide the equivocation proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`). The, extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
**/
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x37e397fc7c91f5e4/2 */
/** 0x37e397fc7c91f5e4/ */
metadata: {
/**
* Returns the metadata of a runtime
* Returns the metadata of a runtime.
**/
metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
/**
* Returns the metadata at a given version.
* Returns the metadata at a given version.,, If the given `version` isn't supported, this will return `None`., Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime.
**/
metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
/**
* Returns the supported metadata versions.
* Returns the supported metadata versions.,, This can be used to call `metadata_at_version`.
**/
metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
/**
@@ -265,125 +271,179 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x6fd7c327202e4a8d/1 */
/** 0x6fd7c327202e4a8d/ */
mixnetApi: {
/**
* Get the index and phase of the current session.
* Get the mixnode set for the current session.
**/
currentMixnodes: AugmentedCall<ApiType, () => Observable<Result<Mixnode, MixnodesErr>>>;
currentMixnodes: AugmentedCall<ApiType, () => Observable<Result<Vec<SpMixnetMixnode>, SpMixnetMixnodesErr>>>;
/**
* Try to register a mixnode for the next session.
* Try to register a mixnode for the next session.,, If a registration extrinsic is submitted, `true` is returned. The caller should avoid, calling `maybe_register` again for a few blocks, to give the submitted extrinsic a, chance to get included.,, With the above exception, `maybe_register` is designed to be called every block. Most, of the time it will not do anything, for example:,, - If it is not an appropriate time to submit a registration extrinsic., - If the local node has already registered a mixnode for the next session., - If the local node is not permitted to register a mixnode for the next session.,, `session_index` should match `session_status().current_index`; if it does not, `false`, is returned immediately.
**/
maybeRegister: AugmentedCall<ApiType, (session_index: u32 | AnyNumber | Uint8Array, mixnode: Mixnode | { externalAddresses?: any; kxPublic?: any; peerId?: any } | string | Uint8Array) => Observable<bool>>;
maybeRegister: AugmentedCall<ApiType, (session_index: u32 | AnyNumber | Uint8Array, mixnode: SpMixnetMixnode | { kxPublic?: any; peerId?: any; externalAddresses?: any } | string | Uint8Array) => Observable<bool>>;
/**
* Get the mixnode set for the previous session.
**/
prevMixnodes: AugmentedCall<ApiType, () => Observable<Result<Vec<SpMixnetMixnode>, SpMixnetMixnodesErr>>>;
/**
* 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>>;
sessionStatus: AugmentedCall<ApiType, () => Observable<SpMixnetSessionStatus>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x91d5df18b0d2cf58/2 */
/** 0x91d5df18b0d2cf58/ */
mmrApi: {
/**
* Generate MMR proof for the given block numbers.
* Generate MMR proof for a series of block numbers. If `best_known_block_number = Some(n)`,, use historical MMR state at given block height `n`. Else, use current MMR state.
**/
generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
generateProof: AugmentedCall<ApiType, (block_numbers: Vec<u32> | (u32 | AnyNumber | Uint8Array)[], best_known_block_number: Option<u32> | null | Uint8Array | u32 | AnyNumber) => Observable<Result<ITuple<[Vec<Bytes>, SpMmrPrimitivesLeafProof]>, SpMmrPrimitivesError>>>;
/**
* Return the number of MMR blocks in the chain.
**/
mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<U64, MmrError>>>;
mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<u64, SpMmrPrimitivesError>>>;
/**
* Return the on-chain MMR root hash.
**/
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<H256, SpMmrPrimitivesError>>>;
/**
* Verify MMR proof against on-chain MMR.
* Verify MMR proof against on-chain MMR for a batch of leaves.,, Note this function will use on-chain MMR root hash and check if the proof matches the hash., Note, the leaves should be sorted such that corresponding leaves and leaf indices have the, same position in both the `leaves` vector and the `leaf_indices` vector contained in the [LeafProof]
**/
verifyProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
verifyProof: AugmentedCall<ApiType, (leaves: Vec<Bytes> | (Bytes | string | Uint8Array)[], proof: SpMmrPrimitivesLeafProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<Null, SpMmrPrimitivesError>>>;
/**
* Verify MMR proof against given root hash.
* Verify MMR proof against given root hash for a batch of leaves.,, Note this function does not require any on-chain storage - the, proof is verified against given MMR root hash.,, Note, the leaves should be sorted such that corresponding leaves and leaf indices have the, same position in both the `leaves` vector and the `leaf_indices` vector contained in the [LeafProof]
**/
verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
verifyProofStateless: AugmentedCall<ApiType, (root: H256 | string | Uint8Array, leaves: Vec<Bytes> | (Bytes | string | Uint8Array)[], proof: SpMmrPrimitivesLeafProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<Null, SpMmrPrimitivesError>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x899a250cbe84f250/1 */
/** 0x899a250cbe84f250/ */
nftsApi: {
/**
* An attribute
*
**/
attribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
attribute: AugmentedCall<ApiType, (collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
/**
* A collection attribute
*
**/
collectionAttribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
collectionAttribute: AugmentedCall<ApiType, (collection: u32 | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
/**
* A collection owner
*
**/
collectionOwner: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array) => Observable<Option<AccountId>>>;
collectionOwner: AugmentedCall<ApiType, (collection: u32 | AnyNumber | Uint8Array) => Observable<Option<AccountId32>>>;
/**
* A custom attribute
*
**/
customAttribute: AugmentedCall<ApiType, (account: AccountId | string | Uint8Array, collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
customAttribute: AugmentedCall<ApiType, (account: AccountId32 | string | Uint8Array, collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
/**
* Collection owner
*
**/
owner: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array) => Observable<Option<AccountId>>>;
owner: AugmentedCall<ApiType, (collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => Observable<Option<AccountId32>>>;
/**
* System attribute
*
**/
systemAttribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
systemAttribute: AugmentedCall<ApiType, (collection: u32 | AnyNumber | Uint8Array, item: Option<u32> | null | Uint8Array | u32 | AnyNumber, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x17a6bc0d0062aeb3/1 */
/** 0x17a6bc0d0062aeb3/ */
nominationPoolsApi: {
/**
* Returns the equivalent points of `new_funds` for a given pool.
**/
balanceToPoints: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, newFunds: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
balanceToPoints: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array, new_funds: u128 | AnyNumber | Uint8Array) => Observable<u128>>;
/**
* Returns the pending rewards for the given member.
* Returns true if the delegated funds of the pool `member` needs migration.,, Once a pool has successfully migrated to the strategy, [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake), the funds of the, member can be migrated from pool account to the member's account. Use, [`migrate_delegation`](pallet_nomination_pools::Call::migrate_delegation), to migrate the funds of the pool member.
**/
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
memberNeedsDelegateMigration: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<bool>>;
/**
* Returns the pending slash for a given pool member.
**/
memberPendingSlash: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<u128>>;
/**
* Returns the total contribution of a pool member including any balance that is unbonding.
**/
memberTotalBalance: AugmentedCall<ApiType, (who: AccountId32 | string | Uint8Array) => Observable<u128>>;
/**
* Returns the pending rewards for the member that the AccountId was given for.
**/
pendingRewards: AugmentedCall<ApiType, (who: AccountId32 | string | Uint8Array) => Observable<u128>>;
/**
* Returns the equivalent balance of `points` for a given pool.
**/
pointsToBalance: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, points: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
pointsToBalance: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array, points: u128 | AnyNumber | Uint8Array) => Observable<u128>>;
/**
* Total balance contributed to the pool.
**/
poolBalance: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
/**
* Returns true if the pool with `pool_id` needs migration.,, This can happen when the `pallet-nomination-pools` has switched to using strategy, [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake) but the pool, still has funds that were staked using the older strategy, [TransferStake](pallet_nomination_pools::adapter::TransferStake). Use, [`migrate_pool_to_delegate_stake`](pallet_nomination_pools::Call::migrate_pool_to_delegate_stake), to migrate the pool.
**/
poolNeedsDelegateMigration: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<bool>>;
/**
* Returns the pending slash for a given pool.
**/
poolPendingSlash: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xf78b278be53f454c/2 */
/** 0xf78b278be53f454c/ */
offchainWorkerApi: {
/**
* Starts the off-chain task for given block header.
**/
offchainWorker: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
offchainWorker: AugmentedCall<ApiType, (header: SpRuntimeHeader | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xab3c0572291feb8b/1 */
/** 0x8c403e5c4a9fd442/ */
reviveApi: {
/**
* Perform a call from a specified account to a given contract.,, See [`crate::Pallet::bare_call`].
**/
call: AugmentedCall<ApiType, (origin: AccountId32 | string | Uint8Array, dest: AccountId32 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, gas_limit: Option<SpWeightsWeightV2Weight> | null | Uint8Array | SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber, input_data: Bytes | string | Uint8Array) => Observable<{
readonly gasConsumed: SpWeightsWeightV2Weight;
readonly gasRequired: SpWeightsWeightV2Weight;
readonly storageDeposit: PalletRevivePrimitivesStorageDeposit;
readonly debugMessage: Bytes;
readonly result: Result<PalletRevivePrimitivesExecReturnValue, SpRuntimeDispatchError>;
readonly events: Option<Vec<FrameSystemEventRecord>>;
} & Struct>>;
/**
* Query a given storage key in a given contract.,, Returns `Ok(Some(Vec<u8>))` if the storage value exists under the given key in the, specified account and `Ok(None)` if it doesn't. If the account specified by the address, doesn't exist, or doesn't have a contract then `Err` is returned.
**/
getStorage: AugmentedCall<ApiType, (address: AccountId32 | string | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Result<Option<Bytes>, PalletRevivePrimitivesContractAccessError>>>;
/**
* Instantiate a new contract.,, See `[crate::Pallet::bare_instantiate]`.
**/
instantiate: AugmentedCall<ApiType, (origin: AccountId32 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, gas_limit: Option<SpWeightsWeightV2Weight> | null | Uint8Array | SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber, code: PalletRevivePrimitivesCode | { Upload: any } | { Existing: any } | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => Observable<PalletRevivePrimitivesContractResult>>;
/**
* Upload new code without instantiating a contract from it.,, See [`crate::Pallet::bare_upload_code`].
**/
uploadCode: AugmentedCall<ApiType, (origin: AccountId32 | string | Uint8Array, code: Bytes | string | Uint8Array, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber) => Observable<Result<PalletRevivePrimitivesCodeUploadReturnValue, SpRuntimeDispatchError>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xab3c0572291feb8b/ */
sessionKeys: {
/**
* Decode the given public session keys.
* Decode the given public session keys.,, Returns the list of public raw public keys + key type.
**/
decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, KeyTypeId]>>>>>;
decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, SpCoreCryptoKeyTypeId]>>>>>;
/**
* Generate a set of session keys with optionally using the given seed.
* Generate a set of session keys with optionally using the given seed., The keys should be stored within the keystore exposed via runtime, externalities.,, The seed needs to be a valid `utf8` string.,, Returns the concatenated SCALE encoded public keys.
**/
generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;
/**
@@ -391,80 +451,88 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x18ef58a3b67ba770/1 */
/** 0x18ef58a3b67ba770/ */
stakingApi: {
/**
* Returns the page count of exposures for a validator `account` in a given era.
**/
erasStakersPageCount: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<u32>>;
/**
* Returns the nominations quota for a nominator with a given balance.
**/
nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
nominationsQuota: AugmentedCall<ApiType, (balance: u128 | AnyNumber | Uint8Array) => Observable<u32>>;
/**
* Returns true if validator `account` has pages to be claimed for the given era.
**/
pendingRewards: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<bool>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xd2bc9897eed08f15/3 */
/** 0xd2bc9897eed08f15/ */
taggedTransactionQueue: {
/**
* Validate the transaction.
* Validate the transaction.,, This method is invoked by the transaction pool to learn details about given transaction., The implementation should make sure to verify the correctness of the transaction, against current state. The given `block_hash` corresponds to the hash of the block, that is used as current state.,, Note that this call may be performed by the pool multiple times and transactions, might be verified in any possible order.
**/
validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;
validateTransaction: AugmentedCall<ApiType, (source: SpRuntimeTransactionValidityTransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, block_hash: H256 | string | Uint8Array) => Observable<Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x37c8bb1350a9a2a8/4 */
/** 0x37c8bb1350a9a2a8/ */
transactionPaymentApi: {
/**
* The transaction fee details
*
**/
queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
/**
* The transaction info
*
**/
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
/**
* Query the output of the current LengthToFee given some input
*
**/
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
/**
* Query the output of the current WeightToFee given some input
*
**/
queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;
queryWeightToFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<u128>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xf3ff14d5ab527059/3 */
/** 0xf3ff14d5ab527059/ */
transactionPaymentCallApi: {
/**
* The call fee details
* Query fee details of a given encoded `Call`.
**/
queryCallFeeDetails: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
queryCallFeeDetails: AugmentedCall<ApiType, (call: RuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
/**
* The call info
* Query information of a dispatch class, weight, and fee of a given encoded `Call`.
**/
queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
queryCallInfo: AugmentedCall<ApiType, (call: RuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
/**
* Query the output of the current LengthToFee given some input
* Query the output of the current `LengthToFee` given some input.
**/
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
/**
* Query the output of the current WeightToFee given some input
* Query the output of the current `WeightToFee` given some input.
**/
queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;
queryWeightToFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<u128>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xbe9fb0c91a8046cf/1 */
/** 0xbe9fb0c91a8046cf/ */
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>>>;
validateStatement: AugmentedCall<ApiType, (source: SpStatementStoreRuntimeApiStatementSource | '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<SpStatementStoreRuntimeApiValidStatement, SpStatementStoreRuntimeApiInvalidStatement>>>;
/**
* Generic call
**/
+341 -87
View File
@@ -10,7 +10,7 @@ import type { Data } from '@polkadot/types';
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensFungibleUnionOfNativeOrWithId, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParameters, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletBalancesAdjustmentDirection, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMigrationsHistoricCleanupSelector, PalletMigrationsMigrationCursor, PalletMixnetRegistration, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyEquivocationProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpMixnetAppSignature, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensFungibleUnionOfNativeOrWithId, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParameters, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletBalancesAdjustmentDirection, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerOnDemandRevenueRecord, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsTypeOption, PalletCoreFellowshipParamsTypeU128, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMigrationsHistoricCleanupSelector, PalletMigrationsMigrationCursor, PalletMixnetRegistration, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyForkVotingProofAncestryProof, SpConsensusBeefyFutureBlockVotingProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpMixnetAppSignature, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
@@ -240,7 +240,7 @@ declare module '@polkadot/api-base/types/submittable' {
* calls to render the liquidity withdrawable and rectify the exchange rate.
*
* Once liquidity is added, someone may successfully call
* [`Pallet::swap_exact_tokens_for_tokens`] successfully.
* [`Pallet::swap_exact_tokens_for_tokens`].
**/
addLiquidity: AugmentedSubmittable<(asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, amount1Desired: u128 | AnyNumber | Uint8Array, amount2Desired: u128 | AnyNumber | Uint8Array, amount1Min: u128 | AnyNumber | Uint8Array, amount2Min: u128 | AnyNumber | Uint8Array, mintTo: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId, u128, u128, u128, u128, AccountId32]>;
/**
@@ -274,6 +274,33 @@ declare module '@polkadot/api-base/types/submittable' {
* for a quote.
**/
swapTokensForExactTokens: AugmentedSubmittable<(path: Vec<FrameSupportTokensFungibleUnionOfNativeOrWithId> | (FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array)[], amountOut: u128 | AnyNumber | Uint8Array, amountInMax: u128 | AnyNumber | Uint8Array, sendTo: AccountId32 | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<FrameSupportTokensFungibleUnionOfNativeOrWithId>, u128, u128, AccountId32, bool]>;
/**
* Touch an existing pool to fulfill prerequisites before providing liquidity, such as
* ensuring that the pool's accounts are in place. It is typically useful when a pool
* creator removes the pool's accounts and does not provide a liquidity. This action may
* involve holding assets from the caller as a deposit for creating the pool's accounts.
*
* The origin must be Signed.
*
* - `asset1`: The asset ID of an existing pool with a pair (asset1, asset2).
* - `asset2`: The asset ID of an existing pool with a pair (asset1, asset2).
*
* Emits `Touched` event when successful.
**/
touch: AugmentedSubmittable<(asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
assetConversionMigration: {
/**
* Migrates an existing pool to a new account ID derivation method for a given asset pair.
* If the migration is successful, transaction fees are refunded to the caller.
*
* Must be signed.
**/
migrateToNewAccount: AugmentedSubmittable<(asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>;
/**
* Generic tx
**/
@@ -402,7 +429,7 @@ declare module '@polkadot/api-base/types/submittable' {
*
* Parameters:
* - `id`: The identifier of the new asset. This must not be currently in use to identify
* an existing asset.
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
* - `admin`: The admin of this class of assets. The admin is the initial address of each
* member of the asset class's admin team.
* - `min_balance`: The minimum balance of this new asset that any single account must
@@ -521,7 +548,7 @@ declare module '@polkadot/api-base/types/submittable' {
* Unlike `create`, no funds are reserved.
*
* - `id`: The identifier of the new asset. This must not be currently in use to identify
* an existing asset.
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
* - `owner`: The owner of this class of assets. The owner has full superuser permissions
* over this asset, but may later change and configure the permissions using
* `transfer_ownership` and `set_team`.
@@ -699,8 +726,6 @@ declare module '@polkadot/api-base/types/submittable' {
*
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
* asset.
*
* The asset class must be frozen before calling `start_destroy`.
**/
startDestroy: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
/**
@@ -774,6 +799,25 @@ declare module '@polkadot/api-base/types/submittable' {
* `target`.
**/
transfer: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, Compact<u128>]>;
/**
* Transfer the entire transferable balance from the caller asset account.
*
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
* any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
* transferred by this function. To ensure that this function results in a killed account,
* you might need to prepare the account by removing any reference counters, storage
* deposits, etc...
*
* The dispatch origin of this call must be Signed.
*
* - `id`: The identifier of the asset for the account holding a deposit.
* - `dest`: The recipient of the transfer.
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
* of the funds the asset account has, causing the sender asset account to be killed
* (false), or transfer everything except at least the minimum balance, which will
* guarantee to keep the sender asset account alive (true).
**/
transferAll: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, bool]>;
/**
* Transfer some asset balance from a previously delegated account to some third-party
* account.
@@ -866,6 +910,16 @@ declare module '@polkadot/api-base/types/submittable' {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
balances: {
/**
* Burn the specified liquid free balance from the origin account.
*
* If the origin's account ends up below the existential deposit as a result
* of the burn and `keep_alive` is false, the account will be reaped.
*
* Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
* this `burn` operation will reduce total issuance by the amount _burned_.
**/
burn: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, bool]>;
/**
* Adjust the total issuance in a saturating way.
*
@@ -951,7 +1005,7 @@ declare module '@polkadot/api-base/types/submittable' {
* against the extracted offender. If both are valid, the offence
* will be reported.
**/
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyEquivocationProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyEquivocationProof, SpSessionMembershipProof]>;
reportDoubleVoting: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyDoubleVotingProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyDoubleVotingProof, SpSessionMembershipProof]>;
/**
* Report voter equivocation/misbehavior. This method will verify the
* equivocation proof and validate the given key ownership proof
@@ -963,7 +1017,41 @@ declare module '@polkadot/api-base/types/submittable' {
* if the block author is defined it will be defined as the equivocation
* reporter.
**/
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyEquivocationProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyEquivocationProof, SpSessionMembershipProof]>;
reportDoubleVotingUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyDoubleVotingProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyDoubleVotingProof, SpSessionMembershipProof]>;
/**
* Report fork voting equivocation. This method will verify the equivocation proof
* and validate the given key ownership proof against the extracted offender.
* If both are valid, the offence will be reported.
**/
reportForkVoting: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyForkVotingProofAncestryProof | { vote?: any; ancestryProof?: any; header?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyForkVotingProofAncestryProof, SpSessionMembershipProof]>;
/**
* Report fork voting equivocation. This method will verify the equivocation proof
* and validate the given key ownership proof against the extracted offender.
* If both are valid, the offence will be reported.
*
* This extrinsic must be called unsigned and it is expected that only
* block authors will call it (validated in `ValidateUnsigned`), as such
* if the block author is defined it will be defined as the equivocation
* reporter.
**/
reportForkVotingUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyForkVotingProofAncestryProof | { vote?: any; ancestryProof?: any; header?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyForkVotingProofAncestryProof, SpSessionMembershipProof]>;
/**
* Report future block voting equivocation. This method will verify the equivocation proof
* and validate the given key ownership proof against the extracted offender.
* If both are valid, the offence will be reported.
**/
reportFutureBlockVoting: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyFutureBlockVotingProof | { vote?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyFutureBlockVotingProof, SpSessionMembershipProof]>;
/**
* Report future block voting equivocation. This method will verify the equivocation proof
* and validate the given key ownership proof against the extracted offender.
* If both are valid, the offence will be reported.
*
* This extrinsic must be called unsigned and it is expected that only
* block authors will call it (validated in `ValidateUnsigned`), as such
* if the block author is defined it will be defined as the equivocation
* reporter.
**/
reportFutureBlockVotingUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyFutureBlockVotingProof | { vote?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyFutureBlockVotingProof, SpSessionMembershipProof]>;
/**
* Reset BEEFY consensus by setting a new BEEFY genesis at `delay_in_blocks` blocks in the
* future.
@@ -1109,13 +1197,12 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* Claim the revenue owed from inclusion in the Instantaneous Coretime Pool.
*
* - `origin`: Must be a Signed origin of the account which owns the Region `region_id`.
* - `origin`: Must be a Signed origin.
* - `region_id`: The Region which was assigned to the Pool.
* - `max_timeslices`: The maximum number of timeslices which should be processed. This may
* effect the weight of the call but should be ideally made equivalent to the length of
* the Region `region_id`. If it is less than this, then further dispatches will be
* required with the `region_id` which makes up any remainders of the region to be
* collected.
* - `max_timeslices`: The maximum number of timeslices which should be processed. This
* must be greater than 0. This may affect the weight of the call but should be ideally
* made equivalent to the length of the Region `region_id`. If less, further dispatches
* will be required with the same `region_id` to claim revenue for the remainder.
**/
claimRevenue: AugmentedSubmittable<(regionId: PalletBrokerRegionId | { begin?: any; core?: any; mask?: any } | string | Uint8Array, maxTimeslices: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBrokerRegionId, u32]>;
/**
@@ -1125,6 +1212,16 @@ declare module '@polkadot/api-base/types/submittable' {
* - `config`: The configuration for this pallet.
**/
configure: AugmentedSubmittable<(config: PalletBrokerConfigRecord | { advanceNotice?: any; interludeLength?: any; leadinLength?: any; regionLength?: any; idealBulkProportion?: any; limitCoresOffered?: any; renewalBump?: any; contributionTimeout?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBrokerConfigRecord]>;
/**
* Extrinsic for disabling auto renewal.
*
* Callable by the sovereign account of the task on the specified core.
*
* - `origin`: Must be the sovereign account of the task.
* - `core`: The core for which we want to disable auto renewal.
* - `task`: The task for which we want to disable auto renewal.
**/
disableAutoRenew: AugmentedSubmittable<(core: u16 | AnyNumber | Uint8Array, task: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, u32]>;
/**
* Drop an expired Instantaneous Pool Contribution record from the chain.
*
@@ -1154,6 +1251,20 @@ declare module '@polkadot/api-base/types/submittable' {
* - `when`: The timeslice to which the expired renewal refers. This must have passed.
**/
dropRenewal: AugmentedSubmittable<(core: u16 | AnyNumber | Uint8Array, when: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, u32]>;
/**
* Extrinsic for enabling auto renewal.
*
* Callable by the sovereign account of the task on the specified core. This account
* will be charged at the start of every bulk period for renewing core time.
*
* - `origin`: Must be the sovereign account of the task
* - `core`: The core to which the task to be renewed is currently assigned.
* - `task`: The task for which we want to enable auto renewal.
* - `workload_end_hint`: should be used when enabling auto-renewal for a core that is not
* expiring in the upcoming bulk period (e.g., due to holding a lease) since it would be
* inefficient to look up when the core expires to schedule the next renewal.
**/
enableAutoRenew: AugmentedSubmittable<(core: u16 | AnyNumber | Uint8Array, task: u32 | AnyNumber | Uint8Array, workloadEndHint: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [u16, u32, Option<u32>]>;
/**
* Split a Bulk Coretime Region into two wholly-overlapping Regions with complementary
* interlace masks which together make up the original Region's interlace mask.
@@ -1166,6 +1277,7 @@ declare module '@polkadot/api-base/types/submittable' {
**/
interlace: AugmentedSubmittable<(regionId: PalletBrokerRegionId | { begin?: any; core?: any; mask?: any } | string | Uint8Array, pivot: PalletBrokerCoreMask | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBrokerRegionId, PalletBrokerCoreMask]>;
notifyCoreCount: AugmentedSubmittable<(coreCount: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16]>;
notifyRevenue: AugmentedSubmittable<(revenue: PalletBrokerOnDemandRevenueRecord | { until?: any; amount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBrokerOnDemandRevenueRecord]>;
/**
* Split a Bulk Coretime Region into two non-overlapping Regions at a particular time into
* the region.
@@ -1239,10 +1351,14 @@ declare module '@polkadot/api-base/types/submittable' {
* Begin the Bulk Coretime sales rotation.
*
* - `origin`: Must be Root or pass `AdminOrigin`.
* - `initial_price`: The price of Bulk Coretime in the first sale.
* - `core_count`: The number of cores which can be allocated.
* - `end_price`: The price after the leadin period of Bulk Coretime in the first sale.
* - `extra_cores`: Number of extra cores that should be requested on top of the cores
* required for `Reservations` and `Leases`.
*
* This will call [`Self::request_core_count`] internally to set the correct core count on
* the relay chain.
**/
startSales: AugmentedSubmittable<(initialPrice: u128 | AnyNumber | Uint8Array, coreCount: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, u16]>;
startSales: AugmentedSubmittable<(endPrice: u128 | AnyNumber | Uint8Array, extraCores: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, u16]>;
swapLeases: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, other: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
/**
* Transfer a Bulk Coretime Region to a new owner.
@@ -1744,6 +1860,14 @@ declare module '@polkadot/api-base/types/submittable' {
* - `to_rank`: One more than the current rank of `who`.
**/
promote: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, toRank: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u16]>;
/**
* Fast promotions can skip ranks and ignore the `min_promotion_period`.
*
* This is useful for out-of-band promotions, hence it has its own `FastPromoteOrigin` to
* be (possibly) more restrictive than `PromoteOrigin`. Note that the member must already
* be inducted.
**/
promoteFast: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, toRank: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u16]>;
/**
* Set whether a member is active or not.
*
@@ -1757,7 +1881,17 @@ declare module '@polkadot/api-base/types/submittable' {
* - `origin`: An origin complying with `ParamsOrigin` or root.
* - `params`: The new parameters for the pallet.
**/
setParams: AugmentedSubmittable<(params: PalletCoreFellowshipParamsType | { activeSalary?: any; passiveSalary?: any; demotionPeriod?: any; minPromotionPeriod?: any; offboardTimeout?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletCoreFellowshipParamsType]>;
setParams: AugmentedSubmittable<(params: PalletCoreFellowshipParamsTypeU128 | { activeSalary?: any; passiveSalary?: any; demotionPeriod?: any; minPromotionPeriod?: any; offboardTimeout?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletCoreFellowshipParamsTypeU128]>;
/**
* Set the parameters partially.
*
* - `origin`: An origin complying with `ParamsOrigin` or root.
* - `partial_params`: The new parameters for the pallet.
*
* This update config with multiple arguments without duplicating
* the fields that does not need to update (set to None).
**/
setPartialParams: AugmentedSubmittable<(partialParams: PalletCoreFellowshipParamsTypeOption | { activeSalary?: any; passiveSalary?: any; demotionPeriod?: any; minPromotionPeriod?: any; offboardTimeout?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletCoreFellowshipParamsTypeOption]>;
/**
* Provide evidence that a rank is deserved.
*
@@ -2408,6 +2542,10 @@ declare module '@polkadot/api-base/types/submittable' {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
glutton: {
/**
* Increase the block size by including the specified garbage bytes.
**/
bloat: AugmentedSubmittable<(garbage: Vec<U8aFixed>) => SubmittableExtrinsic<ApiType>, [Vec<U8aFixed>]>;
/**
* Initialize the pallet. Should be called once, if no genesis state was provided.
*
@@ -2417,6 +2555,15 @@ declare module '@polkadot/api-base/types/submittable' {
* Only callable by Root or `AdminOrigin`. A good default for `new_count` is `5_000`.
**/
initializePallet: AugmentedSubmittable<(newCount: u32 | AnyNumber | Uint8Array, witnessCount: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>]>;
/**
* Set how much of the block length should be filled with trash data on each block.
*
* `1.0` means that all block should be filled. If set to `1.0`, storage proof size will
* be close to zero.
*
* Only callable by Root or `AdminOrigin`.
**/
setBlockLength: AugmentedSubmittable<(blockLength: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
/**
* Set how much of the remaining `ref_time` weight should be consumed by `on_idle`.
*
@@ -2626,7 +2773,7 @@ declare module '@polkadot/api-base/types/submittable' {
* - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:
*
* ```nocompile
* Self::registrars().get(reg_index).unwrap().fee
* Registrars::<T>::get().get(reg_index).unwrap().fee
* ```
*
* Emits `JudgementRequested` if successful.
@@ -3790,6 +3937,16 @@ declare module '@polkadot/api-base/types/submittable' {
* pool by either topping up the deficit or claiming the excess.
**/
adjustPoolDeposit: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* Apply a pending slash on a member.
*
* Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
* [`adapter::StakeStrategyType::Delegate`].
*
* This call can be dispatched permissionlessly (i.e. by any account). If the member has
* slash to be applied, caller may be rewarded with the part of the slash.
**/
applySlash: AugmentedSubmittable<(memberAccount: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
/**
* Bond `extra` more funds from `origin` into the pool to which they already belong.
*
@@ -3887,8 +4044,13 @@ declare module '@polkadot/api-base/types/submittable' {
**/
createWithPoolId: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, bouncer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress, u32]>;
/**
* Stake funds with a pool. The amount to bond is transferred from the member to the
* pools account and immediately increases the pools bond.
* Stake funds with a pool. The amount to bond is transferred from the member to the pool
* account and immediately increases the pools bond.
*
* The method of transferring the amount to the pool account is determined by
* [`adapter::StakeStrategyType`]. If the pool is configured to use
* [`adapter::StakeStrategyType::Delegate`], the funds remain in the account of
* the `origin`, while the pool gains the right to use these funds for staking.
*
* # Note
*
@@ -3899,6 +4061,30 @@ declare module '@polkadot/api-base/types/submittable' {
* * Only a pool with [`PoolState::Open`] can be joined
**/
join: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
/**
* Migrates delegated funds from the pool account to the `member_account`.
*
* Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
* [`adapter::StakeStrategyType::Delegate`].
*
* This is a permission-less call and refunds any fee if claim is successful.
*
* If the pool has migrated to delegation based staking, the staked tokens of pool members
* can be moved and held in their own account. See [`adapter::DelegateStake`]
**/
migrateDelegation: AugmentedSubmittable<(memberAccount: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
/**
* Migrate pool from [`adapter::StakeStrategyType::Transfer`] to
* [`adapter::StakeStrategyType::Delegate`].
*
* Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
* [`adapter::StakeStrategyType::Delegate`].
*
* This call can be dispatched permissionlessly, and refunds any fee if successful.
*
* If the pool has already migrated to delegation based staking, this call will fail.
**/
migratePoolToDelegateStake: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* Nominate on behalf of the pool.
*
@@ -3965,7 +4151,7 @@ declare module '@polkadot/api-base/types/submittable' {
setCommissionMax: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, maxCommission: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Perbill]>;
/**
* Update configurations for the nomination pools. The origin for this call must be
* Root.
* [`Config::AdminOrigin`].
*
* # Arguments
*
@@ -4060,7 +4246,10 @@ declare module '@polkadot/api-base/types/submittable' {
*
* # Note
*
* If the target is the depositor, the pool will be destroyed.
* - If the target is the depositor, the pool will be destroyed.
* - If the pool has any pending slash, we also try to slash the member before letting them
* withdraw. This calculation adds some weight overhead and is only defensive. In reality,
* pool slashes must have been already applied via permissionless [`Call::apply_slash`].
**/
withdrawUnbonded: AugmentedSubmittable<(memberAccount: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32]>;
/**
@@ -4075,7 +4264,7 @@ declare module '@polkadot/api-base/types/submittable' {
* The dispatch origin of this call must be `AdminOrigin` for the given `key`. Values be
* deleted by setting them to `None`.
**/
setParameter: AugmentedSubmittable<(keyValue: KitchensinkRuntimeRuntimeParameters | { Storage: any } | { Contract: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeRuntimeParameters]>;
setParameter: AugmentedSubmittable<(keyValue: KitchensinkRuntimeRuntimeParameters | { Storage: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeRuntimeParameters]>;
/**
* Generic tx
**/
@@ -4177,7 +4366,7 @@ declare module '@polkadot/api-base/types/submittable' {
*
* Parameters:
* - `id`: The identifier of the new asset. This must not be currently in use to identify
* an existing asset.
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
* - `admin`: The admin of this class of assets. The admin is the initial address of each
* member of the asset class's admin team.
* - `min_balance`: The minimum balance of this new asset that any single account must
@@ -4296,7 +4485,7 @@ declare module '@polkadot/api-base/types/submittable' {
* Unlike `create`, no funds are reserved.
*
* - `id`: The identifier of the new asset. This must not be currently in use to identify
* an existing asset.
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
* - `owner`: The owner of this class of assets. The owner has full superuser permissions
* over this asset, but may later change and configure the permissions using
* `transfer_ownership` and `set_team`.
@@ -4474,8 +4663,6 @@ declare module '@polkadot/api-base/types/submittable' {
*
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
* asset.
*
* The asset class must be frozen before calling `start_destroy`.
**/
startDestroy: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
/**
@@ -4549,6 +4736,25 @@ declare module '@polkadot/api-base/types/submittable' {
* `target`.
**/
transfer: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, Compact<u128>]>;
/**
* Transfer the entire transferable balance from the caller asset account.
*
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
* any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
* transferred by this function. To ensure that this function results in a killed account,
* you might need to prepare the account by removing any reference counters, storage
* deposits, etc...
*
* The dispatch origin of this call must be Signed.
*
* - `id`: The identifier of the asset for the account holding a deposit.
* - `dest`: The recipient of the transfer.
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
* of the funds the asset account has, causing the sender asset account to be killed
* (false), or transfer everything except at least the minimum balance, which will
* guarantee to keep the sender asset account alive (true).
**/
transferAll: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, bool]>;
/**
* Transfer some asset balance from a previously delegated account to some third-party
* account.
@@ -5212,6 +5418,109 @@ declare module '@polkadot/api-base/types/submittable' {
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
revive: {
/**
* Makes a call to an account, optionally transferring some balance.
*
* # Parameters
*
* * `dest`: Address of the contract to call.
* * `value`: The balance to transfer from the `origin` to `dest`.
* * `gas_limit`: The gas limit enforced when executing the constructor.
* * `storage_deposit_limit`: The maximum amount of balance that can be charged from the
* caller to pay for the storage consumed.
* * `data`: The input data to pass to the contract.
*
* * If the account is a smart-contract account, the associated code will be
* executed and any value will be transferred.
* * If the account is a regular account, any value will be transferred.
* * If no account exists and the call value is not less than `existential_deposit`,
* a regular account will be created and any value will be transferred.
**/
call: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, storageDepositLimit: Compact<u128> | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, SpWeightsWeightV2Weight, Compact<u128>, Bytes]>;
/**
* Instantiates a contract from a previously deployed wasm binary.
*
* This function is identical to [`Self::instantiate_with_code`] but without the
* code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
* must be supplied.
**/
instantiate: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, storageDepositLimit: Compact<u128> | AnyNumber | Uint8Array, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, SpWeightsWeightV2Weight, Compact<u128>, H256, Bytes, Bytes]>;
/**
* Instantiates a new contract from the supplied `code` optionally transferring
* some balance.
*
* This dispatchable has the same effect as calling [`Self::upload_code`] +
* [`Self::instantiate`]. Bundling them together provides efficiency gains. Please
* also check the documentation of [`Self::upload_code`].
*
* # Parameters
*
* * `value`: The balance to transfer from the `origin` to the newly created contract.
* * `gas_limit`: The gas limit enforced when executing the constructor.
* * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
* from the caller to pay for the storage consumed.
* * `code`: The contract code to deploy in raw bytes.
* * `data`: The input data to pass to the contract constructor.
* * `salt`: Used for the address derivation. See [`Pallet::contract_address`].
*
* Instantiation is executed as follows:
*
* - The supplied `code` is deployed, and a `code_hash` is created for that code.
* - If the `code_hash` already exists on the chain the underlying `code` will be shared.
* - The destination address is computed based on the sender, code_hash and the salt.
* - The smart-contract account is created at the computed address.
* - The `value` is transferred to the new account.
* - The `deploy` function is executed in the context of the newly-created account.
**/
instantiateWithCode: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, storageDepositLimit: Compact<u128> | AnyNumber | Uint8Array, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, SpWeightsWeightV2Weight, Compact<u128>, Bytes, Bytes, Bytes]>;
/**
* When a migration is in progress, this dispatchable can be used to run migration steps.
* Calls that contribute to advancing the migration have their fees waived, as it's helpful
* for the chain. Note that while the migration is in progress, the pallet will also
* leverage the `on_idle` hooks to run migration steps.
**/
migrate: AugmentedSubmittable<(weightLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpWeightsWeightV2Weight]>;
/**
* Remove the code stored under `code_hash` and refund the deposit to its owner.
*
* A code can only be removed by its original uploader (its owner) and only if it is
* not used by any contract.
**/
removeCode: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
/**
* Privileged function that changes the code of an existing contract.
*
* This takes care of updating refcounts and all other necessary operations. Returns
* an error if either the `code_hash` or `dest` do not exist.
*
* # Note
*
* This does **not** change the address of the contract in question. This means
* that the contract address is no longer derived from its code hash after calling
* this dispatchable.
**/
setCode: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, H256]>;
/**
* Upload new `code` without instantiating a contract from it.
*
* If the code does not already exist a deposit is reserved from the caller
* and unreserved only when [`Self::remove_code`] is called. The size of the reserve
* depends on the size of the supplied `code`.
*
* # Note
*
* Anyone can instantiate a contract from any uploaded code and thus prevent its removal.
* To avoid this situation a constructor could employ access control so that it can
* only be instantiated by permissioned entities. The same is true when uploading
* through [`Self::instantiate_with_code`].
**/
uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Compact<u128>]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
rootTesting: {
/**
* A dispatch that will fill the block weight up to the given ratio.
@@ -5707,7 +6016,8 @@ declare module '@polkadot/api-base/types/submittable' {
* - Three extra DB entries.
*
* NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
* unless the `origin` falls below _existential deposit_ and gets removed as dust.
* unless the `origin` falls below _existential deposit_ (or equal to 0) and gets removed
* as dust.
**/
bond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, payee: PalletStakingRewardDestination | { Staked: any } | { Stash: any } | { Controller: any } | { Account: any } | { None: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, PalletStakingRewardDestination]>;
/**
@@ -5928,6 +6238,7 @@ declare module '@polkadot/api-base/types/submittable' {
*
* 1. the `total_balance` of the stash is below existential deposit.
* 2. or, the `ledger.total` of the stash is below existential deposit.
* 3. or, existential deposit is zero and either `total_balance` or `ledger.total` is zero.
*
* The former can happen in cases like a slash; the latter when a fully unbonded account
* is still receiving staking rewards in `RewardDestination::Staked`.
@@ -6647,26 +6958,6 @@ declare module '@polkadot/api-base/types/submittable' {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
treasury: {
/**
* Approve a proposal.
*
* ## Dispatch Origin
*
* Must be [`Config::ApproveOrigin`].
*
* ## Details
*
* At a later time, the proposal will be allocated to the beneficiary and the original
* deposit will be returned.
*
* ### Complexity
* - O(1).
*
* ## Events
*
* No events are emitted from this dispatch.
**/
approveProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
/**
* Check the status of the spend and remove it from the storage if processed.
*
@@ -6694,7 +6985,7 @@ declare module '@polkadot/api-base/types/submittable' {
*
* ## Dispatch Origin
*
* Must be signed.
* Must be signed
*
* ## Details
*
@@ -6711,43 +7002,6 @@ declare module '@polkadot/api-base/types/submittable' {
* Emits [`Event::Paid`] if successful.
**/
payout: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* Put forward a suggestion for spending.
*
* ## Dispatch Origin
*
* Must be signed.
*
* ## Details
* A deposit proportional to the value is reserved and slashed if the proposal is rejected.
* It is returned once the proposal is awarded.
*
* ### Complexity
* - O(1)
*
* ## Events
*
* Emits [`Event::Proposed`] if successful.
**/
proposeSpend: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress]>;
/**
* Reject a proposed spend.
*
* ## Dispatch Origin
*
* Must be [`Config::RejectOrigin`].
*
* ## Details
* The original deposit will be slashed.
*
* ### Complexity
* - O(1)
*
* ## Events
*
* Emits [`Event::Rejected`] if successful.
**/
rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
/**
* Force a previously approved proposal to be removed from the approval queue.
*
+5 -5
View File
@@ -18,13 +18,13 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "15.0.2",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "11.0.2",
"@polkadot/types": "11.0.2",
"@polkadot/util": "^12.6.2",
"@polkadot/rpc-core": "15.0.2",
"@polkadot/types": "15.0.2",
"@polkadot/util": "^13.2.3",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
"tslib": "^2.8.0"
}
}
+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: '11.0.2' };
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '15.0.2' };
+23 -1
View File
@@ -3,7 +3,7 @@
import type { Observable } from 'rxjs';
import type { AccountId, Address, ApplyExtrinsicResult, BlockNumber, Call, DispatchError, DispatchInfo, EventRecord, Extrinsic, ExtrinsicStatus, Hash, RuntimeDispatchInfo } from '@polkadot/types/interfaces';
import type { AnyFunction, AnyNumber, AnyTuple, Callback, CallBase, Codec, IExtrinsicEra, IKeyringPair, ISubmittableResult, Signer } from '@polkadot/types/types';
import type { AnyFunction, AnyNumber, AnyTuple, AnyU8a, Callback, CallBase, Codec, IExtrinsicEra, IKeyringPair, ISubmittableResult, Signer } from '@polkadot/types/types';
import type { ApiTypes, EmptyBase, PromiseOrObs } from './base.js';
export type AugmentedSubmittable<T extends AnyFunction, A extends AnyTuple = AnyTuple> = T & CallBase<A>;
@@ -17,6 +17,9 @@ export interface SignerOptions {
signer?: Signer;
tip?: AnyNumber;
assetId?: AnyNumber | object;
mode?: AnyNumber;
metadataHash?: AnyU8a;
withSignedTransaction?: boolean;
}
export type SubmittableDryRunResult<ApiType extends ApiTypes> =
@@ -64,8 +67,27 @@ export interface SubmittableExtrinsic<ApiType extends ApiTypes, R extends ISubmi
send (statusCb: Callback<R>): SubmittableResultSubscription<ApiType, R>;
/**
* @description Sign and broadcast the constructued transaction.
*
* Note for injected signers:
* As of v12.0.2 and up the `SignerResult` return type for `signPayload` allows for the `signedTransaction` field.
* This allows the signer to input a signed transaction that will modify the payload. This
* The api will ensure that the Call Data is not changed. This allows for the signer to modify the payload to add
* things like `mode`, and `metadataHash` for signedExtensions such as `CheckMetadataHash`.
*/
signAsync (account: AddressOrPair, _options?: Partial<SignerOptions>): PromiseOrObs<ApiType, this>;
/**
* @description Sign and broadcast the constructued transaction.
*
* Note for injected signers:
* As of v12.0.1 and up the `SignerResult` return type for `signPayload` allows for the `signedTransaction` field.
* This allows the signer to input a signed transaction that will be directly broadcasted. This
* bypasses the api adding the signature to the payload. The api will ensure that the Call Data is not changed before it broadcasts the
* transaction. This allows for the signer to modify the payload to add things like `mode`, and `metadataHash` for
* signedExtensions such as `CheckMetadataHash`.
*/
signAndSend (account: AddressOrPair, options?: Partial<SignerOptions>): SubmittableResultResult<ApiType, R>;
signAndSend (account: AddressOrPair, statusCb: Callback<R>): SubmittableResultSubscription<ApiType>;
+12 -12
View File
@@ -18,22 +18,22 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "15.0.2",
"main": "index.js",
"dependencies": {
"@polkadot/api": "11.0.2",
"@polkadot/api-augment": "11.0.2",
"@polkadot/types": "11.0.2",
"@polkadot/types-codec": "11.0.2",
"@polkadot/types-create": "11.0.2",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@polkadot/api": "15.0.2",
"@polkadot/api-augment": "15.0.2",
"@polkadot/types": "15.0.2",
"@polkadot/types-codec": "15.0.2",
"@polkadot/types-create": "15.0.2",
"@polkadot/util": "^13.2.3",
"@polkadot/util-crypto": "^13.2.3",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
"tslib": "^2.8.0"
},
"devDependencies": {
"@polkadot/api-augment": "11.0.2",
"@polkadot/keyring": "^12.6.2",
"@polkadot/types-support": "11.0.2"
"@polkadot/api-augment": "15.0.2",
"@polkadot/keyring": "^13.2.3",
"@polkadot/types-support": "15.0.2"
}
}
+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: '11.0.2' };
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '15.0.2' };
+15 -15
View File
@@ -18,25 +18,25 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "15.0.2",
"main": "index.js",
"dependencies": {
"@polkadot/api": "11.0.2",
"@polkadot/api-augment": "11.0.2",
"@polkadot/api-base": "11.0.2",
"@polkadot/rpc-core": "11.0.2",
"@polkadot/types": "11.0.2",
"@polkadot/types-codec": "11.0.2",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@polkadot/api": "15.0.2",
"@polkadot/api-augment": "15.0.2",
"@polkadot/api-base": "15.0.2",
"@polkadot/rpc-core": "15.0.2",
"@polkadot/types": "15.0.2",
"@polkadot/types-codec": "15.0.2",
"@polkadot/util": "^13.2.3",
"@polkadot/util-crypto": "^13.2.3",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
"tslib": "^2.8.0"
},
"devDependencies": {
"@polkadot/api": "11.0.2",
"@polkadot/api-augment": "11.0.2",
"@polkadot/rpc-augment": "11.0.2",
"@polkadot/rpc-provider": "11.0.2",
"@polkadot/types-support": "11.0.2"
"@polkadot/api": "15.0.2",
"@polkadot/api-augment": "15.0.2",
"@polkadot/rpc-augment": "15.0.2",
"@polkadot/rpc-provider": "15.0.2",
"@polkadot/types-support": "15.0.2"
}
}
@@ -24,7 +24,7 @@ export function accountId (instanceId: string, api: DeriveApi): (address?: Addre
: decodeAddress((address || '').toString());
if (decoded.length > 8) {
return of(api.registry.createType('AccountId', decoded));
return of(api.registry.createType(decoded.length === 20 ? 'AccountId20' : 'AccountId', decoded));
}
const accountIndex = api.registry.createType('AccountIndex', decoded);
@@ -34,7 +34,7 @@ export function idAndIndex (instanceId: string, api: DeriveApi): (address?: Addr
: decodeAddress((address || '').toString());
if (decoded.length > 8) {
const accountId = api.registry.createType('AccountId', decoded);
const accountId = api.registry.createType(decoded.length === 20 ? 'AccountId20' : 'AccountId', decoded);
return api.derive.accounts.idToIndex(accountId).pipe(
map((accountIndex): AccountIdAndIndex => [accountId, accountIndex])
+23 -3
View File
@@ -2,8 +2,8 @@
// SPDX-License-Identifier: Apache-2.0
import type { Observable } from 'rxjs';
import type { Bytes, Data } from '@polkadot/types';
import type { AccountId } from '@polkadot/types/interfaces';
import type { Bytes, Data, Struct } from '@polkadot/types';
import type { AccountId, H160 } from '@polkadot/types/interfaces';
import type { PalletIdentityLegacyIdentityInfo, PalletIdentityRegistration } from '@polkadot/types/lookup';
import type { Option } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
@@ -17,9 +17,26 @@ import { firstMemo, memo } from '../util/index.js';
type IdentityInfoAdditional = PalletIdentityLegacyIdentityInfo['additional'][0];
interface PeopleIdentityInfo extends Struct {
display: Data;
legal: Data;
web: Data;
matrix: Data;
email: Data;
pgpFingerprint: Option<H160>;
image: Data;
twitter: Data;
github: Data;
discord: Data;
}
const UNDEF_HEX = { toHex: () => undefined };
function dataAsString (data: Data): string | undefined {
if (!data) {
return data;
}
return data.isRaw
? u8aToString(data.asRaw.toU8a(true))
: data.isNone
@@ -58,13 +75,16 @@ function extractIdentity (identityOfOpt?: Option<ITuple<[PalletIdentityRegistrat
const topDisplay = dataAsString(info.display);
return {
discord: dataAsString((info as unknown as PeopleIdentityInfo).discord),
display: (superOf && dataAsString(superOf[1])) || topDisplay,
displayParent: superOf && topDisplay,
email: dataAsString(info.email),
github: dataAsString((info as unknown as PeopleIdentityInfo).github),
image: dataAsString(info.image),
judgements,
legal: dataAsString(info.legal),
other: extractOther(info.additional),
matrix: dataAsString((info as unknown as PeopleIdentityInfo).matrix),
other: info.additional ? extractOther(info.additional) : {},
parent: superOf?.[0],
pgp: info.pgpFingerprint.unwrapOr(UNDEF_HEX).toHex(),
riot: dataAsString(info.riot),
@@ -8,11 +8,14 @@ export type AccountIdAndIndex = [AccountId | undefined, AccountIndex | undefined
export type AccountIndexes = Record<string, AccountIndex>;
export interface DeriveAccountRegistration {
discord?: string | undefined;
display?: string | undefined;
displayParent?: string | undefined;
email?: string | undefined;
github?: string | undefined;
image?: string | undefined;
legal?: string | undefined;
matrix?: string | undefined;
other?: Record<string, string> | undefined;
parent?: AccountId | undefined;
pgp?: string | undefined;
+53 -18
View File
@@ -4,6 +4,7 @@
import type { Observable } from 'rxjs';
import type { QueryableStorageEntry } from '@polkadot/api-base/types';
import type { AccountData, AccountId, AccountIndex, AccountInfo, Address, Balance, Index } from '@polkadot/types/interfaces';
import type { FrameSystemAccountInfo, PalletBalancesAccountData } from '@polkadot/types/lookup';
import type { ITuple } from '@polkadot/types/types';
import type { DeriveApi, DeriveBalancesAccount, DeriveBalancesAccountData } from '../types.js';
@@ -15,7 +16,9 @@ import { memo } from '../util/index.js';
type BalanceResult = [Balance, Balance, Balance, Balance];
type Result = [Index, BalanceResult[]];
type Result = [Index, BalanceResult[], AccountType];
interface AccountType { isFrameAccountData: boolean }
type DeriveCustomAccount = DeriveApi['derive'] & Record<string, {
customAccount?: DeriveApi['query']['balances']['account']
@@ -25,24 +28,38 @@ function zeroBalance (api: DeriveApi) {
return api.registry.createType('Balance');
}
function getBalance (api: DeriveApi, [freeBalance, reservedBalance, frozenFee, frozenMisc]: BalanceResult): DeriveBalancesAccountData {
function getBalance (api: DeriveApi, [freeBalance, reservedBalance, frozenFeeOrFrozen, frozenMiscOrFlags]: BalanceResult, accType: AccountType): DeriveBalancesAccountData {
const votingBalance = api.registry.createType('Balance', freeBalance.toBn());
if (accType.isFrameAccountData) {
return {
frameSystemAccountInfo: {
flags: frozenMiscOrFlags,
frozen: frozenFeeOrFrozen
},
freeBalance,
frozenFee: api.registry.createType('Balance', 0),
frozenMisc: api.registry.createType('Balance', 0),
reservedBalance,
votingBalance
};
}
return {
freeBalance,
frozenFee,
frozenMisc,
frozenFee: frozenFeeOrFrozen,
frozenMisc: frozenMiscOrFlags,
reservedBalance,
votingBalance
};
}
function calcBalances (api: DeriveApi, [accountId, [accountNonce, [primary, ...additional]]]: [AccountId, Result]): DeriveBalancesAccount {
function calcBalances (api: DeriveApi, [accountId, [accountNonce, [primary, ...additional], accType]]: [AccountId, Result]): DeriveBalancesAccount {
return objectSpread({
accountId,
accountNonce,
additional: additional.map((b) => getBalance(api, b))
}, getBalance(api, primary));
additional: additional.map((b) => getBalance(api, b, accType))
}, getBalance(api, primary, accType));
}
// old
@@ -54,7 +71,8 @@ function queryBalancesFree (api: DeriveApi, accountId: AccountId): Observable<Re
]).pipe(
map(([freeBalance, reservedBalance, accountNonce]): Result => [
accountNonce,
[[freeBalance, reservedBalance, zeroBalance(api), zeroBalance(api)]]
[[freeBalance, reservedBalance, zeroBalance(api), zeroBalance(api)]],
{ isFrameAccountData: false }
])
);
}
@@ -62,7 +80,8 @@ function queryBalancesFree (api: DeriveApi, accountId: AccountId): Observable<Re
function queryNonceOnly (api: DeriveApi, accountId: AccountId): Observable<Result> {
const fill = (nonce: Index): Result => [
nonce,
[[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]]
[[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]],
{ isFrameAccountData: false }
];
return isFunction(api.query.system.account)
@@ -83,7 +102,8 @@ function queryBalancesAccount (api: DeriveApi, accountId: AccountId, modules: st
const extract = (nonce: Index, data: AccountData[]): Result => [
nonce,
data.map(({ feeFrozen, free, miscFrozen, reserved }): BalanceResult => [free, reserved, feeFrozen, miscFrozen])
data.map(({ feeFrozen, free, miscFrozen, reserved }): BalanceResult => [free, reserved, feeFrozen, miscFrozen]),
{ isFrameAccountData: false }
];
// NOTE this is for the first case where we do have instances specified
@@ -106,7 +126,7 @@ function queryBalancesAccount (api: DeriveApi, accountId: AccountId, modules: st
function querySystemAccount (api: DeriveApi, accountId: AccountId): Observable<Result> {
// AccountInfo is current, support old, eg. Edgeware
return api.query.system.account<AccountInfo | ITuple<[Index, AccountData]>>(accountId).pipe(
return api.query.system.account<AccountInfo | FrameSystemAccountInfo | ITuple<[Index, AccountData]>>(accountId).pipe(
map((infoOrTuple): Result => {
const data = (infoOrTuple as AccountInfo).nonce
? (infoOrTuple as AccountInfo).data
@@ -117,16 +137,30 @@ function querySystemAccount (api: DeriveApi, accountId: AccountId): Observable<R
if (!data || data.isEmpty) {
return [
nonce,
[[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]]
[[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]],
{ isFrameAccountData: false }
];
}
const { feeFrozen, free, miscFrozen, reserved } = data;
const isFrameType = !!(infoOrTuple as FrameSystemAccountInfo).data.frozen;
return [
nonce,
[[free, reserved, feeFrozen, miscFrozen]]
];
if (isFrameType) {
const { flags, free, frozen, reserved } = (data as unknown as PalletBalancesAccountData);
return [
nonce,
[[free, reserved, frozen, flags]],
{ isFrameAccountData: true }
];
} else {
const { feeFrozen, free, miscFrozen, reserved } = data;
return [
nonce,
[[free, reserved, feeFrozen, miscFrozen]],
{ isFrameAccountData: false }
];
}
})
);
}
@@ -168,7 +202,8 @@ export function account (instanceId: string, api: DeriveApi): (address: AccountI
])
: of([api.registry.createType('AccountId'), [
api.registry.createType('Index'),
[[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]]
[[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]],
{ isFrameAccountData: false }
]])
)
),
+17
View File
@@ -54,11 +54,28 @@ function calcLocked (api: DeriveApi, bestNumber: BlockNumber, locks: (PalletBala
function calcShared (api: DeriveApi, bestNumber: BlockNumber, data: DeriveBalancesAccountData, locks: (PalletBalancesBalanceLock | BalanceLockTo212)[]): DeriveBalancesAllAccountData {
const { allLocked, lockedBalance, lockedBreakdown, vestingLocked } = calcLocked(api, bestNumber, locks);
let transferable = null;
if (data?.frameSystemAccountInfo?.frozen) {
const { frameSystemAccountInfo, freeBalance, reservedBalance } = data;
const noFrozenReserved = frameSystemAccountInfo.frozen.isZero() && reservedBalance.isZero();
const ED = api.consts.balances.existentialDeposit;
const maybeED = noFrozenReserved ? new BN(0) : ED;
const frozenReserveDif = frameSystemAccountInfo.frozen.sub(reservedBalance);
transferable = api.registry.createType(
'Balance',
allLocked
? 0
: freeBalance.sub(bnMax(maybeED, frozenReserveDif))
);
}
return objectSpread({}, data, {
availableBalance: api.registry.createType('Balance', allLocked ? 0 : bnMax(new BN(0), data?.freeBalance ? data.freeBalance.sub(lockedBalance) : new BN(0))),
lockedBalance,
lockedBreakdown,
transferable,
vestingLocked
});
}
+29
View File
@@ -6,6 +6,10 @@ import type { PalletBalancesBalanceLock, PalletBalancesReserveData } from '@polk
import type { BN } from '@polkadot/util';
export interface DeriveBalancesAccountData {
frameSystemAccountInfo?: {
frozen: Balance;
flags: Balance;
}
freeBalance: Balance;
frozenFee: Balance;
frozenMisc: Balance;
@@ -20,9 +24,34 @@ export interface DeriveBalancesAccount extends DeriveBalancesAccountData {
}
export interface DeriveBalancesAllAccountData extends DeriveBalancesAccountData {
/**
* Calculated available balance. This uses the formula: max(0, free - locked)
* This is only correct when the return type of `api.query.system.account` is `AccountInfo` which was replaced by `FrameSystemAccountInfo`.
* See `transferable` for the correct balance calculation.
*
* ref: https://github.com/paritytech/substrate/pull/12951
*/
availableBalance: Balance;
/**
* The amount of balance locked away.
*/
lockedBalance: Balance;
/**
* The breakdown of locked balances.
*/
lockedBreakdown: (PalletBalancesBalanceLock | BalanceLockTo212)[];
/**
* Calculated transferable balance. This uses the formula: free - max(maybeEd, frozen - reserve)
* Where `maybeEd` means if there is no frozen and reserves it will be zero, else it will be the existential deposit.
* This is only correct when the return type of `api.query.system.account` is `FrameSystemAccountInfo`.
* Which is the most up to date calulcation for transferrable balances.
*
* ref: https://github.com/paritytech/polkadot-sdk/issues/1833
*/
transferable: Balance | null;
/**
* Amount locked in vesting.
*/
vestingLocked: Balance;
}
@@ -147,7 +147,7 @@ describe('bounties derive', () => {
council: {
proposals: () => of([
{ proposal: createProposal(api.tx.bounties.approveBounty(1)) },
{ proposal: createProposal(api.tx.treasury.approveProposal(1)) }] as DeriveCollectiveProposal[])
{ proposal: api.tx.treasury['approveProposal'] && createProposal(api.tx.treasury['approveProposal'](1)) }] as DeriveCollectiveProposal[])
}
}
} as unknown as DeriveApi;
+2 -2
View File
@@ -5,7 +5,7 @@ import type { Observable } from 'rxjs';
import type { QueryableStorage } from '@polkadot/api-base/types';
import type { Compact, Vec } from '@polkadot/types';
import type { AccountId, BlockNumber, Header } from '@polkadot/types/interfaces';
import type { SpCoreSr25519Public } from '@polkadot/types/lookup';
import type { PalletImOnlineSr25519AppSr25519Public } from '@polkadot/types/lookup';
import type { Codec, IOption } from '@polkadot/types/types';
import type { DeriveApi } from '../types.js';
@@ -16,7 +16,7 @@ import { memo, unwrapBlockNumber } from '../util/index.js';
export type BlockNumberDerive = (instanceId: string, api: DeriveApi) => () => Observable<BlockNumber>;
type OptionMapping = IOption<{ account: AccountId } & Codec>;
type OptionNimbus = IOption<{ nimbus: SpCoreSr25519Public } & Codec>;
type OptionNimbus = IOption<{ nimbus: PalletImOnlineSr25519AppSr25519Public } & Codec>;
export function createBlockNumberDerive <T extends { number: Compact<BlockNumber> | BlockNumber }> (fn: (api: DeriveApi) => Observable<T>): BlockNumberDerive {
return (instanceId: string, api: DeriveApi) =>
+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: '11.0.2' };
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '15.0.2' };
+19 -5
View File
@@ -4,7 +4,7 @@
import type { Observable } from 'rxjs';
import type { Option, u32 } from '@polkadot/types';
import type { EraIndex } from '@polkadot/types/interfaces';
import type { SpStakingExposurePage } from '@polkadot/types/lookup';
import type { SpStakingExposure, SpStakingExposurePage, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
import type { AnyNumber } from '@polkadot/types-codec/types';
import type { DeriveApi, DeriveOwnExposure } from '../types.js';
@@ -15,13 +15,27 @@ import { erasHistoricApplyAccount } from './util.js';
export function _ownExposures (instanceId: string, api: DeriveApi): (accountId: Uint8Array | string, eras: EraIndex[], withActive: boolean, page: u32 | AnyNumber) => Observable<DeriveOwnExposure[]> {
return memo(instanceId, (accountId: Uint8Array | string, eras: EraIndex[], _withActive: boolean, page: u32 | AnyNumber): Observable<DeriveOwnExposure[]> => {
const emptyStakingExposure = api.registry.createType<SpStakingExposure>('Exposure');
// The reason we don't explicitly make the actual types is for compatibility. If the chain doesn't have the noted type it will fail
// on construction. Therefore we just make an empty option.
const emptyOptionPage = api.registry.createType<Option<SpStakingExposurePage>>('Option<Null>');
const emptyOptionMeta = api.registry.createType<Option<SpStakingPagedExposureMetadata>>('Option<Null>');
return eras.length
? combineLatest([
// Backwards and forward compat for historical integrity when using `erasHistoricApplyAccount`
combineLatest(eras.map((e) => api.query.staking.erasStakersClipped(e, accountId))),
combineLatest(eras.map((e) => api.query.staking.erasStakers(e, accountId))),
combineLatest(eras.map((e) => api.query.staking.erasStakersPaged<Option<SpStakingExposurePage>>(e, accountId, page))),
combineLatest(eras.map((e) => api.query.staking.erasStakersOverview(e, accountId)))
api.query.staking.erasStakersClipped
? combineLatest(eras.map((e) => api.query.staking.erasStakersClipped(e, accountId)))
: of(eras.map((_) => emptyStakingExposure)),
api.query.staking.erasStakers
? combineLatest(eras.map((e) => api.query.staking.erasStakers(e, accountId)))
: of(eras.map((_) => emptyStakingExposure)),
api.query.staking.erasStakersPaged
? combineLatest(eras.map((e) => api.query.staking.erasStakersPaged<Option<SpStakingExposurePage>>(e, accountId, page)))
: of(eras.map((_) => emptyOptionPage)),
api.query.staking.erasStakersOverview
? combineLatest(eras.map((e) => api.query.staking.erasStakersOverview(e, accountId)))
: of(eras.map((_) => emptyOptionMeta))
]).pipe(
map(([clp, exp, paged, expMeta]): DeriveOwnExposure[] =>
eras.map((era, index) => ({ clipped: clp[index], era, exposure: exp[index], exposureMeta: expMeta[index], exposurePaged: paged[index] }))
+76 -32
View File
@@ -2,9 +2,9 @@
// SPDX-License-Identifier: Apache-2.0
import type { Observable } from 'rxjs';
import type { Option, u32, Vec } from '@polkadot/types';
import type { Option, StorageKey, u32, Vec } from '@polkadot/types';
import type { AccountId, EraIndex } from '@polkadot/types/interfaces';
import type { PalletStakingNominations, PalletStakingRewardDestination, PalletStakingStakingLedger, PalletStakingValidatorPrefs, SpStakingExposurePage, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
import type { PalletStakingNominations, PalletStakingRewardDestination, PalletStakingStakingLedger, PalletStakingValidatorPrefs, SpStakingExposure, SpStakingExposurePage, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
import type { AnyNumber } from '@polkadot/types-codec/types';
import type { DeriveApi, DeriveStakingQuery, StakingQueryFlags } from '../types.js';
@@ -24,11 +24,64 @@ function filterClaimedRewards (api: DeriveApi, cl: number[]): Vec<u32> {
return api.registry.createType('Vec<u32>', cl.filter((c) => c !== -1));
}
function parseDetails (api: DeriveApi, stashId: AccountId, controllerIdOpt: Option<AccountId> | null, nominatorsOpt: Option<PalletStakingNominations>, rewardDestinationOpts: Option<PalletStakingRewardDestination> | PalletStakingRewardDestination, validatorPrefs: PalletStakingValidatorPrefs, exposure: Option<SpStakingExposurePage>, stakingLedgerOpt: Option<PalletStakingStakingLedger>, exposureMeta: Option<SpStakingPagedExposureMetadata>, claimedRewards: number[]): DeriveStakingQuery {
function filterRewards (stashIds: AccountId[], eras: number[], claimedRewards: [StorageKey<[u32, AccountId]>, Vec<u32>][], stakersOverview: [StorageKey<[u32, AccountId]>, Option<SpStakingPagedExposureMetadata>][]): number[][] {
const claimedData: Record<string, Map<number, u32[]>> = {};
const overviewData: Record<string, Map<number, u32>> = {};
const ids = stashIds.map((i) => i.toString());
claimedRewards.forEach(([keys, rewards]) => {
const id = keys.args[1].toString();
const era = keys.args[0].toNumber();
if (ids.includes(id)) {
if (claimedData[id]) {
claimedData[id].set(era, rewards.toArray());
} else {
claimedData[id] = new Map();
claimedData[id].set(era, rewards.toArray());
}
}
});
stakersOverview.forEach(([keys, overview]) => {
const id = keys.args[1].toString();
const era = keys.args[0].toNumber();
if (ids.includes(id) && overview.isSome) {
if (overviewData[id]) {
overviewData[id].set(era, overview.unwrap().pageCount);
} else {
overviewData[id] = new Map();
overviewData[id].set(era, overview.unwrap().pageCount);
}
}
});
return stashIds.map((id) => {
const rewardsPerEra = claimedData[id.toString()];
const overviewPerEra = overviewData[id.toString()];
return eras.map((era) => {
if (rewardsPerEra && rewardsPerEra.has(era) && overviewPerEra && overviewPerEra.has(era)) {
const rewards = rewardsPerEra.get(era) as unknown as u32[];
const pageCount = overviewPerEra.get(era) as unknown as u32;
return rewards.length === pageCount.toNumber()
? era
: -1;
}
return -1;
});
});
}
function parseDetails (api: DeriveApi, stashId: AccountId, controllerIdOpt: Option<AccountId> | null, nominatorsOpt: Option<PalletStakingNominations>, rewardDestinationOpts: Option<PalletStakingRewardDestination> | PalletStakingRewardDestination, validatorPrefs: PalletStakingValidatorPrefs, exposure: Option<SpStakingExposurePage>, stakingLedgerOpt: Option<PalletStakingStakingLedger>, exposureMeta: Option<SpStakingPagedExposureMetadata>, claimedRewards: number[], exposureEraStakers: SpStakingExposure): DeriveStakingQuery {
return {
accountId: stashId,
claimedRewardsEras: filterClaimedRewards(api, claimedRewards),
controllerId: controllerIdOpt?.unwrapOr(null) || null,
exposureEraStakers,
exposureMeta,
exposurePaged: exposure,
nominators: nominatorsOpt.isSome
@@ -64,12 +117,15 @@ function getLedgers (api: DeriveApi, optIds: (Option<AccountId> | null)[], { wit
);
}
function getStashInfo (api: DeriveApi, stashIds: AccountId[], activeEra: EraIndex, { withClaimedRewardsEras, withController, withDestination, withExposure, withExposureMeta, withLedger, withNominations, withPrefs }: StakingQueryFlags, page: u32 | AnyNumber): Observable<[(Option<AccountId> | null)[], Option<PalletStakingNominations>[], Option<PalletStakingRewardDestination>[], PalletStakingValidatorPrefs[], Option<SpStakingExposurePage>[], Option<SpStakingPagedExposureMetadata>[], number[][]]> {
function getStashInfo (api: DeriveApi, stashIds: AccountId[], activeEra: EraIndex, { withClaimedRewardsEras, withController, withDestination, withExposure, withExposureErasStakersLegacy, withExposureMeta, withLedger, withNominations, withPrefs }: StakingQueryFlags, page: u32 | AnyNumber): Observable<[(Option<AccountId> | null)[], Option<PalletStakingNominations>[], Option<PalletStakingRewardDestination>[], PalletStakingValidatorPrefs[], Option<SpStakingExposurePage>[], Option<SpStakingPagedExposureMetadata>[], number[][], SpStakingExposure[]]> {
const emptyNoms = api.registry.createType<Option<PalletStakingNominations>>('Option<Nominations>');
const emptyRewa = api.registry.createType<Option<PalletStakingRewardDestination>>('RewardDestination');
const emptyExpo = api.registry.createType<Option<SpStakingExposurePage>>('Option<SpStakingExposurePage>');
const emptyExpoEraStakers = api.registry.createType<SpStakingExposure>('Exposure');
const emptyPrefs = api.registry.createType<PalletStakingValidatorPrefs>('ValidatorPrefs');
const emptyExpoMeta = api.registry.createType<Option<SpStakingPagedExposureMetadata>>('Option<SpStakingPagedExposureMetadata>');
// The reason we don't explicitly make the actual types is for compatibility. If the chain doesn't have the noted type it will fail
// on construction. Therefore we just make an empty option.
const emptyExpo = api.registry.createType<Option<SpStakingExposurePage>>('Option<Null>');
const emptyExpoMeta = api.registry.createType<Option<SpStakingPagedExposureMetadata>>('Option<Null>');
const emptyClaimedRewards = [-1];
const depth = Number(api.consts.staking.historyDepth.toNumber());
@@ -94,45 +150,33 @@ function getStashInfo (api: DeriveApi, stashIds: AccountId[], activeEra: EraInde
withPrefs
? combineLatest(stashIds.map((s) => api.query.staking.validators(s)))
: of(stashIds.map(() => emptyPrefs)),
withExposure
withExposure && api.query.staking.erasStakersPaged
? combineLatest(stashIds.map((s) => api.query.staking.erasStakersPaged<Option<SpStakingExposurePage>>(activeEra, s, page)))
: of(stashIds.map(() => emptyExpo)),
withExposureMeta
withExposureMeta && api.query.staking.erasStakersOverview
? combineLatest(stashIds.map((s) => api.query.staking.erasStakersOverview(activeEra, s)))
: of(stashIds.map(() => emptyExpoMeta)),
withClaimedRewardsEras
? combineLatest(stashIds.map((s) =>
combineLatest([
combineLatest(eras.map((e) => api.query.staking.claimedRewards(e, s))),
combineLatest(eras.map((e) => api.query.staking.erasStakersOverview(e, s)))
]))
).pipe(
map((r) => {
return r.map(([stashClaimedEras, overview]) => {
// stashClaimedEras length will match the length of eras
return stashClaimedEras.map((claimedReward, idx) => {
const o = overview[idx].isSome && overview[idx].unwrap();
if (claimedReward.length === (o && o.pageCount.toNumber())) {
return eras[idx];
}
return -1;
});
});
})
withClaimedRewardsEras && api.query.staking.claimedRewards
? combineLatest([
api.query.staking.claimedRewards.entries<Vec<u32>>(),
api.query.staking.erasStakersOverview.entries<Option<SpStakingPagedExposureMetadata>>()
]).pipe(
map(([rewardsStorageVec, overviewStorageVec]) => filterRewards(stashIds, eras, rewardsStorageVec, overviewStorageVec))
)
: of(stashIds.map(() => emptyClaimedRewards))
: of(stashIds.map(() => emptyClaimedRewards)),
withExposureErasStakersLegacy && api.query.staking.erasStakers
? combineLatest(stashIds.map((s) => api.query.staking.erasStakers(activeEra, s)))
: of(stashIds.map(() => emptyExpoEraStakers))
]);
}
function getBatch (api: DeriveApi, activeEra: EraIndex, stashIds: AccountId[], flags: StakingQueryFlags, page: u32 | AnyNumber): Observable<DeriveStakingQuery[]> {
return getStashInfo(api, stashIds, activeEra, flags, page).pipe(
switchMap(([controllerIdOpt, nominatorsOpt, rewardDestination, validatorPrefs, exposure, exposureMeta, claimedRewardsEras]): Observable<DeriveStakingQuery[]> =>
switchMap(([controllerIdOpt, nominatorsOpt, rewardDestination, validatorPrefs, exposure, exposureMeta, claimedRewardsEras, exposureEraStakers]): Observable<DeriveStakingQuery[]> =>
getLedgers(api, controllerIdOpt, flags).pipe(
map((stakingLedgerOpts) =>
stashIds.map((stashId, index) =>
parseDetails(api, stashId, controllerIdOpt[index], nominatorsOpt[index], rewardDestination[index], validatorPrefs[index], exposure[index], stakingLedgerOpts[index], exposureMeta[index], claimedRewardsEras[index])
parseDetails(api, stashId, controllerIdOpt[index], nominatorsOpt[index], rewardDestination[index], validatorPrefs[index], exposure[index], stakingLedgerOpts[index], exposureMeta[index], claimedRewardsEras[index], exposureEraStakers[index])
)
)
)
@@ -29,7 +29,7 @@ function extractCompatRewards (claimedRewardsEras: Vec<u32>, ledger?: PalletStak
return claimedRewardsEras.toArray().concat(l);
}
function parseRewards (api: DeriveApi, stashId: AccountId, [erasPoints, erasPrefs, erasRewards]: ErasResult, exposures: DeriveStakerExposure[]): DeriveStakerReward[] {
function parseRewards (api: DeriveApi, stashId: AccountId, [erasPoints, erasPrefs, erasRewards]: ErasResult, exposures: DeriveStakerExposure[], claimedRewardsEras: Vec<u32>): DeriveStakerReward[] {
return exposures.map(({ era, isEmpty, isValidator, nominating, validators: eraValidators }): DeriveStakerReward => {
const { eraPoints, validators: allValPoints } = erasPoints.find((p) => p.era.eq(era)) || { eraPoints: BN_ZERO, validators: {} as DeriveEraValPoints };
const { eraReward } = erasRewards.find((r) => r.era.eq(era)) || { eraReward: api.registry.createType('Balance') };
@@ -84,6 +84,9 @@ function parseRewards (api: DeriveApi, stashId: AccountId, [erasPoints, erasPref
return {
era,
eraReward,
// This might not always be accurate as you need validator account information in order to see if the rewards have been claimed.
// This is possibly adjusted in `filterRewards` when need be.
isClaimed: claimedRewardsEras.some((c) => c.eq(era)),
isEmpty,
isValidator,
nominating,
@@ -150,11 +153,26 @@ function filterRewards (eras: EraIndex[], valInfo: [string, DeriveStakingQuery][
return true;
})
.filter(({ validators }) => Object.keys(validators).length !== 0)
.map((reward) =>
objectSpread({}, reward, {
.map((reward) => {
let isClaimed = reward.isClaimed;
const valKeys = Object.keys(reward.validators);
if (!reward.isClaimed && valKeys.length) {
for (const key of valKeys) {
const info = queryValidators.find((i) => i.accountId.toString() === key);
if (info) {
isClaimed = info.claimedRewardsEras.toArray().some((era) => era.eq(reward.era));
break;
}
}
}
return objectSpread({}, reward, {
isClaimed,
nominators: reward.nominating.filter((n) => reward.validators[n.validatorId])
})
);
});
});
}
export function _stakerRewardsEras (instanceId: string, api: DeriveApi): (eras: EraIndex[], withActive?: boolean) => Observable<ErasResult> {
@@ -168,17 +186,21 @@ export function _stakerRewardsEras (instanceId: string, api: DeriveApi): (eras:
}
export function _stakerRewards (instanceId: string, api: DeriveApi): (accountIds: (Uint8Array | string)[], eras: EraIndex[], withActive?: boolean) => Observable<DeriveStakerReward[][]> {
return memo(instanceId, (accountIds: (Uint8Array | string)[], eras: EraIndex[], withActive = false): Observable<DeriveStakerReward[][]> =>
combineLatest([
api.derive.staking.queryMulti(accountIds, { withLedger: true }),
api.derive.staking._stakerExposures(accountIds, eras, withActive),
api.derive.staking._stakerRewardsEras(eras, withActive)
return memo(instanceId, (accountIds: (Uint8Array | string)[], eras: EraIndex[], withActive = false): Observable<DeriveStakerReward[][]> => {
// Ensures that when number or string types are passed in they are sanitized
// Ref: https://github.com/polkadot-js/api/issues/5910
const sanitizedEras: EraIndex[] = eras.map((e) => typeof e === 'number' || typeof e === 'string' ? api.registry.createType('u32', e) : e);
return combineLatest([
api.derive.staking.queryMulti(accountIds, { withClaimedRewardsEras: true, withLedger: true }),
api.derive.staking._stakerExposures(accountIds, sanitizedEras, withActive),
api.derive.staking._stakerRewardsEras(sanitizedEras, withActive)
]).pipe(
switchMap(([queries, exposures, erasResult]): Observable<DeriveStakerReward[][]> => {
const allRewards = queries.map(({ claimedRewardsEras, stakingLedger, stashId }, index): DeriveStakerReward[] =>
(!stashId || (!stakingLedger && !claimedRewardsEras))
? []
: parseRewards(api, stashId, erasResult, exposures[index])
: parseRewards(api, stashId, erasResult, exposures[index], claimedRewardsEras)
);
if (withActive) {
@@ -208,7 +230,8 @@ export function _stakerRewards (instanceId: string, api: DeriveApi): (accountIds
)
);
})
)
);
}
);
}
+4
View File
@@ -93,6 +93,7 @@ export interface DeriveStakerRewardValidator {
export interface DeriveStakerReward {
era: EraIndex;
eraReward: Balance;
isClaimed: boolean;
isEmpty: boolean;
isValidator: boolean;
nominating: DeriveEraExposureNominating[];
@@ -118,6 +119,8 @@ export interface DeriveStakingValidators {
export interface DeriveStakingStash {
controllerId: AccountId | null;
// Legacy Support for erasStakers
exposureEraStakers: SpStakingExposure;
exposurePaged: Option<SpStakingExposurePage>;
exposureMeta: Option<SpStakingPagedExposureMetadata>;
nominators: AccountId[];
@@ -162,6 +165,7 @@ export interface StakingQueryFlags {
withController?: boolean;
withDestination?: boolean;
withExposure?: boolean;
withExposureErasStakersLegacy?: boolean,
withLedger?: boolean;
withNominations?: boolean;
withPrefs?: boolean;
+14 -4
View File
@@ -11,14 +11,24 @@ import { memo } from '../util/index.js';
export function nextElected (instanceId: string, api: DeriveApi): () => Observable<AccountId[]> {
return memo(instanceId, (): Observable<AccountId[]> =>
api.query.staking.erasStakersPaged
// Compatibility for future generation changes in staking.
api.query.staking.erasStakersOverview
? api.derive.session.indexes().pipe(
// only populate for next era in the last session, so track both here - entries are not
// subscriptions, so we need a trigger - currentIndex acts as that trigger to refresh
switchMap(({ currentEra }) => api.query.staking.erasStakersPaged.keys(currentEra)),
map((keys) => keys.map(({ args: [, accountId] }) => accountId))
switchMap(({ currentEra }) => api.query.staking.erasStakersOverview.keys(currentEra)),
// Dedupe any duplicates
map((keys) => [...new Set(keys.map(({ args: [, accountId] }) => accountId.toString()))].map((a) => api.registry.createType('AccountId', a)))
)
: api.query.staking['currentElected']<AccountId[]>()
: api.query.staking.erasStakers
? api.derive.session.indexes().pipe(
// only populate for next era in the last session, so track both here - entries are not
// subscriptions, so we need a trigger - currentIndex acts as that trigger to refresh
switchMap(({ currentEra }) => api.query.staking.erasStakers.keys(currentEra)),
// Dedupe any duplicates
map((keys) => [...new Set(keys.map(({ args: [, accountId] }) => accountId.toString()))].map((a) => api.registry.createType('AccountId', a)))
)
: api.query.staking['currentElected']<AccountId[]>()
);
}
@@ -23,9 +23,11 @@ function parseResult (api: DeriveApi, { allIds, allProposals, approvalIds, counc
const approvals: DeriveTreasuryProposal[] = [];
const proposals: DeriveTreasuryProposal[] = [];
const councilTreasury = councilProposals.filter(({ proposal }) =>
// FIXME `approveProposal` and `rejectProposal` have been removed in substrate and released in 1.14
// in favor of `spend`. See: https://github.com/paritytech/polkadot-sdk/pull/3820
proposal && (
api.tx.treasury.approveProposal.is(proposal) ||
api.tx.treasury.rejectProposal.is(proposal)
(api.tx.treasury['approveProposal'] && api.tx.treasury['approveProposal'].is(proposal)) ||
(api.tx.treasury['rejectProposal'] && api.tx.treasury['rejectProposal'].is(proposal))
)
);
+8 -4
View File
@@ -29,9 +29,13 @@ function latestNonce (api: DeriveApi, address: string): Observable<Index> {
}
function nextNonce (api: DeriveApi, address: string): Observable<Index> {
return api.rpc.system?.accountNextIndex
? api.rpc.system.accountNextIndex(address)
: latestNonce(api, address);
if (api.call.accountNonceApi) {
return api.call.accountNonceApi.accountNonce(address);
} else {
return api.rpc.system?.accountNextIndex
? api.rpc.system.accountNextIndex(address)
: latestNonce(api, address);
}
}
function signingHeader (api: DeriveApi): Observable<Header> {
@@ -76,7 +80,7 @@ function babeOrAuraPeriod (api: DeriveApi): BN | undefined {
(api.consts['aura'] as unknown as Aura)?.slotDuration ||
api.consts.timestamp?.minimumPeriod.muln(2);
return !period.isZero() ? period : undefined;
return period && period.isZero && !period.isZero() ? period : undefined;
}
export function signingInfo (_instanceId: string, api: DeriveApi): (address: string, nonce?: AnyNumber | Codec, era?: IExtrinsicEra | number) => Observable<Result> {
+2 -2
View File
@@ -10,7 +10,7 @@ interface CacheValue<T> {
x: number;
}
const CHACHE_EXPIRY = 7 * (24 * 60) * (60 * 1000);
const CACHE_EXPIRY = 7 * (24 * 60) * (60 * 1000);
let deriveCache: DeriveCache;
@@ -43,7 +43,7 @@ function clearCache (cache: DeriveCache): void {
const all: string[] = [];
cache.forEach((key: string, { x }: CacheValue<any>): void => {
((now - x) > CHACHE_EXPIRY) && all.push(key);
((now - x) > CACHE_EXPIRY) && all.push(key);
});
// don't do delete inside loop, just in-case
+18 -18
View File
@@ -18,29 +18,29 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "15.0.2",
"main": "index.js",
"dependencies": {
"@polkadot/api-augment": "11.0.2",
"@polkadot/api-base": "11.0.2",
"@polkadot/api-derive": "11.0.2",
"@polkadot/keyring": "^12.6.2",
"@polkadot/rpc-augment": "11.0.2",
"@polkadot/rpc-core": "11.0.2",
"@polkadot/rpc-provider": "11.0.2",
"@polkadot/types": "11.0.2",
"@polkadot/types-augment": "11.0.2",
"@polkadot/types-codec": "11.0.2",
"@polkadot/types-create": "11.0.2",
"@polkadot/types-known": "11.0.2",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@polkadot/api-augment": "15.0.2",
"@polkadot/api-base": "15.0.2",
"@polkadot/api-derive": "15.0.2",
"@polkadot/keyring": "^13.2.3",
"@polkadot/rpc-augment": "15.0.2",
"@polkadot/rpc-core": "15.0.2",
"@polkadot/rpc-provider": "15.0.2",
"@polkadot/types": "15.0.2",
"@polkadot/types-augment": "15.0.2",
"@polkadot/types-codec": "15.0.2",
"@polkadot/types-create": "15.0.2",
"@polkadot/types-known": "15.0.2",
"@polkadot/util": "^13.2.3",
"@polkadot/util-crypto": "^13.2.3",
"eventemitter3": "^5.0.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
"tslib": "^2.8.0"
},
"devDependencies": {
"@polkadot/api-augment": "11.0.2",
"@polkadot/types-support": "11.0.2"
"@polkadot/api-augment": "15.0.2",
"@polkadot/types-support": "15.0.2"
}
}
+104 -41
View File
@@ -4,11 +4,11 @@
import type { Observable } from 'rxjs';
import type { AugmentedCall, DeriveCustom, QueryableCalls } from '@polkadot/api-base/types';
import type { RpcInterface } from '@polkadot/rpc-core/types';
import type { Metadata, StorageKey, Text, u64 } from '@polkadot/types';
import type { Call, Hash, RuntimeVersion } from '@polkadot/types/interfaces';
import type { Metadata, StorageKey, Text, u64, Vec } from '@polkadot/types';
import type { Call, Hash, RuntimeApiMethodMetadataV15, RuntimeVersion } from '@polkadot/types/interfaces';
import type { DecoratedMeta } from '@polkadot/types/metadata/decorate/types';
import type { StorageEntry } from '@polkadot/types/primitive/types';
import type { AnyFunction, AnyJson, AnyTuple, CallFunction, Codec, DefinitionCallNamed, DefinitionRpc, DefinitionRpcSub, DefinitionsCall, DefinitionsCallEntry, DetectCodec, IMethod, IStorageKey, Registry, RegistryError, RegistryTypes } from '@polkadot/types/types';
import type { AnyFunction, AnyJson, AnyTuple, CallFunction, Codec, DefinitionCall, DefinitionCallNamed, DefinitionRpc, DefinitionRpcSub, DefinitionsCall, DefinitionsCallEntry, DetectCodec, IMethod, IStorageKey, Registry, RegistryError, RegistryTypes } from '@polkadot/types/types';
import type { HexString } from '@polkadot/util/types';
import type { SubmittableExtrinsic } from '../submittable/types.js';
import type { ApiDecoration, ApiInterfaceRx, ApiOptions, ApiTypes, AugmentedQuery, DecoratedErrors, DecoratedEvents, DecoratedRpc, DecorateMethod, GenericStorageEntryFunction, PaginationOptions, QueryableConsts, QueryableStorage, QueryableStorageEntry, QueryableStorageEntryAt, QueryableStorageMulti, QueryableStorageMultiArg, SubmittableExtrinsicFunction, SubmittableExtrinsics } from '../types/index.js';
@@ -153,6 +153,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
this._rpcCore = new RpcCore(this.#instanceId, this.#registry, {
isPedantic: this._options.isPedantic,
provider,
rpcCacheCapacity: this._options.rpcCacheCapacity,
userRpc: this._options.rpc
}) as (RpcCore & RpcInterface);
this._isConnected = new BehaviorSubject(this._rpcCore.provider.isConnected);
@@ -492,64 +493,126 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
return Object.entries(result);
}
// pre-metadata decoration
// Helper for _getRuntimeDefsViaMetadata
protected _getMethods (registry: Registry, methods: Vec<RuntimeApiMethodMetadataV15>) {
const result: Record<string, DefinitionCall> = {};
methods.forEach((m) => {
const { docs, inputs, name, output } = m;
result[name.toString()] = {
description: docs.map((d) => d.toString()).join(),
params: inputs.map(({ name, type }) => {
return { name: name.toString(), type: registry.lookup.getName(type) || registry.lookup.getTypeDef(type).type };
}),
type: registry.lookup.getName(output) || registry.lookup.getTypeDef(output).type
};
});
return result;
}
// Maintains the same structure as `_getRuntimeDefs` in order to make conversion easier.
protected _getRuntimeDefsViaMetadata (registry: Registry): [string, DefinitionsCallEntry[]][] {
const result: DefinitionsCall = {};
const { apis } = registry.metadata;
for (let i = 0, count = apis.length; i < count; i++) {
const { methods, name } = apis[i];
result[name.toString()] = [{
methods: this._getMethods(registry, methods),
// We set the version to 0 here since it will not be relevant when we are grabbing the runtime apis
// from the Metadata.
version: 0
}];
}
return Object.entries(result);
}
// When the calls are available in the metadata, it will generate them based off of the metadata.
// When they are not available it will use the hardcoded calls generated in the static types.
protected _decorateCalls<ApiType extends ApiTypes> ({ registry, runtimeVersion: { apis, specName, specVersion } }: VersionedRegistry<any>, decorateMethod: DecorateMethod<ApiType>, blockHash?: Uint8Array | string | null): QueryableCalls<ApiType> {
const result = {} as QueryableCalls<ApiType>;
const named: Record<string, Record<string, DefinitionCallNamed>> = {};
const hashes: Record<HexString, boolean> = {};
const sections = this._getRuntimeDefs(registry, specName, this._runtimeChain);
const isApiInMetadata = registry.metadata.apis.length > 0;
const sections = isApiInMetadata ? this._getRuntimeDefsViaMetadata(registry) : this._getRuntimeDefs(registry, specName, this._runtimeChain);
const older: string[] = [];
const implName = `${specName.toString()}/${specVersion.toString()}`;
const hasLogged = this.#runtimeLog[implName] || false;
this.#runtimeLog[implName] = true;
for (let i = 0, scount = sections.length; i < scount; i++) {
const [_section, secs] = sections[i];
const sectionHash = blake2AsHex(_section, 64);
const rtApi = apis.find(([a]) => a.eq(sectionHash));
if (isApiInMetadata) {
for (let i = 0, scount = sections.length; i < scount; i++) {
const [_section, secs] = sections[i];
const sec = secs[0];
const sectionHash = blake2AsHex(_section, 64);
hashes[sectionHash] = true;
const section = stringCamelCase(_section);
const methods = Object.entries(sec.methods);
if (rtApi) {
const all = secs.map(({ version }) => version).sort();
const sec = secs.find(({ version }) => rtApi[1].eq(version));
if (!named[section]) {
named[section] = {};
}
if (sec) {
const section = stringCamelCase(_section);
const methods = Object.entries(sec.methods);
for (let m = 0, mcount = methods.length; m < mcount; m++) {
const [_method, def] = methods[m];
const method = stringCamelCase(_method);
if (methods.length) {
if (!named[section]) {
named[section] = {};
}
for (let m = 0, mcount = methods.length; m < mcount; m++) {
const [_method, def] = methods[m];
const method = stringCamelCase(_method);
named[section][method] = objectSpread({ method, name: `${_section}_${_method}`, section, sectionHash }, def);
}
}
} else {
older.push(`${_section}/${rtApi[1].toString()} (${all.join('/')} known)`);
named[section][method] = objectSpread({ method, name: `${_section}_${_method}`, section, sectionHash }, def);
}
}
}
} else {
for (let i = 0, scount = sections.length; i < scount; i++) {
const [_section, secs] = sections[i];
const sectionHash = blake2AsHex(_section, 64);
const rtApi = apis.find(([a]) => a.eq(sectionHash));
// find the runtimes that we don't have hashes for
const notFound = apis
.map(([a, v]): [HexString, string] => [a.toHex(), v.toString()])
.filter(([a]) => !hashes[a])
.map(([a, v]) => `${this._runtimeMap[a] || a}/${v}`);
hashes[sectionHash] = true;
if (!this._options.noInitWarn && !hasLogged) {
if (older.length) {
l.warn(`${implName}: Not decorating runtime apis without matching versions: ${older.join(', ')}`);
if (rtApi) {
const all = secs.map(({ version }) => version).sort();
const sec = secs.find(({ version }) => rtApi[1].eq(version));
if (sec) {
const section = stringCamelCase(_section);
const methods = Object.entries(sec.methods);
if (methods.length) {
if (!named[section]) {
named[section] = {};
}
for (let m = 0, mcount = methods.length; m < mcount; m++) {
const [_method, def] = methods[m];
const method = stringCamelCase(_method);
named[section][method] = objectSpread({ method, name: `${_section}_${_method}`, section, sectionHash }, def);
}
}
} else {
older.push(`${_section}/${rtApi[1].toString()} (${all.join('/')} known)`);
}
}
}
if (notFound.length) {
l.warn(`${implName}: Not decorating unknown runtime apis: ${notFound.join(', ')}`);
// find the runtimes that we don't have hashes for
const notFound = apis
.map(([a, v]): [HexString, string] => [a.toHex(), v.toString()])
.filter(([a]) => !hashes[a])
.map(([a, v]) => `${this._runtimeMap[a] || a}/${v}`);
if (!this._options.noInitWarn && !hasLogged) {
if (older.length) {
l.warn(`${implName}: Not decorating runtime apis without matching versions: ${older.join(', ')}`);
}
if (notFound.length) {
l.warn(`${implName}: Not decorating unknown runtime apis: ${notFound.join(', ')}`);
}
}
}
+82 -16
View File
@@ -2,9 +2,9 @@
// SPDX-License-Identifier: Apache-2.0
import type { Observable, Subscription } from 'rxjs';
import type { Text } from '@polkadot/types';
import type { Bytes, Text, u32, Vec } from '@polkadot/types';
import type { ExtDef } from '@polkadot/types/extrinsic/signedExtensions/types';
import type { ChainProperties, Hash, HeaderPartial, RuntimeVersion, RuntimeVersionPartial } from '@polkadot/types/interfaces';
import type { BlockHash, ChainProperties, Hash, HeaderPartial, RuntimeVersion, RuntimeVersionApi, RuntimeVersionPartial } from '@polkadot/types/interfaces';
import type { Registry } from '@polkadot/types/types';
import type { BN } from '@polkadot/util';
import type { HexString } from '@polkadot/util/types';
@@ -16,12 +16,13 @@ import { firstValueFrom, map, of, switchMap } from 'rxjs';
import { Metadata, TypeRegistry } from '@polkadot/types';
import { getSpecAlias, getSpecExtensions, getSpecHasher, getSpecRpc, getSpecTypes, getUpgradeVersion } from '@polkadot/types-known';
import { assertReturn, BN_ZERO, isUndefined, logger, noop, objectSpread, u8aEq, u8aToHex, u8aToU8a } from '@polkadot/util';
import { cryptoWaitReady } from '@polkadot/util-crypto';
import { blake2AsHex, cryptoWaitReady } from '@polkadot/util-crypto';
import { Decorate } from './Decorate.js';
const KEEPALIVE_INTERVAL = 10000;
const WITH_VERSION_SHORTCUT = false;
const SUPPORTED_METADATA_VERSIONS = [15, 14];
const l = logger('api/init');
@@ -125,9 +126,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
private async _createBlockRegistry (blockHash: Uint8Array, header: HeaderPartial, version: RuntimeVersionPartial): Promise<VersionedRegistry<ApiType>> {
const registry = new TypeRegistry(blockHash);
const metadata = new Metadata(registry,
await firstValueFrom(this._rpcCore.state.getMetadata.raw<HexString>(header.parentHash))
);
const metadata = await this._retrieveMetadata(version.apis, header.parentHash, registry);
const runtimeChain = this._runtimeChain;
if (!runtimeChain) {
@@ -244,6 +243,11 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
protected async _loadMeta (): Promise<boolean> {
// on re-connection to the same chain, we don't want to re-do everything from chain again
if (this._isReady) {
// on re-connection only re-subscribe to chain updates if we are not a clone
if (!this._options.source) {
this._subscribeUpdates();
}
return true;
}
@@ -325,15 +329,12 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
}
private async _metaFromChain (optMetadata?: Record<string, HexString>): Promise<[Hash, Metadata]> {
const [genesisHash, runtimeVersion, chain, chainProps, rpcMethods, chainMetadata] = await Promise.all([
const [genesisHash, runtimeVersion, chain, chainProps, rpcMethods] = await Promise.all([
firstValueFrom(this._rpcCore.chain.getBlockHash(0)),
firstValueFrom(this._rpcCore.state.getRuntimeVersion()),
firstValueFrom(this._rpcCore.system.chain()),
firstValueFrom(this._rpcCore.system.properties()),
firstValueFrom(this._rpcCore.rpc.methods()),
optMetadata
? Promise.resolve(null)
: firstValueFrom(this._rpcCore.state.getMetadata())
firstValueFrom(this._rpcCore.rpc.methods())
]);
// set our chain version & genesisHash as returned
@@ -343,11 +344,9 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
// retrieve metadata, either from chain or as pass-in via options
const metadataKey = `${genesisHash.toHex() || '0x'}-${runtimeVersion.specVersion.toString()}`;
const metadata = chainMetadata || (
optMetadata?.[metadataKey]
? new Metadata(this.registry, optMetadata[metadataKey])
: await firstValueFrom(this._rpcCore.state.getMetadata())
);
const metadata = optMetadata?.[metadataKey]
? new Metadata(this.registry, optMetadata[metadataKey])
: await this._retrieveMetadata(runtimeVersion.apis);
// initializes the registry & RPC
this._initRegistry(this.registry, chain, runtimeVersion, metadata, chainProps);
@@ -387,6 +386,73 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
return true;
}
/**
* @internal
*
* Tries to use runtime api calls to retrieve metadata. This ensures the api initializes with the latest metadata.
* If the runtime call is not there it will use the rpc method.
*/
private async _retrieveMetadata (apis: Vec<RuntimeVersionApi>, at?: BlockHash | string | Uint8Array, registry?: TypeRegistry): Promise<Metadata> {
let metadataVersion: u32 | null = null;
const metadataApi = apis.find(([a]) => a.eq(blake2AsHex('Metadata', 64)));
const typeRegistry = registry || this.registry;
// This chain does not have support for the metadataApi, or does not have the required version.
if (!metadataApi || metadataApi[1].toNumber() < 2) {
l.warn('MetadataApi not available, rpc::state::get_metadata will be used.');
return at
? new Metadata(typeRegistry, await firstValueFrom(this._rpcCore.state.getMetadata.raw<HexString>(at)))
: await firstValueFrom(this._rpcCore.state.getMetadata());
}
try {
const metadataVersionsAsBytes = at
? await firstValueFrom(this._rpcCore.state.call.raw('Metadata_metadata_versions', '0x', at))
: await firstValueFrom(this._rpcCore.state.call('Metadata_metadata_versions', '0x'));
const versions = typeRegistry.createType('Vec<u32>', metadataVersionsAsBytes);
// For unstable versions of the metadata the last value is set to u32 MAX in the runtime. This ensures only supported stable versions are used.
metadataVersion = versions.filter((ver) => SUPPORTED_METADATA_VERSIONS.includes(ver.toNumber())).reduce((largest, current) => current.gt(largest) ? current : largest);
} catch (e) {
l.debug((e as Error).message);
l.warn('error with state_call::Metadata_metadata_versions, rpc::state::get_metadata will be used');
}
// When the metadata version does not align with the latest supported versions we ensure not to call the metadata runtime call.
// I noticed on some previous runtimes that have support for `Metadata_metadata_at_version` that very irregular versions were being returned.
// This was evident with runtime 1000000 - it return a very large number. This ensures we always stick within what is supported.
if (metadataVersion && !SUPPORTED_METADATA_VERSIONS.includes(metadataVersion.toNumber())) {
metadataVersion = null;
}
if (metadataVersion) {
try {
const metadataBytes = at
? await firstValueFrom(this._rpcCore.state.call.raw<Bytes>('Metadata_metadata_at_version', u8aToHex(metadataVersion.toU8a()), at))
: await firstValueFrom(this._rpcCore.state.call('Metadata_metadata_at_version', u8aToHex(metadataVersion.toU8a())));
// When the metadata is called with `at` it is required to use `.raw`. Therefore since the length prefix is not present the
// need to create a `Raw` type is necessary before creating the `OpaqueMetadata` type or else there will be a magic number
// mismatch
const rawMeta = at
? typeRegistry.createType('Raw', metadataBytes).toU8a()
: metadataBytes;
const opaqueMetadata = typeRegistry.createType('Option<OpaqueMetadata>', rawMeta).unwrapOr(null);
if (opaqueMetadata) {
return new Metadata(typeRegistry, opaqueMetadata.toHex());
}
} catch (e) {
l.debug((e as Error).message);
l.warn('error with state_call::Metadata_metadata_at_version, rpc::state::get_metadata will be used');
}
}
return at
? new Metadata(typeRegistry, await firstValueFrom(this._rpcCore.state.getMetadata.raw<HexString>(at)))
: await firstValueFrom(this._rpcCore.state.getMetadata());
}
private _subscribeHealth (): void {
this._unsubscribeHealth();
+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: '11.0.2' };
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '15.0.2' };
+1 -1
View File
@@ -15,7 +15,7 @@ import { hexToU8a } from '@polkadot/util';
import { SingleAccountSigner } from '../test/index.js';
import { ApiPromise } from './index.js';
const TRANSFER_SIG = '0xcc277eb341d3801c08f149508221583fa3185cc3944e6cb376cd061640305edd7dc24dfd754adb24768f1d8547389b7720e6f626bc81f5593fba1141e7f7ba07';
const TRANSFER_SIG = '0xbb861f9c905d860d303101dfd23a6042251721ca65fb1a58e317d628f08484767a3604afeaede64a4116d08daae3c285ea2ea97c8b6c7b3548e90df327c4e60c';
describe('ApiPromise', (): void => {
const registry = new TypeRegistry();
+75 -8
View File
@@ -7,6 +7,7 @@ import type { Observable } from 'rxjs';
import type { Address, ApplyExtrinsicResult, Call, Extrinsic, ExtrinsicEra, ExtrinsicStatus, Hash, Header, Index, RuntimeDispatchInfo, SignerPayload } from '@polkadot/types/interfaces';
import type { Callback, Codec, CodecClass, ISubmittableResult, SignatureOptions } from '@polkadot/types/types';
import type { Registry } from '@polkadot/types-codec/types';
import type { HexString } from '@polkadot/util/types';
import type { ApiBase } from '../base/index.js';
import type { ApiInterfaceRx, ApiTypes, PromiseOrObs, SignerResult } from '../types/index.js';
import type { AddressOrPair, SignerOptions, SubmittableDryRunResult, SubmittableExtrinsic, SubmittablePaymentResult, SubmittableResultResult, SubmittableResultSubscription } from './types.js';
@@ -28,6 +29,12 @@ interface SubmittableOptions<ApiType extends ApiTypes> {
interface UpdateInfo {
options: SignatureOptions;
updateId: number;
signedTransaction: HexString | Uint8Array | null;
}
interface SignerInfo {
id: number;
signedTransaction?: HexString | Uint8Array;
}
function makeEraOptions (api: ApiInterfaceRx, registry: Registry, partialOptions: Partial<SignerOptions>, { header, mortalLength, nonce }: { header: Header | null; mortalLength: number; nonce: Index }): SignatureOptions {
@@ -246,14 +253,21 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
mergeMap(async (signingInfo): Promise<UpdateInfo> => {
const eraOptions = makeEraOptions(api, this.registry, options, signingInfo);
let updateId = -1;
let signedTx = null;
if (isKeyringPair(account)) {
this.sign(account, eraOptions);
} else {
updateId = await this.#signViaSigner(address, eraOptions, signingInfo.header);
const result = await this.#signViaSigner(address, eraOptions, signingInfo.header);
updateId = result.id;
if (result.signedTransaction) {
signedTx = result.signedTransaction;
}
}
return { options: eraOptions, updateId };
return { options: eraOptions, signedTransaction: signedTx, updateId };
})
);
};
@@ -288,18 +302,18 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
);
};
#observeSend = (info: UpdateInfo): Observable<Hash> => {
return api.rpc.author.submitExtrinsic(this).pipe(
#observeSend = (info?: UpdateInfo): Observable<Hash> => {
return api.rpc.author.submitExtrinsic(info?.signedTransaction || this).pipe(
tap((hash): void => {
this.#updateSigner(hash, info);
})
);
};
#observeSubscribe = (info: UpdateInfo): Observable<ISubmittableResult> => {
#observeSubscribe = (info?: UpdateInfo): Observable<ISubmittableResult> => {
const txHash = this.hash;
return api.rpc.author.submitAndWatchExtrinsic(this).pipe(
return api.rpc.author.submitAndWatchExtrinsic(info?.signedTransaction || this).pipe(
switchMap((status): Observable<ISubmittableResult> =>
this.#observeStatus(txHash, status)
),
@@ -309,8 +323,9 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
);
};
#signViaSigner = async (address: Address | string | Uint8Array, options: SignatureOptions, header: Header | null): Promise<number> => {
#signViaSigner = async (address: Address | string | Uint8Array, options: SignatureOptions, header: Header | null): Promise<SignerInfo> => {
const signer = options.signer || api.signer;
const allowCallDataAlteration = options.allowCallDataAlteration ?? true;
if (!signer) {
throw new Error('No signer specified, either via api.setSigner or via sign options. You possibly need to pass through an explicit keypair for the origin so it can be used for signing.');
@@ -325,6 +340,44 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
if (isFunction(signer.signPayload)) {
result = await signer.signPayload(payload.toPayload());
if (result.signedTransaction && !options.withSignedTransaction) {
throw new Error('The `signedTransaction` field may not be submitted when `withSignedTransaction` is disabled');
}
if (result.signedTransaction && options.withSignedTransaction) {
const ext = this.registry.createTypeUnsafe<Extrinsic>('Extrinsic', [result.signedTransaction]);
const newSignerPayload = this.registry.createTypeUnsafe<SignerPayload>('SignerPayload', [objectSpread({}, {
address,
assetId: ext.assetId && ext.assetId.isSome ? ext.assetId.toHex() : null,
blockHash: payload.blockHash,
blockNumber: header ? header.number : 0,
era: ext.era.toHex(),
genesisHash: payload.genesisHash,
metadataHash: ext.metadataHash ? ext.metadataHash.toHex() : null,
method: ext.method.toHex(),
mode: ext.mode ? ext.mode.toHex() : null,
nonce: ext.nonce.toHex(),
runtimeVersion: payload.runtimeVersion,
signedExtensions: payload.signedExtensions,
tip: ext.tip ? ext.tip.toHex() : null,
version: payload.version
})]);
if (!ext.isSigned) {
throw new Error(`When using the signedTransaction field, the transaction must be signed. Recieved isSigned: ${ext.isSigned}`);
}
if (!allowCallDataAlteration) {
this.#validateSignedTransaction(payload, ext);
}
// This is only used for signAsync - signAndSend does not need to adjust the super payload or
// add the signature.
super.addSignature(address, result.signature, newSignerPayload.toPayload());
return { id: result.id, signedTransaction: result.signedTransaction };
}
} else if (isFunction(signer.signRaw)) {
result = await signer.signRaw(payload.toRaw());
} else {
@@ -336,7 +389,7 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
// payload data is not modified from our inputs, but the signer
super.addSignature(address, result.signature, payload.toPayload());
return result.id;
return { id: result.id };
};
#updateSigner = (status: Hash | ISubmittableResult, info?: UpdateInfo): void => {
@@ -349,6 +402,20 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
}
}
};
/**
* When a signer includes `signedTransaction` within the SignerResult this will validate
* specific fields within the signed extrinsic against the original payload that was passed
* to the signer.
*/
#validateSignedTransaction = (signerPayload: SignerPayload, signedExt: Extrinsic): void => {
const payload = signerPayload.toPayload();
const errMsg = (field: string) => `signAndSend: ${field} does not match the original payload`;
if (payload.method !== signedExt.method.toHex()) {
throw new Error(errMsg('call data'));
}
};
}
return Submittable;
+4
View File
@@ -80,6 +80,10 @@ export interface ApiOptions extends RegisteredTypes {
* @description User-defined RPC methods
*/
rpc?: Record<string, Record<string, DefinitionRpc | DefinitionRpcSub>>;
/**
* @description Defines the size of the cache for the rpc-core. Defaults to 1024 * 10 * 10.
*/
rpcCacheCapacity?: number;
/**
* @description Overrides for state_call usage (this will be removed in some future version)
*/
+6 -6
View File
@@ -18,13 +18,13 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "15.0.2",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "11.0.2",
"@polkadot/types": "11.0.2",
"@polkadot/types-codec": "11.0.2",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
"@polkadot/rpc-core": "15.0.2",
"@polkadot/types": "15.0.2",
"@polkadot/types-codec": "15.0.2",
"@polkadot/util": "^13.2.3",
"tslib": "^2.8.0"
}
}
+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: '11.0.2' };
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '15.0.2' };
+8 -8
View File
@@ -18,18 +18,18 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "15.0.2",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-augment": "11.0.2",
"@polkadot/rpc-provider": "11.0.2",
"@polkadot/types": "11.0.2",
"@polkadot/util": "^12.6.2",
"@polkadot/rpc-augment": "15.0.2",
"@polkadot/rpc-provider": "15.0.2",
"@polkadot/types": "15.0.2",
"@polkadot/util": "^13.2.3",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
"tslib": "^2.8.0"
},
"devDependencies": {
"@polkadot/keyring": "^12.6.2",
"@polkadot/rpc-augment": "11.0.2"
"@polkadot/keyring": "^13.2.3",
"@polkadot/rpc-augment": "15.0.2"
}
}
+21 -13
View File
@@ -11,6 +11,7 @@ import type { RpcCoreStats, RpcInterfaceMethod } from './types/index.js';
import { Observable, publishReplay, refCount } from 'rxjs';
import { LRUCache } from '@polkadot/rpc-provider';
import { rpcDefinitions } from '@polkadot/types';
import { hexToU8a, isFunction, isNull, isUndefined, lazyMethod, logger, memoize, objectSpread, u8aConcat, u8aToU8a } from '@polkadot/util';
@@ -32,6 +33,10 @@ type MemoizedRpcInterfaceMethod = Memoized<RpcInterfaceMethod> & {
interface Options {
isPedantic?: boolean;
provider: ProviderInterface;
/**
* Custom size of the rpc LRUCache capacity. Defaults to `RPC_CORE_DEFAULT_CAPACITY` (1024 * 10 * 10)
*/
rpcCacheCapacity?: number;
userRpc?: Record<string, Record<string, DefinitionRpc | DefinitionRpcSub>>;
}
@@ -46,6 +51,8 @@ const EMPTY_META = {
}
};
const RPC_CORE_DEFAULT_CAPACITY = 1024 * 10 * 10;
// utility method to create a nicely-formatted error
/** @internal */
function logErrorMessage (method: string, { noErrorLog, params, type }: DefinitionRpc, error: Error): void {
@@ -93,9 +100,8 @@ export class RpcCore {
readonly #instanceId: string;
readonly #isPedantic: boolean;
readonly #registryDefault: Registry;
readonly #storageCache = new Map<string, Codec>();
readonly #storageCache: LRUCache;
#storageCacheHits = 0;
#storageCacheSize = 0;
#getBlockRegistry?: (blockHash: Uint8Array) => Promise<{ registry: Registry }>;
#getBlockHash?: (blockNumber: AnyNumber) => Promise<Uint8Array>;
@@ -107,9 +113,11 @@ export class RpcCore {
/**
* @constructor
* Default constructor for the core RPC handler
* @param {ProviderInterface} provider An API provider using any of the supported providers (HTTP, SC or WebSocket)
* @param {Registry} registry Type Registry
* @param {ProviderInterface} options.provider An API provider using any of the supported providers (HTTP, SC or WebSocket)
* @param {number} [options.rpcCacheCapacity] Custom size of the rpc LRUCache capacity. Defaults to `RPC_CORE_DEFAULT_CAPACITY` (1024 * 10 * 10)
*/
constructor (instanceId: string, registry: Registry, { isPedantic = true, provider, userRpc = {} }: Options) {
constructor (instanceId: string, registry: Registry, { isPedantic = true, provider, rpcCacheCapacity, userRpc = {} }: Options) {
if (!provider || !isFunction(provider.send)) {
throw new Error('Expected Provider to API create');
}
@@ -123,7 +131,7 @@ export class RpcCore {
// these are the base keys (i.e. part of jsonrpc)
this.sections.push(...sectionNames);
this.#storageCache = new LRUCache(rpcCacheCapacity || RPC_CORE_DEFAULT_CAPACITY);
// decorate all interfaces, defined and user on this instance
this.addUserInterfaces(userRpc);
}
@@ -145,7 +153,7 @@ export class RpcCore {
/**
* @description Manually disconnect from the attached provider
*/
public disconnect (): Promise<void> {
public async disconnect (): Promise<void> {
return this.provider.disconnect();
}
@@ -160,7 +168,7 @@ export class RpcCore {
...stats,
core: {
cacheHits: this.#storageCacheHits,
cacheSize: this.#storageCacheSize
cacheSize: this.#storageCache.length
}
}
: undefined;
@@ -469,7 +477,7 @@ export class RpcCore {
// - if a single result value, don't fill - it is not an update hole
// - fallback to an empty option in all cases
if (isNotFound && withCache) {
const cached = this.#storageCache.get(hexKey);
const cached = this.#storageCache.get(hexKey) as Codec | undefined;
if (cached) {
this.#storageCacheHits++;
@@ -487,15 +495,15 @@ export class RpcCore {
: u8aToU8a(value);
const codec = this._newType(registry, blockHash, key, input, isEmpty, entryIndex);
// store the retrieved result - the only issue with this cache is that there is no
// clearing of it, so very long running processes (not just a couple of hours, longer)
// will increase memory beyond what is allowed.
this.#storageCache.set(hexKey, codec);
this.#storageCacheSize++;
this._setToCache(hexKey, codec);
return codec;
}
private _setToCache (key: string, value: Codec): void {
this.#storageCache.set(key, value);
}
private _newType (registry: Registry, blockHash: Uint8Array | string | null | undefined, key: StorageKey, input: string | Uint8Array | null, isEmpty: boolean, entryIndex = -1): Codec {
// single return value (via state.getStorage), decode the value based on the
// outputType that we have specified. Fallback to Raw on nothing
+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: '11.0.2' };
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '15.0.2' };
+13 -13
View File
@@ -18,26 +18,26 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "15.0.2",
"main": "index.js",
"dependencies": {
"@polkadot/keyring": "^12.6.2",
"@polkadot/types": "11.0.2",
"@polkadot/types-support": "11.0.2",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@polkadot/x-fetch": "^12.6.2",
"@polkadot/x-global": "^12.6.2",
"@polkadot/x-ws": "^12.6.2",
"@polkadot/keyring": "^13.2.3",
"@polkadot/types": "15.0.2",
"@polkadot/types-support": "15.0.2",
"@polkadot/util": "^13.2.3",
"@polkadot/util-crypto": "^13.2.3",
"@polkadot/x-fetch": "^13.2.3",
"@polkadot/x-global": "^13.2.3",
"@polkadot/x-ws": "^13.2.3",
"eventemitter3": "^5.0.1",
"mock-socket": "^9.3.1",
"nock": "^13.5.0",
"tslib": "^2.6.2"
"nock": "^13.5.5",
"tslib": "^2.8.0"
},
"devDependencies": {
"@substrate/connect": "0.8.10"
"@substrate/connect": "0.8.11"
},
"optionalDependencies": {
"@substrate/connect": "0.8.10"
"@substrate/connect": "0.8.11"
}
}
+1
View File
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
export { HttpProvider } from './http/index.js';
export { DEFAULT_CAPACITY, LRUCache } from './lru.js';
export { packageInfo } from './packageInfo.js';
export { ScProvider } from './substrate-connect/index.js';
export { WsProvider } from './ws/index.js';
+12 -3
View File
@@ -8,7 +8,7 @@ import { fetch } from '@polkadot/x-fetch';
import { RpcCoder } from '../coder/index.js';
import defaults from '../defaults.js';
import { LRUCache } from '../lru.js';
import { DEFAULT_CAPACITY, LRUCache } from '../lru.js';
const ERROR_SUBSCRIBE = 'HTTP Provider does not have subscriptions, use WebSockets instead';
@@ -35,7 +35,8 @@ const l = logger('api-http');
* @see [[WsProvider]]
*/
export class HttpProvider implements ProviderInterface {
readonly #callCache = new LRUCache();
readonly #callCache: LRUCache;
readonly #cacheCapacity: number;
readonly #coder: RpcCoder;
readonly #endpoint: string;
readonly #headers: Record<string, string>;
@@ -44,7 +45,7 @@ export class HttpProvider implements ProviderInterface {
/**
* @param {string} endpoint The endpoint url starting with http://
*/
constructor (endpoint: string = defaults.HTTP_URL, headers: Record<string, string> = {}) {
constructor (endpoint: string = defaults.HTTP_URL, headers: Record<string, string> = {}, cacheCapacity?: number) {
if (!/^(https|http):\/\//.test(endpoint)) {
throw new Error(`Endpoint should start with 'http://' or 'https://', received '${endpoint}'`);
}
@@ -52,6 +53,9 @@ export class HttpProvider implements ProviderInterface {
this.#coder = new RpcCoder();
this.#endpoint = endpoint;
this.#headers = headers;
this.#callCache = new LRUCache(cacheCapacity === 0 ? 0 : cacheCapacity || DEFAULT_CAPACITY);
this.#cacheCapacity = cacheCapacity === 0 ? 0 : cacheCapacity || DEFAULT_CAPACITY;
this.#stats = {
active: { requests: 0, subscriptions: 0 },
total: { bytesRecv: 0, bytesSent: 0, cached: 0, errors: 0, requests: 0, subscriptions: 0, timeout: 0 }
@@ -125,6 +129,11 @@ export class HttpProvider implements ProviderInterface {
this.#stats.total.requests++;
const [, body] = this.#coder.encodeJson(method, params);
if (this.#cacheCapacity === 0) {
return this.#send(body);
}
const cacheKey = isCacheable ? `${method}::${stringify(params)}` : '';
let resultPromise: Promise<T> | null = isCacheable
? this.#callCache.get(cacheKey)
+40 -23
View File
@@ -6,52 +6,69 @@
import { LRUCache } from './lru.js';
describe('LRUCache', (): void => {
let lru: LRUCache | undefined;
beforeEach((): void => {
lru = new LRUCache(4, 500);
});
it('allows getting of items below capacity', (): void => {
const keys = ['1', '2', '3', '4'];
const lru = new LRUCache(4);
keys.forEach((k) => lru.set(k, `${k}${k}${k}`));
keys.forEach((k) => lru?.set(k, `${k}${k}${k}`));
const lruKeys = lru?.keys();
expect(lru.keys().join(', ')).toEqual(keys.reverse().join(', '));
expect(lru.length === lru.lengthData && lru.length === lru.lengthRefs).toBe(true);
expect(lruKeys?.join(', ')).toBe(keys.reverse().join(', '));
expect(lru?.length === lru?.lengthData && lru?.length === lru?.lengthRefs).toBe(true);
keys.forEach((k) => expect(lru.get(k)).toEqual(`${k}${k}${k}`));
keys.forEach((k) => expect(lru?.get(k)).toEqual(`${k}${k}${k}`));
});
it('drops items when at capacity', (): void => {
const keys = ['1', '2', '3', '4', '5', '6'];
const lru = new LRUCache(4);
keys.forEach((k) => lru.set(k, `${k}${k}${k}`));
keys.forEach((k) => lru?.set(k, `${k}${k}${k}`));
expect(lru.keys().join(', ')).toEqual(keys.slice(2).reverse().join(', '));
expect(lru.length === lru.lengthData && lru.length === lru.lengthRefs).toBe(true);
expect(lru?.keys().join(', ')).toEqual(keys.slice(2).reverse().join(', '));
expect(lru?.length === lru?.lengthData && lru?.length === lru?.lengthRefs).toBe(true);
keys.slice(2).forEach((k) => expect(lru.get(k)).toEqual(`${k}${k}${k}`));
keys.slice(2).forEach((k) => expect(lru?.get(k)).toEqual(`${k}${k}${k}`));
});
it('adjusts the order as they are used', (): void => {
const keys = ['1', '2', '3', '4', '5'];
const lru = new LRUCache(4);
keys.forEach((k) => lru.set(k, `${k}${k}${k}`));
keys.forEach((k) => lru?.set(k, `${k}${k}${k}`));
expect(lru.entries()).toEqual([['5', '555'], ['4', '444'], ['3', '333'], ['2', '222']]);
expect(lru.length === lru.lengthData && lru.length === lru.lengthRefs).toBe(true);
expect(lru?.entries()).toEqual([['5', '555'], ['4', '444'], ['3', '333'], ['2', '222']]);
expect(lru?.length === lru?.lengthData && lru?.length === lru?.lengthRefs).toBe(true);
lru.get('3');
lru?.get('3');
expect(lru.entries()).toEqual([['3', '333'], ['5', '555'], ['4', '444'], ['2', '222']]);
expect(lru.length === lru.lengthData && lru.length === lru.lengthRefs).toBe(true);
expect(lru?.entries()).toEqual([['3', '333'], ['5', '555'], ['4', '444'], ['2', '222']]);
expect(lru?.length === lru?.lengthData && lru?.length === lru?.lengthRefs).toBe(true);
lru.set('4', '4433');
lru?.set('4', '4433');
expect(lru.entries()).toEqual([['4', '4433'], ['3', '333'], ['5', '555'], ['2', '222']]);
expect(lru.length === lru.lengthData && lru.length === lru.lengthRefs).toBe(true);
expect(lru?.entries()).toEqual([['4', '4433'], ['3', '333'], ['5', '555'], ['2', '222']]);
expect(lru?.length === lru?.lengthData && lru?.length === lru?.lengthRefs).toBe(true);
lru.set('6', '666');
lru?.set('6', '666');
expect(lru.entries()).toEqual([['6', '666'], ['4', '4433'], ['3', '333'], ['5', '555']]);
expect(lru.length === lru.lengthData && lru.length === lru.lengthRefs).toBe(true);
expect(lru?.entries()).toEqual([['6', '666'], ['4', '4433'], ['3', '333'], ['5', '555']]);
expect(lru?.length === lru?.lengthData && lru?.length === lru?.lengthRefs).toBe(true);
});
it('evicts items with TTL', (): void => {
const keys = ['1', '2', '3', '4', '5'];
keys.forEach((k) => lru?.set(k, `${k}${k}${k}`));
expect(lru?.entries()).toEqual([['5', '555'], ['4', '444'], ['3', '333'], ['2', '222']]);
setTimeout((): void => {
lru?.get('3');
expect(lru?.entries()).toEqual([['3', '333']]);
}, 800);
});
});
+52 -5
View File
@@ -4,18 +4,33 @@
// Assuming all 1.5MB responses, we apply a default allowing for 192MB
// cache space (depending on the historic queries this would vary, metadata
// for Kusama/Polkadot/Substrate falls between 600-750K, 2x for estimate)
export const DEFAULT_CAPACITY = 128;
export const DEFAULT_CAPACITY = 1024;
class LRUNode {
readonly key: string;
#expires: number;
#ttl: number;
readonly createdAt: number;
public next: LRUNode;
public prev: LRUNode;
constructor (key: string) {
constructor (key: string, ttl: number) {
this.key = key;
this.#ttl = ttl;
this.#expires = Date.now() + ttl;
this.createdAt = Date.now();
this.next = this.prev = this;
}
public refresh (): void {
this.#expires = Date.now() + this.#ttl;
}
public get expiry (): number {
return this.#expires;
}
}
// https://en.wikipedia.org/wiki/Cache_replacement_policies#LRU
@@ -29,9 +44,16 @@ export class LRUCache {
#head: LRUNode;
#tail: LRUNode;
constructor (capacity = DEFAULT_CAPACITY) {
readonly #ttl: number;
constructor (capacity = DEFAULT_CAPACITY, ttl = 30000) {
this.capacity = capacity;
this.#head = this.#tail = new LRUNode('<empty>');
this.#ttl = ttl;
this.#head = this.#tail = new LRUNode('<empty>', ttl);
}
get ttl (): number {
return this.#ttl;
}
get length (): number {
@@ -83,9 +105,14 @@ export class LRUCache {
if (data) {
this.#toHead(key);
// Evict TTL once data is refreshed
this.#evictTTL();
return data as T;
}
this.#evictTTL();
return null;
}
@@ -93,7 +120,7 @@ export class LRUCache {
if (this.#data.has(key)) {
this.#toHead(key);
} else {
const node = new LRUNode(key);
const node = new LRUNode(key, this.#ttl);
this.#refs.set(node.key, node);
@@ -116,13 +143,33 @@ export class LRUCache {
}
}
// Evict TTL once data is refreshed or added
this.#evictTTL();
this.#data.set(key, value);
}
#evictTTL () {
// Find last node to keep
// traverse map to find the expired nodes
while (this.#tail.expiry && this.#tail.expiry < Date.now() && this.#length > 0) {
this.#refs.delete(this.#tail.key);
this.#data.delete(this.#tail.key);
this.#length -= 1;
this.#tail = this.#tail.prev;
this.#tail.next = this.#head;
}
if (this.#length === 0) {
this.#head = this.#tail = new LRUNode('<empty>', this.#ttl);
}
}
#toHead (key: string): void {
const ref = this.#refs.get(key);
if (ref && ref !== this.#head) {
ref.refresh();
ref.prev.next = ref.next;
ref.next.prev = ref.prev;
ref.next = this.#head;
+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: '11.0.2' };
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '15.0.2' };
+9 -1
View File
@@ -92,6 +92,7 @@ export class WsProvider implements ProviderInterface {
readonly #isReadyPromise: Promise<WsProvider>;
readonly #stats: ProviderStats;
readonly #waitingForId: Record<string, JsonRpcResponse<unknown>> = {};
readonly #cacheCapacity: number;
#autoConnectMs: number;
#endpointIndex: number;
@@ -103,10 +104,11 @@ export class WsProvider implements ProviderInterface {
#timeout: number;
/**
* @param {string | string[]} endpoint The endpoint url. Usually `ws://ip:9944` or `wss://ip:9944`, may provide an array of endpoint strings.
* @param {string | string[]} endpoint The endpoint url. Usually `ws://ip:9944` or `wss://ip:9944`, may provide an array of endpoint strings.
* @param {number | false} autoConnectMs Whether to connect automatically or not (default). Provided value is used as a delay between retries.
* @param {Record<string, string>} headers The headers provided to the underlying WebSocket
* @param {number} [timeout] Custom timeout value used per request . Defaults to `DEFAULT_TIMEOUT_MS`
* @param {number} [cacheCapacity] Custom size of the WsProvider LRUCache. Defaults to `DEFAULT_CAPACITY` (1024)
*/
constructor (endpoint: string | string[] = defaults.WS_URL, autoConnectMs: number | false = RETRY_DELAY, headers: Record<string, string> = {}, timeout?: number, cacheCapacity?: number) {
const endpoints = Array.isArray(endpoint)
@@ -123,6 +125,7 @@ export class WsProvider implements ProviderInterface {
}
});
this.#callCache = new LRUCache(cacheCapacity || DEFAULT_CAPACITY);
this.#cacheCapacity = cacheCapacity || DEFAULT_CAPACITY;
this.#eventemitter = new EventEmitter();
this.#autoConnectMs = autoConnectMs || 0;
this.#coder = new RpcCoder();
@@ -312,6 +315,11 @@ export class WsProvider implements ProviderInterface {
this.#stats.total.requests++;
const [id, body] = this.#coder.encodeJson(method, params);
if (this.#cacheCapacity === 0) {
return this.#send(id, body, method, params, subscription);
}
const cacheKey = isCacheable ? `${method}::${stringify(params)}` : '';
let resultPromise: Promise<T> | null = isCacheable
? this.#callCache.get(cacheKey)
+15 -15
View File
@@ -18,7 +18,7 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "15.0.2",
"main": "index.js",
"bin": {
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
@@ -28,23 +28,23 @@
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
},
"dependencies": {
"@polkadot/api": "11.0.2",
"@polkadot/api-augment": "11.0.2",
"@polkadot/rpc-augment": "11.0.2",
"@polkadot/rpc-provider": "11.0.2",
"@polkadot/types": "11.0.2",
"@polkadot/types-augment": "11.0.2",
"@polkadot/types-codec": "11.0.2",
"@polkadot/types-create": "11.0.2",
"@polkadot/types-support": "11.0.2",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@polkadot/x-ws": "^12.6.2",
"@polkadot/api": "15.0.2",
"@polkadot/api-augment": "15.0.2",
"@polkadot/rpc-augment": "15.0.2",
"@polkadot/rpc-provider": "15.0.2",
"@polkadot/types": "15.0.2",
"@polkadot/types-augment": "15.0.2",
"@polkadot/types-codec": "15.0.2",
"@polkadot/types-create": "15.0.2",
"@polkadot/types-support": "15.0.2",
"@polkadot/util": "^13.2.3",
"@polkadot/util-crypto": "^13.2.3",
"@polkadot/x-ws": "^13.2.3",
"handlebars": "^4.7.8",
"tslib": "^2.6.2",
"tslib": "^2.8.0",
"yargs": "^17.7.2"
},
"devDependencies": {
"@types/yargs": "^17.0.32"
"@types/yargs": "^17.0.33"
}
}
+3 -3
View File
@@ -11,9 +11,9 @@ import Handlebars from 'handlebars';
import path from 'node:path';
import * as defaultDefinitions from '@polkadot/types/interfaces/definitions';
import staticKusama from '@polkadot/types-support/metadata/static-kusama';
import staticPolkadot from '@polkadot/types-support/metadata/static-polkadot';
import staticSubstrate from '@polkadot/types-support/metadata/static-substrate';
import staticKusama from '@polkadot/types-support/metadata/v15/kusama-hex';
import staticPolkadot from '@polkadot/types-support/metadata/v15/polkadot-hex';
import staticSubstrate from '@polkadot/types-support/metadata/v15/substrate-hex';
import { isString, stringify } from '@polkadot/util';
import { createImports, exportInterface, initMeta, readTemplate, writeFile } from '../util/index.js';
+122 -29
View File
@@ -1,8 +1,10 @@
// Copyright 2017-2024 @polkadot/typegen authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { RuntimeApiMethodMetadataV15, SiLookupTypeId } from '@polkadot/types/interfaces';
import type { Metadata } from '@polkadot/types/metadata/Metadata';
import type { DefinitionCallNamed, Definitions, Registry } from '@polkadot/types/types';
import type { DefinitionCall, DefinitionCallNamed, Definitions, DefinitionsCall, Registry } from '@polkadot/types/types';
import type { Vec } from '@polkadot/types-codec';
import type { HexString } from '@polkadot/util/types';
import type { ExtraTypes } from './types.js';
@@ -19,45 +21,136 @@ type Apis = [HexString, number][];
const generateCallsTypesTemplate = Handlebars.compile(readTemplate('calls'));
// This works similar to the PATHS_ALIAS set from the PortableRegistry
const aliases: Record<string, string> = {
KitchensinkRuntimeRuntimeCall: 'RuntimeCall',
OpaqueValue: 'Bytes',
PolkadotParachainPrimitivesPrimitivesId: 'ParaId',
PolkadotParachainPrimitivesPrimitivesValidationCodeHash: 'ValidationCodeHash',
PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof: 'OpaqueKeyOwnershipProof',
PolkadotRuntimeRuntimeCall: 'RuntimeCall',
PrimitiveTypesH256: 'H256',
SpConsensusBabeOpaqueKeyOwnershipProof: 'OpaqueKeyOwnershipProof',
SpConsensusSlotsSlot: 'Slot',
SpCoreCryptoAccountId32: 'AccountId32',
SpCoreOpaqueMetadata: 'OpaqueMetadata',
SpRuntimeOpaqueValue: 'Bytes',
SpRuntimeUncheckedExtrinsic: 'Extrinsic',
StagingKusamaRuntimeRuntimeCall: 'RuntimeCall'
};
const getTypesViaAlias = (registry: Registry, id: SiLookupTypeId) => {
const typeName = registry.lookup.getName(id) || registry.lookup.getTypeDef(id).type;
if (aliases[typeName]) {
return aliases[typeName];
}
return typeName;
};
/** @internal */
function getDefs (apis: Apis | null, defs: Record<string, Definitions>): Record<string, Record<string, DefinitionCallNamed>> {
function getMethods (registry: Registry, methods: Vec<RuntimeApiMethodMetadataV15>) {
const result: Record<string, DefinitionCall> = {};
methods.forEach((m) => {
const { docs, inputs, name, output } = m;
result[name.toString()] = {
description: docs.map((d) => d.toString()).join(),
params: inputs.map(({ name, type }) => {
return { name: name.toString(), type: getTypesViaAlias(registry, type) };
}),
type: getTypesViaAlias(registry, output)
};
});
return result;
}
/** @internal */
function getRuntimeDefViaMetadata (registry: Registry) {
const result: DefinitionsCall = {};
const { apis } = registry.metadata;
for (let i = 0, count = apis.length; i < count; i++) {
const { methods, name } = apis[i];
result[name.toString()] = [{
methods: getMethods(registry, methods),
// We set the version to 0 here since it will not be relevant when we are grabbing the runtime apis
// from the Metadata.
version: 0
}];
}
return Object.entries(result);
}
/** @internal */
function getDefs (apis: Apis | null, defs: Record<string, Definitions>, registry: Registry): Record<string, Record<string, DefinitionCallNamed>> {
const named: Record<string, Record<string, DefinitionCallNamed>> = {};
const all = Object.values(defs);
const isApiInMetadata = registry.metadata.apis.length > 0;
for (let j = 0, jcount = all.length; j < jcount; j++) {
const set = all[j].runtime;
if (isApiInMetadata) {
const sections = getRuntimeDefViaMetadata(registry);
if (set) {
const sections = Object.entries(set);
for (let j = 0, jcount = sections.length; j < jcount; j++) {
const [_section, secs] = sections[j];
const sec = secs[0];
const sectionHash = blake2AsHex(_section, 64);
for (let i = 0, scount = sections.length; i < scount; i++) {
const [_section, sec] = sections[i];
const sectionHash = blake2AsHex(_section, 64);
const api = apis?.find(([h]) => h === sectionHash);
const section = stringCamelCase(_section);
const methods = Object.entries(sec.methods);
if (api) {
const ver = sec.find(({ version }) => version === api[1]);
if (!named[section]) {
named[section] = {};
}
if (ver) {
const methods = Object.entries(ver.methods);
const mcount = methods.length;
for (let m = 0, mcount = methods.length; m < mcount; m++) {
const [_method, def] = methods[m];
const method = stringCamelCase(_method);
if (mcount) {
const section = stringCamelCase(_section);
named[section][method] = objectSpread({ method, name: `${_section}_${_method}`, section, sectionHash }, def);
}
}
} else {
for (let j = 0, jcount = all.length; j < jcount; j++) {
const set = all[j].runtime;
if (!named[section]) {
named[section] = {};
}
for (let m = 0; m < mcount; m++) {
const [_method, def] = methods[m];
const method = stringCamelCase(_method);
named[section][method] = objectSpread({ method, name: `${_section}_${method}`, section, sectionHash, version: ver.version }, def);
if (set) {
const sections = Object.entries(set);
for (let i = 0, scount = sections.length; i < scount; i++) {
const [_section, sec] = sections[i];
const sectionHash = blake2AsHex(_section, 64);
const api = apis?.find(([h]) => h === sectionHash);
if (api) {
const ver = sec.find(({ version }) => version === api[1]);
if (ver) {
const methods = Object.entries(ver.methods);
const mcount = methods.length;
if (mcount) {
const section = stringCamelCase(_section);
if (!named[section]) {
named[section] = {};
}
for (let m = 0; m < mcount; m++) {
const [_method, def] = methods[m];
const method = stringCamelCase(_method);
named[section][method] = objectSpread({ method, name: `${_section}_${method}`, section, sectionHash, version: ver.version }, def);
}
}
} else {
console.warn(`Unable to find matching version for runtime ${_section}, expected ${api[1]}`);
}
} else {
console.warn(`Unable to find matching version for runtime ${_section}, expected ${api[1]}`);
}
}
}
@@ -101,7 +194,7 @@ export function generateCallTypes (registry: Registry, meta: Metadata, dest: str
const allDefs = Object.entries(allTypes).reduce((defs, [path, obj]) => {
return Object.entries(obj).reduce((defs, [key, value]) => ({ ...defs, [`${path}/${key}`]: value }), defs);
}, {});
const definitions = getDefs(apis, imports.definitions as Record<string, Definitions>);
const definitions = getDefs(apis, imports.definitions as Record<string, Definitions>, registry);
const callKeys = Object.keys(definitions);
const modules = callKeys.map((section) => {
+2 -1
View File
@@ -57,8 +57,9 @@ function tsEnum (registry: Registry, definitions: Record<string, ModuleTypes>, {
// 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.
// This is specific to `StagingXcmV4Junction`.
// see: https://github.com/polkadot-js/api/pull/5812
if (sub && !Array.isArray(sub) && type.includes(`${sub.type};`)) {
if (sub && !Array.isArray(sub) && type.includes(`${sub.type};`) && sub.lookupName === 'StagingXcmV4Junction') {
extractedLookupName = sub.lookupName;
}
+3 -3
View File
@@ -3,9 +3,9 @@
import type { HexString } from '@polkadot/util/types';
import kusama from '@polkadot/types-support/metadata/static-kusama';
import polkadot from '@polkadot/types-support/metadata/static-polkadot';
import substrate from '@polkadot/types-support/metadata/static-substrate';
import kusama from '@polkadot/types-support/metadata/v15/kusama-hex';
import polkadot from '@polkadot/types-support/metadata/v15/polkadot-hex';
import substrate from '@polkadot/types-support/metadata/v15/substrate-hex';
import { generateDefaultConsts, generateDefaultErrors, generateDefaultEvents, generateDefaultInterface, generateDefaultLookup, generateDefaultQuery, generateDefaultRpc, generateDefaultRuntime, generateDefaultTsDef, generateDefaultTx } from './generate/index.js';
+1 -1
View File
@@ -131,7 +131,7 @@ function renderPage (page: Page): string {
md += `\n- **${bullet}**: ${
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
item[bullet] instanceof Vec
? docsVecToMarkdown(item[bullet] as Vec<Text>, 2).toString()
? docsVecToMarkdown(item[bullet], 2).toString()
: item[bullet]
}`;
});
+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: '11.0.2' };
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '15.0.2' };
+12 -1
View File
@@ -13,12 +13,23 @@ interface Result {
registry: TypeRegistry;
}
/**
* This helper method has been transitioned to work with V14, V15 and up.
*/
export function initMeta (staticMeta: HexString, extraTypes: ExtraTypes = {}): Result {
const registry = new TypeRegistry();
registerDefinitions(registry, extraTypes);
const metadata = new Metadata(registry, staticMeta);
let metadata: Metadata;
try {
const opaqueMetadata = registry.createType('Option<OpaqueMetadata>', registry.createType('Raw', staticMeta).toU8a()).unwrap();
metadata = new Metadata(registry, opaqueMetadata.toHex());
} catch {
metadata = new Metadata(registry, staticMeta);
}
registry.setMetadata(metadata);
+5 -5
View File
@@ -18,12 +18,12 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "15.0.2",
"main": "index.js",
"dependencies": {
"@polkadot/types": "11.0.2",
"@polkadot/types-codec": "11.0.2",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
"@polkadot/types": "15.0.2",
"@polkadot/types-codec": "15.0.2",
"@polkadot/util": "^13.2.3",
"tslib": "^2.8.0"
}
}
+281 -189
View File
@@ -5,18 +5,18 @@
export default {
/**
* Lookup121: staging_kusama_runtime::SessionKeys
* Lookup125: staging_kusama_runtime::SessionKeys
**/
StagingKusamaRuntimeSessionKeys: {
grandpa: 'SpConsensusGrandpaAppPublic',
babe: 'SpConsensusBabeAppPublic',
paraValidator: 'PolkadotPrimitivesV6ValidatorAppPublic',
paraAssignment: 'PolkadotPrimitivesV6AssignmentAppPublic',
paraValidator: 'PolkadotPrimitivesV7ValidatorAppPublic',
paraAssignment: 'PolkadotPrimitivesV7AssignmentAppPublic',
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic',
beefy: 'SpConsensusBeefyEcdsaCryptoPublic'
},
/**
* Lookup148: staging_kusama_runtime::OriginCaller
* Lookup150: staging_kusama_runtime::OriginCaller
**/
StagingKusamaRuntimeOriginCaller: {
_enum: {
@@ -123,19 +123,59 @@ export default {
}
},
/**
* Lookup150: staging_kusama_runtime::governance::origins::pallet_custom_origins::Origin
* Lookup152: staging_kusama_runtime::governance::origins::pallet_custom_origins::Origin
**/
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']
},
/**
* Lookup224: staging_kusama_runtime::ProxyType
* Lookup163: staging_kusama_runtime::RuntimeParameters
**/
StagingKusamaRuntimeProxyType: {
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction', 'Society', 'NominationPools']
StagingKusamaRuntimeRuntimeParameters: {
_enum: {
Inflation: 'StagingKusamaRuntimeDynamicParamsInflationParameters'
}
},
/**
* Lookup234: staging_kusama_runtime::NposCompactSolution24
* Lookup164: staging_kusama_runtime::dynamic_params::inflation::Parameters
**/
StagingKusamaRuntimeDynamicParamsInflationParameters: {
_enum: {
MinInflation: '(StagingKusamaRuntimeDynamicParamsInflationMinInflation,Option<Perquintill>)',
MaxInflation: '(StagingKusamaRuntimeDynamicParamsInflationMaxInflation,Option<Perquintill>)',
IdealStake: '(StagingKusamaRuntimeDynamicParamsInflationIdealStake,Option<Perquintill>)',
Falloff: '(StagingKusamaRuntimeDynamicParamsInflationFalloff,Option<Perquintill>)',
UseAuctionSlots: '(StagingKusamaRuntimeDynamicParamsInflationUseAuctionSlots,Option<bool>)'
}
},
/**
* Lookup165: staging_kusama_runtime::dynamic_params::inflation::MinInflation
**/
StagingKusamaRuntimeDynamicParamsInflationMinInflation: 'Null',
/**
* Lookup168: staging_kusama_runtime::dynamic_params::inflation::MaxInflation
**/
StagingKusamaRuntimeDynamicParamsInflationMaxInflation: 'Null',
/**
* Lookup169: staging_kusama_runtime::dynamic_params::inflation::IdealStake
**/
StagingKusamaRuntimeDynamicParamsInflationIdealStake: 'Null',
/**
* Lookup170: staging_kusama_runtime::dynamic_params::inflation::Falloff
**/
StagingKusamaRuntimeDynamicParamsInflationFalloff: 'Null',
/**
* Lookup171: staging_kusama_runtime::dynamic_params::inflation::UseAuctionSlots
**/
StagingKusamaRuntimeDynamicParamsInflationUseAuctionSlots: 'Null',
/**
* Lookup192: staging_kusama_runtime::ProxyType
**/
StagingKusamaRuntimeProxyType: {
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', '__Unused4', 'CancelProxy', 'Auction', 'Society', 'NominationPools', 'Spokesperson']
},
/**
* Lookup202: staging_kusama_runtime::NposCompactSolution24
**/
StagingKusamaRuntimeNposCompactSolution24: {
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
@@ -164,68 +204,41 @@ export default {
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
},
/**
* Lookup391: polkadot_runtime_parachains::assigner_on_demand::pallet::Call<T>
* Lookup479: staging_kusama_runtime::RuntimeParametersKey
**/
PolkadotRuntimeParachainsAssignerOnDemandPalletCall: {
StagingKusamaRuntimeRuntimeParametersKey: {
_enum: {
place_order_allow_death: {
maxAmount: 'u128',
paraId: 'u32',
},
place_order_keep_alive: {
maxAmount: 'u128',
paraId: 'u32'
}
Inflation: 'StagingKusamaRuntimeDynamicParamsInflationParametersKey'
}
},
/**
* Lookup399: polkadot_runtime_parachains::coretime::pallet::Call<T>
* Lookup480: staging_kusama_runtime::dynamic_params::inflation::ParametersKey
**/
PolkadotRuntimeParachainsCoretimePalletCall: {
StagingKusamaRuntimeDynamicParamsInflationParametersKey: {
_enum: ['MinInflation', 'MaxInflation', 'IdealStake', 'Falloff', 'UseAuctionSlots']
},
/**
* Lookup482: staging_kusama_runtime::RuntimeParametersValue
**/
StagingKusamaRuntimeRuntimeParametersValue: {
_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>'
}
Inflation: 'StagingKusamaRuntimeDynamicParamsInflationParametersValue'
}
},
/**
* Lookup543: polkadot_runtime_parachains::assigner_on_demand::pallet::Event<T>
* Lookup483: staging_kusama_runtime::dynamic_params::inflation::ParametersValue
**/
PolkadotRuntimeParachainsAssignerOnDemandPalletEvent: {
StagingKusamaRuntimeDynamicParamsInflationParametersValue: {
_enum: {
OnDemandOrderPlaced: {
paraId: 'u32',
spotPrice: 'u128',
},
SpotTrafficSet: {
traffic: 'u128'
}
MinInflation: 'Perquintill',
MaxInflation: 'Perquintill',
IdealStake: 'Perquintill',
Falloff: 'Perquintill',
UseAuctionSlots: 'bool'
}
},
/**
* Lookup548: polkadot_runtime_parachains::coretime::pallet::Event<T>
**/
PolkadotRuntimeParachainsCoretimePalletEvent: {
_enum: {
RevenueInfoRequested: {
when: 'u32',
},
CoreAssigned: {
core: 'u32'
}
}
},
/**
* Lookup600: staging_kusama_runtime::RuntimeHoldReason
* Lookup570: staging_kusama_runtime::RuntimeHoldReason
**/
StagingKusamaRuntimeRuntimeHoldReason: {
_enum: {
@@ -267,71 +280,11 @@ export default {
__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'
Nis: 'PalletNisHoldReason'
}
},
/**
* Lookup607: staging_kusama_runtime::RuntimeFreezeReason
* Lookup576: staging_kusama_runtime::RuntimeFreezeReason
**/
StagingKusamaRuntimeRuntimeFreezeReason: {
_enum: {
@@ -380,83 +333,222 @@ export default {
}
},
/**
* Lookup800: pallet_balances::types::IdAmount<Id, Balance>
* Lookup749: frame_support::traits::tokens::misc::IdAmount<Id, Balance>
**/
PalletBalancesIdAmount: {
FrameSupportTokensMiscIdAmount: {
id: 'Null',
amount: 'u128'
},
/**
* Lookup899: polkadot_runtime_parachains::assigner_on_demand::EnqueuedOrder
* Lookup928: staging_kusama_runtime::Runtime
**/
PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder: {
paraId: 'u32'
},
StagingKusamaRuntimeRuntime: 'Null',
/**
* Lookup900: polkadot_runtime_parachains::assigner_on_demand::CoreAffinityCount
* Lookup1040: staging_kusama_runtime::RuntimeError
**/
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'
StagingKusamaRuntimeRuntimeError: {
_enum: {
System: 'FrameSystemError',
Babe: 'PalletBabeError',
__Unused2: 'Null',
Indices: 'PalletIndicesError',
Balances: 'PalletBalancesError',
__Unused5: 'Null',
Staking: 'PalletStakingPalletError',
__Unused7: 'Null',
Session: 'PalletSessionError',
__Unused9: 'Null',
Grandpa: 'PalletGrandpaError',
__Unused11: 'Null',
__Unused12: 'Null',
__Unused13: 'Null',
__Unused14: 'Null',
__Unused15: 'Null',
__Unused16: 'Null',
__Unused17: 'Null',
Treasury: 'PalletTreasuryError',
Claims: 'PolkadotRuntimeCommonClaimsPalletError',
ConvictionVoting: 'PalletConvictionVotingError',
Referenda: 'PalletReferendaError',
FellowshipCollective: 'PalletRankedCollectiveError',
FellowshipReferenda: 'PalletReferendaError',
Utility: 'PalletUtilityError',
__Unused25: 'Null',
Society: 'PalletSocietyError',
Recovery: 'PalletRecoveryError',
Vesting: 'PalletVestingError',
Scheduler: 'PalletSchedulerError',
Proxy: 'PalletProxyError',
Multisig: 'PalletMultisigError',
Preimage: 'PalletPreimageError',
__Unused33: 'Null',
__Unused34: 'Null',
Bounties: 'PalletBountiesError',
__Unused36: 'Null',
ElectionProviderMultiPhase: 'PalletElectionProviderMultiPhaseError',
Nis: 'PalletNisError',
VoterList: 'PalletBagsListError',
ChildBounties: 'PalletChildBountiesError',
NominationPools: 'PalletNominationPoolsError',
FastUnstake: 'PalletFastUnstakeError',
__Unused43: 'Null',
Whitelist: 'PalletWhitelistError',
NisCounterpartBalances: 'PalletBalancesError',
__Unused46: 'Null',
__Unused47: 'Null',
__Unused48: 'Null',
__Unused49: 'Null',
__Unused50: 'Null',
Configuration: 'PolkadotRuntimeParachainsConfigurationPalletError',
__Unused52: 'Null',
ParaInclusion: 'PolkadotRuntimeParachainsInclusionPalletError',
ParaInherent: 'PolkadotRuntimeParachainsParasInherentPalletError',
__Unused55: 'Null',
Paras: 'PolkadotRuntimeParachainsParasPalletError',
__Unused57: 'Null',
__Unused58: 'Null',
__Unused59: 'Null',
Hrmp: 'PolkadotRuntimeParachainsHrmpPalletError',
__Unused61: 'Null',
ParasDisputes: 'PolkadotRuntimeParachainsDisputesPalletError',
ParasSlashing: 'PolkadotRuntimeParachainsDisputesSlashingPalletError',
OnDemandAssignmentProvider: 'PolkadotRuntimeParachainsAssignerOnDemandPalletError',
CoretimeAssignmentProvider: 'PolkadotRuntimeParachainsAssignerCoretimePalletError',
__Unused66: 'Null',
__Unused67: 'Null',
__Unused68: 'Null',
__Unused69: 'Null',
Registrar: 'PolkadotRuntimeCommonParasRegistrarPalletError',
Slots: 'PolkadotRuntimeCommonSlotsPalletError',
Auctions: 'PolkadotRuntimeCommonAuctionsPalletError',
Crowdloan: 'PolkadotRuntimeCommonCrowdloanPalletError',
Coretime: 'PolkadotRuntimeParachainsCoretimePalletError',
__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',
__Unused98: 'Null',
XcmPallet: 'PalletXcmError',
MessageQueue: 'PalletMessageQueueError',
AssetRate: 'PalletAssetRateError',
__Unused102: 'Null',
__Unused103: 'Null',
__Unused104: 'Null',
__Unused105: 'Null',
__Unused106: 'Null',
__Unused107: 'Null',
__Unused108: 'Null',
__Unused109: 'Null',
__Unused110: 'Null',
__Unused111: 'Null',
__Unused112: 'Null',
__Unused113: 'Null',
__Unused114: 'Null',
__Unused115: 'Null',
__Unused116: 'Null',
__Unused117: 'Null',
__Unused118: 'Null',
__Unused119: 'Null',
__Unused120: 'Null',
__Unused121: 'Null',
__Unused122: 'Null',
__Unused123: 'Null',
__Unused124: 'Null',
__Unused125: 'Null',
__Unused126: 'Null',
__Unused127: 'Null',
__Unused128: 'Null',
__Unused129: 'Null',
__Unused130: 'Null',
__Unused131: 'Null',
__Unused132: 'Null',
__Unused133: 'Null',
__Unused134: 'Null',
__Unused135: 'Null',
__Unused136: 'Null',
__Unused137: 'Null',
__Unused138: 'Null',
__Unused139: 'Null',
__Unused140: 'Null',
__Unused141: 'Null',
__Unused142: 'Null',
__Unused143: 'Null',
__Unused144: 'Null',
__Unused145: 'Null',
__Unused146: 'Null',
__Unused147: 'Null',
__Unused148: 'Null',
__Unused149: 'Null',
__Unused150: 'Null',
__Unused151: 'Null',
__Unused152: 'Null',
__Unused153: 'Null',
__Unused154: 'Null',
__Unused155: 'Null',
__Unused156: 'Null',
__Unused157: 'Null',
__Unused158: 'Null',
__Unused159: 'Null',
__Unused160: 'Null',
__Unused161: 'Null',
__Unused162: 'Null',
__Unused163: 'Null',
__Unused164: 'Null',
__Unused165: 'Null',
__Unused166: 'Null',
__Unused167: 'Null',
__Unused168: 'Null',
__Unused169: 'Null',
__Unused170: 'Null',
__Unused171: 'Null',
__Unused172: 'Null',
__Unused173: 'Null',
__Unused174: 'Null',
__Unused175: 'Null',
__Unused176: 'Null',
__Unused177: 'Null',
__Unused178: 'Null',
__Unused179: 'Null',
__Unused180: 'Null',
__Unused181: 'Null',
__Unused182: 'Null',
__Unused183: 'Null',
__Unused184: 'Null',
__Unused185: 'Null',
__Unused186: 'Null',
__Unused187: 'Null',
__Unused188: 'Null',
__Unused189: 'Null',
__Unused190: 'Null',
__Unused191: 'Null',
__Unused192: 'Null',
__Unused193: 'Null',
__Unused194: 'Null',
__Unused195: 'Null',
__Unused196: 'Null',
__Unused197: 'Null',
__Unused198: 'Null',
__Unused199: 'Null',
Beefy: 'PalletBeefyError'
}
}
};
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+186 -138
View File
@@ -5,22 +5,22 @@
// this is required to allow for ambient/previous definitions
import '@polkadot/types/lookup';
import type { Compact, Enum, Null, Option, Struct, Vec, u128, u16, u32 } from '@polkadot/types-codec';
import type { Compact, Enum, Null, Option, Struct, Vec, bool, u128, u16, u32 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
import type { PerU16 } from '@polkadot/types/interfaces/runtime';
import type { PerU16, Perquintill } from '@polkadot/types/interfaces/runtime';
declare module '@polkadot/types/lookup' {
/** @name StagingKusamaRuntimeSessionKeys (121) */
/** @name StagingKusamaRuntimeSessionKeys (125) */
interface StagingKusamaRuntimeSessionKeys extends Struct {
readonly grandpa: SpConsensusGrandpaAppPublic;
readonly babe: SpConsensusBabeAppPublic;
readonly paraValidator: PolkadotPrimitivesV6ValidatorAppPublic;
readonly paraAssignment: PolkadotPrimitivesV6AssignmentAppPublic;
readonly paraValidator: PolkadotPrimitivesV7ValidatorAppPublic;
readonly paraAssignment: PolkadotPrimitivesV7AssignmentAppPublic;
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
readonly beefy: SpConsensusBeefyEcdsaCryptoPublic;
}
/** @name StagingKusamaRuntimeOriginCaller (148) */
/** @name StagingKusamaRuntimeOriginCaller (150) */
interface StagingKusamaRuntimeOriginCaller extends Enum {
readonly isSystem: boolean;
readonly asSystem: FrameSupportDispatchRawOrigin;
@@ -34,7 +34,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'System' | 'Void' | 'Origins' | 'ParachainsOrigin' | 'XcmPallet';
}
/** @name StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin (150) */
/** @name StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin (152) */
interface StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin extends Enum {
readonly isStakingAdmin: boolean;
readonly isTreasurer: boolean;
@@ -67,21 +67,58 @@ declare module '@polkadot/types/lookup' {
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 StagingKusamaRuntimeProxyType (224) */
/** @name StagingKusamaRuntimeRuntimeParameters (163) */
interface StagingKusamaRuntimeRuntimeParameters extends Enum {
readonly isInflation: boolean;
readonly asInflation: StagingKusamaRuntimeDynamicParamsInflationParameters;
readonly type: 'Inflation';
}
/** @name StagingKusamaRuntimeDynamicParamsInflationParameters (164) */
interface StagingKusamaRuntimeDynamicParamsInflationParameters extends Enum {
readonly isMinInflation: boolean;
readonly asMinInflation: ITuple<[StagingKusamaRuntimeDynamicParamsInflationMinInflation, Option<Perquintill>]>;
readonly isMaxInflation: boolean;
readonly asMaxInflation: ITuple<[StagingKusamaRuntimeDynamicParamsInflationMaxInflation, Option<Perquintill>]>;
readonly isIdealStake: boolean;
readonly asIdealStake: ITuple<[StagingKusamaRuntimeDynamicParamsInflationIdealStake, Option<Perquintill>]>;
readonly isFalloff: boolean;
readonly asFalloff: ITuple<[StagingKusamaRuntimeDynamicParamsInflationFalloff, Option<Perquintill>]>;
readonly isUseAuctionSlots: boolean;
readonly asUseAuctionSlots: ITuple<[StagingKusamaRuntimeDynamicParamsInflationUseAuctionSlots, Option<bool>]>;
readonly type: 'MinInflation' | 'MaxInflation' | 'IdealStake' | 'Falloff' | 'UseAuctionSlots';
}
/** @name StagingKusamaRuntimeDynamicParamsInflationMinInflation (165) */
type StagingKusamaRuntimeDynamicParamsInflationMinInflation = Null;
/** @name StagingKusamaRuntimeDynamicParamsInflationMaxInflation (168) */
type StagingKusamaRuntimeDynamicParamsInflationMaxInflation = Null;
/** @name StagingKusamaRuntimeDynamicParamsInflationIdealStake (169) */
type StagingKusamaRuntimeDynamicParamsInflationIdealStake = Null;
/** @name StagingKusamaRuntimeDynamicParamsInflationFalloff (170) */
type StagingKusamaRuntimeDynamicParamsInflationFalloff = Null;
/** @name StagingKusamaRuntimeDynamicParamsInflationUseAuctionSlots (171) */
type StagingKusamaRuntimeDynamicParamsInflationUseAuctionSlots = Null;
/** @name StagingKusamaRuntimeProxyType (192) */
interface StagingKusamaRuntimeProxyType extends Enum {
readonly isAny: boolean;
readonly isNonTransfer: boolean;
readonly isGovernance: boolean;
readonly isStaking: boolean;
readonly isIdentityJudgement: boolean;
readonly isCancelProxy: boolean;
readonly isAuction: boolean;
readonly isSociety: boolean;
readonly isNominationPools: boolean;
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools';
readonly isSpokesperson: boolean;
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | 'Spokesperson';
}
/** @name StagingKusamaRuntimeNposCompactSolution24 (234) */
/** @name StagingKusamaRuntimeNposCompactSolution24 (202) */
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>]>>;
@@ -109,158 +146,169 @@ declare module '@polkadot/types/lookup' {
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
}
/** @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 StagingKusamaRuntimeRuntimeParametersKey (479) */
interface StagingKusamaRuntimeRuntimeParametersKey extends Enum {
readonly isInflation: boolean;
readonly asInflation: StagingKusamaRuntimeDynamicParamsInflationParametersKey;
readonly type: 'Inflation';
}
/** @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 StagingKusamaRuntimeDynamicParamsInflationParametersKey (480) */
interface StagingKusamaRuntimeDynamicParamsInflationParametersKey extends Enum {
readonly isMinInflation: boolean;
readonly isMaxInflation: boolean;
readonly isIdealStake: boolean;
readonly isFalloff: boolean;
readonly isUseAuctionSlots: boolean;
readonly type: 'MinInflation' | 'MaxInflation' | 'IdealStake' | 'Falloff' | 'UseAuctionSlots';
}
/** @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 StagingKusamaRuntimeRuntimeParametersValue (482) */
interface StagingKusamaRuntimeRuntimeParametersValue extends Enum {
readonly isInflation: boolean;
readonly asInflation: StagingKusamaRuntimeDynamicParamsInflationParametersValue;
readonly type: 'Inflation';
}
/** @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 StagingKusamaRuntimeDynamicParamsInflationParametersValue (483) */
interface StagingKusamaRuntimeDynamicParamsInflationParametersValue extends Enum {
readonly isMinInflation: boolean;
readonly asMinInflation: Perquintill;
readonly isMaxInflation: boolean;
readonly asMaxInflation: Perquintill;
readonly isIdealStake: boolean;
readonly asIdealStake: Perquintill;
readonly isFalloff: boolean;
readonly asFalloff: Perquintill;
readonly isUseAuctionSlots: boolean;
readonly asUseAuctionSlots: bool;
readonly type: 'MinInflation' | 'MaxInflation' | 'IdealStake' | 'Falloff' | 'UseAuctionSlots';
}
/** @name StagingKusamaRuntimeRuntimeHoldReason (600) */
/** @name StagingKusamaRuntimeRuntimeHoldReason (570) */
interface StagingKusamaRuntimeRuntimeHoldReason extends Enum {
readonly isPreimage: boolean;
readonly asPreimage: PalletPreimageHoldReason;
readonly isNis: boolean;
readonly asNis: PalletNisHoldReason;
readonly isStateTrieMigration: boolean;
readonly asStateTrieMigration: PalletStateTrieMigrationHoldReason;
readonly type: 'Preimage' | 'Nis' | 'StateTrieMigration';
readonly type: 'Preimage' | 'Nis';
}
/** @name StagingKusamaRuntimeRuntimeFreezeReason (607) */
/** @name StagingKusamaRuntimeRuntimeFreezeReason (576) */
interface StagingKusamaRuntimeRuntimeFreezeReason extends Enum {
readonly isNominationPools: boolean;
readonly asNominationPools: PalletNominationPoolsFreezeReason;
readonly type: 'NominationPools';
}
/** @name PalletBalancesIdAmount (800) */
interface PalletBalancesIdAmount extends Struct {
/** @name FrameSupportTokensMiscIdAmount (749) */
interface FrameSupportTokensMiscIdAmount extends Struct {
readonly id: Null;
readonly amount: u128;
}
/** @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) */
/** @name StagingKusamaRuntimeRuntime (928) */
type StagingKusamaRuntimeRuntime = Null;
/** @name StagingKusamaRuntimeRuntimeError (1040) */
interface StagingKusamaRuntimeRuntimeError extends Enum {
readonly isSystem: boolean;
readonly asSystem: FrameSystemError;
readonly isBabe: boolean;
readonly asBabe: PalletBabeError;
readonly isIndices: boolean;
readonly asIndices: PalletIndicesError;
readonly isBalances: boolean;
readonly asBalances: PalletBalancesError;
readonly isStaking: boolean;
readonly asStaking: PalletStakingPalletError;
readonly isSession: boolean;
readonly asSession: PalletSessionError;
readonly isGrandpa: boolean;
readonly asGrandpa: PalletGrandpaError;
readonly isTreasury: boolean;
readonly asTreasury: PalletTreasuryError;
readonly isClaims: boolean;
readonly asClaims: PolkadotRuntimeCommonClaimsPalletError;
readonly isConvictionVoting: boolean;
readonly asConvictionVoting: PalletConvictionVotingError;
readonly isReferenda: boolean;
readonly asReferenda: PalletReferendaError;
readonly isFellowshipCollective: boolean;
readonly asFellowshipCollective: PalletRankedCollectiveError;
readonly isFellowshipReferenda: boolean;
readonly asFellowshipReferenda: PalletReferendaError;
readonly isUtility: boolean;
readonly asUtility: PalletUtilityError;
readonly isSociety: boolean;
readonly asSociety: PalletSocietyError;
readonly isRecovery: boolean;
readonly asRecovery: PalletRecoveryError;
readonly isVesting: boolean;
readonly asVesting: PalletVestingError;
readonly isScheduler: boolean;
readonly asScheduler: PalletSchedulerError;
readonly isProxy: boolean;
readonly asProxy: PalletProxyError;
readonly isMultisig: boolean;
readonly asMultisig: PalletMultisigError;
readonly isPreimage: boolean;
readonly asPreimage: PalletPreimageError;
readonly isBounties: boolean;
readonly asBounties: PalletBountiesError;
readonly isElectionProviderMultiPhase: boolean;
readonly asElectionProviderMultiPhase: PalletElectionProviderMultiPhaseError;
readonly isNis: boolean;
readonly asNis: PalletNisError;
readonly isVoterList: boolean;
readonly asVoterList: PalletBagsListError;
readonly isChildBounties: boolean;
readonly asChildBounties: PalletChildBountiesError;
readonly isNominationPools: boolean;
readonly asNominationPools: PalletNominationPoolsError;
readonly isFastUnstake: boolean;
readonly asFastUnstake: PalletFastUnstakeError;
readonly isWhitelist: boolean;
readonly asWhitelist: PalletWhitelistError;
readonly isNisCounterpartBalances: boolean;
readonly asNisCounterpartBalances: PalletBalancesError;
readonly isConfiguration: boolean;
readonly asConfiguration: PolkadotRuntimeParachainsConfigurationPalletError;
readonly isParaInclusion: boolean;
readonly asParaInclusion: PolkadotRuntimeParachainsInclusionPalletError;
readonly isParaInherent: boolean;
readonly asParaInherent: PolkadotRuntimeParachainsParasInherentPalletError;
readonly isParas: boolean;
readonly asParas: PolkadotRuntimeParachainsParasPalletError;
readonly isHrmp: boolean;
readonly asHrmp: PolkadotRuntimeParachainsHrmpPalletError;
readonly isParasDisputes: boolean;
readonly asParasDisputes: PolkadotRuntimeParachainsDisputesPalletError;
readonly isParasSlashing: boolean;
readonly asParasSlashing: PolkadotRuntimeParachainsDisputesSlashingPalletError;
readonly isOnDemandAssignmentProvider: boolean;
readonly asOnDemandAssignmentProvider: PolkadotRuntimeParachainsAssignerOnDemandPalletError;
readonly isCoretimeAssignmentProvider: boolean;
readonly asCoretimeAssignmentProvider: PolkadotRuntimeParachainsAssignerCoretimePalletError;
readonly isRegistrar: boolean;
readonly asRegistrar: PolkadotRuntimeCommonParasRegistrarPalletError;
readonly isSlots: boolean;
readonly asSlots: PolkadotRuntimeCommonSlotsPalletError;
readonly isAuctions: boolean;
readonly asAuctions: PolkadotRuntimeCommonAuctionsPalletError;
readonly isCrowdloan: boolean;
readonly asCrowdloan: PolkadotRuntimeCommonCrowdloanPalletError;
readonly isCoretime: boolean;
readonly asCoretime: PolkadotRuntimeParachainsCoretimePalletError;
readonly isXcmPallet: boolean;
readonly asXcmPallet: PalletXcmError;
readonly isMessageQueue: boolean;
readonly asMessageQueue: PalletMessageQueueError;
readonly isAssetRate: boolean;
readonly asAssetRate: PalletAssetRateError;
readonly isBeefy: boolean;
readonly asBeefy: PalletBeefyError;
readonly type: 'System' | 'Babe' | 'Indices' | 'Balances' | 'Staking' | 'Session' | 'Grandpa' | 'Treasury' | 'Claims' | 'ConvictionVoting' | 'Referenda' | 'FellowshipCollective' | 'FellowshipReferenda' | 'Utility' | 'Society' | 'Recovery' | 'Vesting' | 'Scheduler' | 'Proxy' | 'Multisig' | 'Preimage' | 'Bounties' | 'ElectionProviderMultiPhase' | 'Nis' | 'VoterList' | 'ChildBounties' | 'NominationPools' | 'FastUnstake' | 'Whitelist' | 'NisCounterpartBalances' | 'Configuration' | 'ParaInclusion' | 'ParaInherent' | 'Paras' | 'Hrmp' | 'ParasDisputes' | 'ParasSlashing' | 'OnDemandAssignmentProvider' | 'CoretimeAssignmentProvider' | 'Registrar' | 'Slots' | 'Auctions' | 'Crowdloan' | 'Coretime' | 'XcmPallet' | 'MessageQueue' | 'AssetRate' | 'Beefy';
}
} // 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: '11.0.2' };
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '15.0.2' };
@@ -30,11 +30,12 @@ import type { FundIndex, FundInfo, LastContribution, TrieIndex } from '@polkadot
import type { CollationInfo, CollationInfoV1, ConfigData, MessageId, OverweightIndex, PageCounter, PageIndexData } from '@polkadot/types/interfaces/cumulus';
import type { AccountVote, AccountVoteSplit, AccountVoteStandard, Conviction, Delegations, PreimageStatus, PreimageStatusAvailable, PriorLock, PropIndex, Proposal, ProxyState, ReferendumIndex, ReferendumInfo, ReferendumInfoFinished, ReferendumInfoTo239, ReferendumStatus, Tally, Voting, VotingDelegating, VotingDirect, VotingDirectVote } from '@polkadot/types/interfaces/democracy';
import type { BlockStats } from '@polkadot/types/interfaces/dev';
import type { CallDryRunEffects, DispatchResultWithPostInfo, PostDispatchInfo, XcmDryRunApiError, XcmDryRunEffects } from '@polkadot/types/interfaces/dryRunApi';
import type { ApprovalFlag, DefunctVoter, Renouncing, SetIndex, Vote, VoteIndex, VoteThreshold, VoterInfo } from '@polkadot/types/interfaces/elections';
import type { CreatedBlock, ImportedAux } from '@polkadot/types/interfaces/engine';
import type { BlockV0, BlockV1, BlockV2, EIP1559Transaction, EIP2930Transaction, EthAccessList, EthAccessListItem, EthAccount, EthAddress, EthBlock, EthBloom, EthCallRequest, EthFeeHistory, EthFilter, EthFilterAddress, EthFilterChanges, EthFilterTopic, EthFilterTopicEntry, EthFilterTopicInner, EthHeader, EthLog, EthReceipt, EthReceiptV0, EthReceiptV3, EthRichBlock, EthRichHeader, EthStorageProof, EthSubKind, EthSubParams, EthSubResult, EthSyncInfo, EthSyncStatus, EthTransaction, EthTransactionAction, EthTransactionCondition, EthTransactionRequest, EthTransactionSignature, EthTransactionStatus, EthWork, EthereumAccountId, EthereumAddress, EthereumLookupSource, EthereumSignature, LegacyTransaction, TransactionV0, TransactionV1, TransactionV2 } from '@polkadot/types/interfaces/eth';
import type { EvmAccount, EvmCallInfo, EvmCallInfoV2, EvmCreateInfo, EvmCreateInfoV2, EvmLog, EvmVicinity, EvmWeightInfo, ExitError, ExitFatal, ExitReason, ExitRevert, ExitSucceed } from '@polkadot/types/interfaces/evm';
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 { AnySignature, EcdsaSignature, Ed25519Signature, Era, Extrinsic, ExtrinsicEra, ExtrinsicPayload, ExtrinsicPayloadUnknown, ExtrinsicPayloadV4, ExtrinsicPayloadV5, ExtrinsicSignature, ExtrinsicSignatureV4, ExtrinsicSignatureV5, ExtrinsicUnknown, ExtrinsicV4, ExtrinsicV5, 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';
@@ -73,7 +74,9 @@ import type { TransactionSource, TransactionValidity, ValidTransaction } from '@
import type { ClassDetails, ClassId, ClassMetadata, DepositBalance, DepositBalanceOf, DestroyWitness, InstanceDetails, InstanceId, InstanceMetadata } from '@polkadot/types/interfaces/uniques';
import type { Multisig, Timepoint } from '@polkadot/types/interfaces/utility';
import type { VestingInfo } from '@polkadot/types/interfaces/vesting';
import type { AssetInstance, AssetInstanceV0, AssetInstanceV1, AssetInstanceV2, BodyId, BodyPart, DoubleEncodedCall, Fungibility, FungibilityV0, FungibilityV1, FungibilityV2, InboundStatus, InstructionV2, InteriorMultiLocation, Junction, JunctionV0, JunctionV1, JunctionV2, Junctions, JunctionsV1, JunctionsV2, MultiAsset, MultiAssetFilter, MultiAssetFilterV1, MultiAssetFilterV2, MultiAssetV0, MultiAssetV1, MultiAssetV2, MultiAssets, MultiAssetsV1, MultiAssetsV2, MultiLocation, MultiLocationV0, MultiLocationV1, MultiLocationV2, NetworkId, OriginKindV0, OriginKindV1, OriginKindV2, OutboundStatus, Outcome, QueryId, QueryStatus, QueueConfigData, Response, ResponseV0, ResponseV1, ResponseV2, ResponseV2Error, ResponseV2Result, VersionMigrationStage, VersionedMultiAsset, VersionedMultiAssets, VersionedMultiLocation, VersionedResponse, VersionedXcm, WeightLimitV2, WildFungibility, WildFungibilityV0, WildFungibilityV1, WildFungibilityV2, WildMultiAsset, WildMultiAssetV1, WildMultiAssetV2, Xcm, XcmAssetId, XcmError, XcmErrorV0, XcmErrorV1, XcmErrorV2, XcmOrder, XcmOrderV0, XcmOrderV1, XcmOrderV2, XcmOrigin, XcmOriginKind, XcmV0, XcmV1, XcmV2, XcmVersion, XcmpMessageFormat } from '@polkadot/types/interfaces/xcm';
import type { AssetIdV2, AssetIdV3, AssetIdV4, AssetInstance, AssetInstanceV0, AssetInstanceV1, AssetInstanceV2, AssetInstanceV3, AssetInstanceV4, BodyId, BodyIdV2, BodyIdV3, BodyPart, BodyPartV2, BodyPartV3, DoubleEncodedCall, Fungibility, FungibilityV0, FungibilityV1, FungibilityV2, FungibilityV3, FungibilityV4, InboundStatus, InstructionV2, InstructionV3, InstructionV4, InteriorMultiLocation, InteriorMultiLocationV2, InteriorMultiLocationV3, Junction, JunctionV0, JunctionV1, JunctionV2, JunctionV3, JunctionV4, Junctions, JunctionsV1, JunctionsV2, JunctionsV3, JunctionsV4, MaxPalletNameLen, MaxPalletsInfo, MaybeErrorCodeV3, MultiAsset, MultiAssetFilter, MultiAssetFilterV1, MultiAssetFilterV2, MultiAssetFilterV3, MultiAssetFilterV4, MultiAssetV0, MultiAssetV1, MultiAssetV2, MultiAssetV3, MultiAssetV4, MultiAssets, MultiAssetsV1, MultiAssetsV2, MultiAssetsV3, MultiAssetsV4, MultiLocation, MultiLocationV0, MultiLocationV1, MultiLocationV2, MultiLocationV3, MultiLocationV4, NetworkId, NetworkIdV2, NetworkIdV3, NetworkIdV4, OriginKindV0, OriginKindV1, OriginKindV2, OriginKindV3, OriginKindV4, OutboundStatus, Outcome, OutcomeV4, PalletInfoV3, PalletInfoV4, QueryId, QueryResponseInfoV3, QueryResponseInfoV4, QueryStatus, QueueConfigData, Response, ResponseV0, ResponseV1, ResponseV2, ResponseV2Error, ResponseV3, ResponseV3Error, ResponseV3Result, ResponseV4, UncheckedFungibilityV4, VersionMigrationStage, VersionV3, VersionV4, VersionedMultiAsset, VersionedMultiAssets, VersionedMultiLocation, VersionedResponse, VersionedXcm, WeightLimitV2, WeightLimitV3, WildFungibility, WildFungibilityV0, WildFungibilityV1, WildFungibilityV2, WildFungibilityV3, WildFungibilityV4, WildMultiAsset, WildMultiAssetV1, WildMultiAssetV2, WildMultiAssetV3, WildMultiAssetV4, Xcm, XcmAssetId, XcmError, XcmErrorV0, XcmErrorV1, XcmErrorV2, XcmErrorV3, XcmErrorV4, XcmOrderV0, XcmOrderV1, XcmOrigin, XcmOriginKind, XcmV0, XcmV1, XcmV2, XcmV3, XcmV4, XcmVersion, XcmpMessageFormat } from '@polkadot/types/interfaces/xcm';
import type { XcmPaymentApiError } from '@polkadot/types/interfaces/xcmPaymentApi';
import type { Error } from '@polkadot/types/interfaces/xcmRuntimeApi';
declare module '@polkadot/types/types/registry' {
interface InterfaceTypes {
@@ -120,10 +123,15 @@ declare module '@polkadot/types/types/registry' {
AssetDestroyWitness: AssetDestroyWitness;
AssetDetails: AssetDetails;
AssetId: AssetId;
AssetIdV2: AssetIdV2;
AssetIdV3: AssetIdV3;
AssetIdV4: AssetIdV4;
AssetInstance: AssetInstance;
AssetInstanceV0: AssetInstanceV0;
AssetInstanceV1: AssetInstanceV1;
AssetInstanceV2: AssetInstanceV2;
AssetInstanceV3: AssetInstanceV3;
AssetInstanceV4: AssetInstanceV4;
AssetMetadata: AssetMetadata;
AssetOptions: AssetOptions;
AssignmentId: AssignmentId;
@@ -196,7 +204,11 @@ declare module '@polkadot/types/types/registry' {
BlockV2: BlockV2;
BlockWeights: BlockWeights;
BodyId: BodyId;
BodyIdV2: BodyIdV2;
BodyIdV3: BodyIdV3;
BodyPart: BodyPart;
BodyPartV2: BodyPartV2;
BodyPartV3: BodyPartV3;
bool: bool;
Bool: Bool;
Bounty: Bounty;
@@ -212,6 +224,7 @@ declare module '@polkadot/types/types/registry' {
BufferedSessionChange: BufferedSessionChange;
Bytes: Bytes;
Call: Call;
CallDryRunEffects: CallDryRunEffects;
CallHash: CallHash;
CallHashOf: CallHashOf;
CallIndex: CallIndex;
@@ -371,6 +384,7 @@ declare module '@polkadot/types/types/registry' {
DispatchResult: DispatchResult;
DispatchResultOf: DispatchResultOf;
DispatchResultTo198: DispatchResultTo198;
DispatchResultWithPostInfo: DispatchResultWithPostInfo;
DisputeLocation: DisputeLocation;
DisputeProof: DisputeProof;
DisputeResult: DisputeResult;
@@ -400,6 +414,7 @@ declare module '@polkadot/types/types/registry' {
EraPoints: EraPoints;
EraRewardPoints: EraRewardPoints;
EraRewards: EraRewards;
Error: Error;
ErrorMetadataLatest: ErrorMetadataLatest;
ErrorMetadataV10: ErrorMetadataV10;
ErrorMetadataV11: ErrorMetadataV11;
@@ -489,12 +504,15 @@ declare module '@polkadot/types/types/registry' {
ExtrinsicPayload: ExtrinsicPayload;
ExtrinsicPayloadUnknown: ExtrinsicPayloadUnknown;
ExtrinsicPayloadV4: ExtrinsicPayloadV4;
ExtrinsicPayloadV5: ExtrinsicPayloadV5;
ExtrinsicSignature: ExtrinsicSignature;
ExtrinsicSignatureV4: ExtrinsicSignatureV4;
ExtrinsicSignatureV5: ExtrinsicSignatureV5;
ExtrinsicStatus: ExtrinsicStatus;
ExtrinsicsWeight: ExtrinsicsWeight;
ExtrinsicUnknown: ExtrinsicUnknown;
ExtrinsicV4: ExtrinsicV4;
ExtrinsicV5: ExtrinsicV5;
f32: f32;
F32: F32;
f64: f64;
@@ -530,6 +548,8 @@ declare module '@polkadot/types/types/registry' {
FungibilityV0: FungibilityV0;
FungibilityV1: FungibilityV1;
FungibilityV2: FungibilityV2;
FungibilityV3: FungibilityV3;
FungibilityV4: FungibilityV4;
FungiblesAccessError: FungiblesAccessError;
Gas: Gas;
GenesisBuildErr: GenesisBuildErr;
@@ -616,8 +636,12 @@ declare module '@polkadot/types/types/registry' {
InstantiateReturnValueOk: InstantiateReturnValueOk;
InstantiateReturnValueTo267: InstantiateReturnValueTo267;
InstructionV2: InstructionV2;
InstructionV3: InstructionV3;
InstructionV4: InstructionV4;
InstructionWeights: InstructionWeights;
InteriorMultiLocation: InteriorMultiLocation;
InteriorMultiLocationV2: InteriorMultiLocationV2;
InteriorMultiLocationV3: InteriorMultiLocationV3;
InvalidDisputeStatementKind: InvalidDisputeStatementKind;
InvalidTransaction: InvalidTransaction;
isize: isize;
@@ -627,9 +651,13 @@ declare module '@polkadot/types/types/registry' {
Junctions: Junctions;
JunctionsV1: JunctionsV1;
JunctionsV2: JunctionsV2;
JunctionsV3: JunctionsV3;
JunctionsV4: JunctionsV4;
JunctionV0: JunctionV0;
JunctionV1: JunctionV1;
JunctionV2: JunctionV2;
JunctionV3: JunctionV3;
JunctionV4: JunctionV4;
Justification: Justification;
JustificationNotification: JustificationNotification;
Justifications: Justifications;
@@ -654,6 +682,9 @@ declare module '@polkadot/types/types/registry' {
LookupSource: LookupSource;
LookupTarget: LookupTarget;
LotteryConfig: LotteryConfig;
MaxPalletNameLen: MaxPalletNameLen;
MaxPalletsInfo: MaxPalletsInfo;
MaybeErrorCodeV3: MaybeErrorCodeV3;
MaybeRandomness: MaybeRandomness;
MaybeVrf: MaybeVrf;
MemberCount: MemberCount;
@@ -710,22 +741,33 @@ declare module '@polkadot/types/types/registry' {
MultiAssetFilter: MultiAssetFilter;
MultiAssetFilterV1: MultiAssetFilterV1;
MultiAssetFilterV2: MultiAssetFilterV2;
MultiAssetFilterV3: MultiAssetFilterV3;
MultiAssetFilterV4: MultiAssetFilterV4;
MultiAssets: MultiAssets;
MultiAssetsV1: MultiAssetsV1;
MultiAssetsV2: MultiAssetsV2;
MultiAssetsV3: MultiAssetsV3;
MultiAssetsV4: MultiAssetsV4;
MultiAssetV0: MultiAssetV0;
MultiAssetV1: MultiAssetV1;
MultiAssetV2: MultiAssetV2;
MultiAssetV3: MultiAssetV3;
MultiAssetV4: MultiAssetV4;
MultiDisputeStatementSet: MultiDisputeStatementSet;
MultiLocation: MultiLocation;
MultiLocationV0: MultiLocationV0;
MultiLocationV1: MultiLocationV1;
MultiLocationV2: MultiLocationV2;
MultiLocationV3: MultiLocationV3;
MultiLocationV4: MultiLocationV4;
Multiplier: Multiplier;
Multisig: Multisig;
MultiSignature: MultiSignature;
MultiSigner: MultiSigner;
NetworkId: NetworkId;
NetworkIdV2: NetworkIdV2;
NetworkIdV3: NetworkIdV3;
NetworkIdV4: NetworkIdV4;
NetworkState: NetworkState;
NetworkStatePeerset: NetworkStatePeerset;
NetworkStatePeersetInfo: NetworkStatePeersetInfo;
@@ -769,6 +811,8 @@ declare module '@polkadot/types/types/registry' {
OriginKindV0: OriginKindV0;
OriginKindV1: OriginKindV1;
OriginKindV2: OriginKindV2;
OriginKindV3: OriginKindV3;
OriginKindV4: OriginKindV4;
OutboundHrmpChannelLimitations: OutboundHrmpChannelLimitations;
OutboundHrmpMessage: OutboundHrmpMessage;
OutboundLaneData: OutboundLaneData;
@@ -776,6 +820,7 @@ declare module '@polkadot/types/types/registry' {
OutboundPayload: OutboundPayload;
OutboundStatus: OutboundStatus;
Outcome: Outcome;
OutcomeV4: OutcomeV4;
OuterEnums15: OuterEnums15;
OverweightIndex: OverweightIndex;
Owner: Owner;
@@ -790,6 +835,8 @@ declare module '@polkadot/types/types/registry' {
PalletEventMetadataLatest: PalletEventMetadataLatest;
PalletEventMetadataV14: PalletEventMetadataV14;
PalletId: PalletId;
PalletInfoV3: PalletInfoV3;
PalletInfoV4: PalletInfoV4;
PalletMetadataLatest: PalletMetadataLatest;
PalletMetadataV14: PalletMetadataV14;
PalletMetadataV15: PalletMetadataV15;
@@ -842,6 +889,7 @@ declare module '@polkadot/types/types/registry' {
Points: Points;
PortableType: PortableType;
PortableTypeV14: PortableTypeV14;
PostDispatchInfo: PostDispatchInfo;
Precommits: Precommits;
PrefabWasmModule: PrefabWasmModule;
PrefixedStorageKey: PrefixedStorageKey;
@@ -862,6 +910,8 @@ declare module '@polkadot/types/types/registry' {
PvfExecTimeoutKind: PvfExecTimeoutKind;
PvfPrepTimeoutKind: PvfPrepTimeoutKind;
QueryId: QueryId;
QueryResponseInfoV3: QueryResponseInfoV3;
QueryResponseInfoV4: QueryResponseInfoV4;
QueryStatus: QueryStatus;
QueueConfigData: QueueConfigData;
QueuedParathread: QueuedParathread;
@@ -919,7 +969,10 @@ declare module '@polkadot/types/types/registry' {
ResponseV1: ResponseV1;
ResponseV2: ResponseV2;
ResponseV2Error: ResponseV2Error;
ResponseV2Result: ResponseV2Result;
ResponseV3: ResponseV3;
ResponseV3Error: ResponseV3Error;
ResponseV3Result: ResponseV3Result;
ResponseV4: ResponseV4;
Retriable: Retriable;
RewardDestination: RewardDestination;
RewardPoint: RewardPoint;
@@ -1156,6 +1209,7 @@ declare module '@polkadot/types/types/registry' {
U8: U8;
UnappliedSlash: UnappliedSlash;
UnappliedSlashOther: UnappliedSlashOther;
UncheckedFungibilityV4: UncheckedFungibilityV4;
UncleEntryItem: UncleEntryItem;
UnknownTransaction: UnknownTransaction;
UnlockChunk: UnlockChunk;
@@ -1194,6 +1248,8 @@ declare module '@polkadot/types/types/registry' {
VersionedResponse: VersionedResponse;
VersionedXcm: VersionedXcm;
VersionMigrationStage: VersionMigrationStage;
VersionV3: VersionV3;
VersionV4: VersionV4;
VestingInfo: VestingInfo;
VestingSchedule: VestingSchedule;
Vote: Vote;
@@ -1214,6 +1270,7 @@ declare module '@polkadot/types/types/registry' {
VrfProof: VrfProof;
Weight: Weight;
WeightLimitV2: WeightLimitV2;
WeightLimitV3: WeightLimitV3;
WeightMultiplier: WeightMultiplier;
WeightPerClass: WeightPerClass;
WeightToFeeCoefficient: WeightToFeeCoefficient;
@@ -1224,9 +1281,13 @@ declare module '@polkadot/types/types/registry' {
WildFungibilityV0: WildFungibilityV0;
WildFungibilityV1: WildFungibilityV1;
WildFungibilityV2: WildFungibilityV2;
WildFungibilityV3: WildFungibilityV3;
WildFungibilityV4: WildFungibilityV4;
WildMultiAsset: WildMultiAsset;
WildMultiAssetV1: WildMultiAssetV1;
WildMultiAssetV2: WildMultiAssetV2;
WildMultiAssetV3: WildMultiAssetV3;
WildMultiAssetV4: WildMultiAssetV4;
WinnersData: WinnersData;
WinnersData10: WinnersData10;
WinnersDataTuple: WinnersDataTuple;
@@ -1237,20 +1298,25 @@ declare module '@polkadot/types/types/registry' {
WithdrawReasons: WithdrawReasons;
Xcm: Xcm;
XcmAssetId: XcmAssetId;
XcmDryRunApiError: XcmDryRunApiError;
XcmDryRunEffects: XcmDryRunEffects;
XcmError: XcmError;
XcmErrorV0: XcmErrorV0;
XcmErrorV1: XcmErrorV1;
XcmErrorV2: XcmErrorV2;
XcmOrder: XcmOrder;
XcmErrorV3: XcmErrorV3;
XcmErrorV4: XcmErrorV4;
XcmOrderV0: XcmOrderV0;
XcmOrderV1: XcmOrderV1;
XcmOrderV2: XcmOrderV2;
XcmOrigin: XcmOrigin;
XcmOriginKind: XcmOriginKind;
XcmPaymentApiError: XcmPaymentApiError;
XcmpMessageFormat: XcmpMessageFormat;
XcmV0: XcmV0;
XcmV1: XcmV1;
XcmV2: XcmV2;
XcmV3: XcmV3;
XcmV4: XcmV4;
XcmVersion: XcmVersion;
} // InterfaceTypes
} // declare module
+14 -16
View File
@@ -5,32 +5,30 @@
// this is required to allow for ambient/previous definitions
import '@polkadot/types/types/registry';
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';
import type { FrameSupportTokensMiscIdAmount, StagingKusamaRuntimeDynamicParamsInflationFalloff, StagingKusamaRuntimeDynamicParamsInflationIdealStake, StagingKusamaRuntimeDynamicParamsInflationMaxInflation, StagingKusamaRuntimeDynamicParamsInflationMinInflation, StagingKusamaRuntimeDynamicParamsInflationParameters, StagingKusamaRuntimeDynamicParamsInflationParametersKey, StagingKusamaRuntimeDynamicParamsInflationParametersValue, StagingKusamaRuntimeDynamicParamsInflationUseAuctionSlots, StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin, StagingKusamaRuntimeNposCompactSolution24, StagingKusamaRuntimeOriginCaller, StagingKusamaRuntimeProxyType, StagingKusamaRuntimeRuntime, StagingKusamaRuntimeRuntimeError, StagingKusamaRuntimeRuntimeFreezeReason, StagingKusamaRuntimeRuntimeHoldReason, StagingKusamaRuntimeRuntimeParameters, StagingKusamaRuntimeRuntimeParametersKey, StagingKusamaRuntimeRuntimeParametersValue, StagingKusamaRuntimeSessionKeys } from '@polkadot/types/lookup';
declare module '@polkadot/types/types/registry' {
interface InterfaceTypes {
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;
FrameSupportTokensMiscIdAmount: FrameSupportTokensMiscIdAmount;
StagingKusamaRuntimeDynamicParamsInflationFalloff: StagingKusamaRuntimeDynamicParamsInflationFalloff;
StagingKusamaRuntimeDynamicParamsInflationIdealStake: StagingKusamaRuntimeDynamicParamsInflationIdealStake;
StagingKusamaRuntimeDynamicParamsInflationMaxInflation: StagingKusamaRuntimeDynamicParamsInflationMaxInflation;
StagingKusamaRuntimeDynamicParamsInflationMinInflation: StagingKusamaRuntimeDynamicParamsInflationMinInflation;
StagingKusamaRuntimeDynamicParamsInflationParameters: StagingKusamaRuntimeDynamicParamsInflationParameters;
StagingKusamaRuntimeDynamicParamsInflationParametersKey: StagingKusamaRuntimeDynamicParamsInflationParametersKey;
StagingKusamaRuntimeDynamicParamsInflationParametersValue: StagingKusamaRuntimeDynamicParamsInflationParametersValue;
StagingKusamaRuntimeDynamicParamsInflationUseAuctionSlots: StagingKusamaRuntimeDynamicParamsInflationUseAuctionSlots;
StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin: StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin;
StagingKusamaRuntimeNposCompactSolution24: StagingKusamaRuntimeNposCompactSolution24;
StagingKusamaRuntimeOriginCaller: StagingKusamaRuntimeOriginCaller;
StagingKusamaRuntimeProxyType: StagingKusamaRuntimeProxyType;
StagingKusamaRuntimeRuntime: StagingKusamaRuntimeRuntime;
StagingKusamaRuntimeRuntimeError: StagingKusamaRuntimeRuntimeError;
StagingKusamaRuntimeRuntimeFreezeReason: StagingKusamaRuntimeRuntimeFreezeReason;
StagingKusamaRuntimeRuntimeHoldReason: StagingKusamaRuntimeRuntimeHoldReason;
StagingKusamaRuntimeRuntimeParameters: StagingKusamaRuntimeRuntimeParameters;
StagingKusamaRuntimeRuntimeParametersKey: StagingKusamaRuntimeRuntimeParametersKey;
StagingKusamaRuntimeRuntimeParametersValue: StagingKusamaRuntimeRuntimeParametersValue;
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
+8 -8
View File
@@ -18,17 +18,17 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "15.0.2",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^12.6.2",
"@polkadot/x-bigint": "^12.6.2",
"tslib": "^2.6.2"
"@polkadot/util": "^13.2.3",
"@polkadot/x-bigint": "^13.2.3",
"tslib": "^2.8.0"
},
"devDependencies": {
"@polkadot/types": "11.0.2",
"@polkadot/types-augment": "11.0.2",
"@polkadot/types-support": "11.0.2",
"@polkadot/util-crypto": "^12.6.2"
"@polkadot/types": "15.0.2",
"@polkadot/types-augment": "15.0.2",
"@polkadot/types-support": "15.0.2",
"@polkadot/util-crypto": "^13.2.3"
}
}
+1 -1
View File
@@ -9,7 +9,7 @@ import { compactFromU8aLim, identity, isHex, isU8a, logger, stringify, u8aToU8a
import { AbstractArray } from '../abstract/Array.js';
import { decodeU8aVec, typeToConstructor } from '../utils/index.js';
const MAX_LENGTH = 64 * 1024;
const MAX_LENGTH = 512 * 1024;
const l = logger('Vec');
+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: '11.0.2' };
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '15.0.2' };
@@ -71,6 +71,7 @@ export interface Registry {
getClassName (clazz: CodecClass): string | undefined;
getOrThrow <T extends Codec = Codec, K extends string = string> (name: K, msg?: string): CodecClass<T>;
getOrUnknown <T extends Codec = Codec, K extends string = string> (name: K): CodecClass<T>;
getTransactionExtensionVersion (): number;
getSignedExtensionExtra (): Record<string, string>;
getSignedExtensionTypes (): Record<string, string>;
+5 -5
View File
@@ -18,14 +18,14 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "15.0.2",
"main": "index.js",
"dependencies": {
"@polkadot/types-codec": "11.0.2",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
"@polkadot/types-codec": "15.0.2",
"@polkadot/util": "^13.2.3",
"tslib": "^2.8.0"
},
"devDependencies": {
"@polkadot/types": "11.0.2"
"@polkadot/types": "15.0.2"
}
}
+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: '11.0.2' };
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '15.0.2' };
+2 -2
View File
@@ -3,9 +3,9 @@
import { objectSpread } from '@polkadot/util';
export const XCM_MAPPINGS = ['AssetInstance', 'Fungibility', 'Junction', 'Junctions', 'MultiAsset', 'MultiAssetFilter', 'MultiLocation', 'Response', 'WildFungibility', 'WildMultiAsset', 'Xcm', 'XcmError', 'XcmOrder'];
export const XCM_MAPPINGS = ['AssetInstance', 'Fungibility', 'Junction', 'Junctions', 'MultiAsset', 'MultiAssetFilter', 'MultiLocation', 'Response', 'WildFungibility', 'WildMultiAsset', 'Xcm', 'XcmError'];
export function mapXcmTypes (version: 'V0' | 'V1' | 'V2'): Record<string, string> {
export function mapXcmTypes (version: 'V0' | 'V1' | 'V2' | 'V3' | 'V4'): Record<string, string> {
return XCM_MAPPINGS.reduce<Record<string, string>>((all, key) =>
objectSpread(all, { [key]: `${key}${version}` }), {}
);
+8 -8
View File
@@ -18,17 +18,17 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "15.0.2",
"main": "index.js",
"dependencies": {
"@polkadot/networks": "^12.6.2",
"@polkadot/types": "11.0.2",
"@polkadot/types-codec": "11.0.2",
"@polkadot/types-create": "11.0.2",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
"@polkadot/networks": "^13.2.3",
"@polkadot/types": "15.0.2",
"@polkadot/types-codec": "15.0.2",
"@polkadot/types-create": "15.0.2",
"@polkadot/util": "^13.2.3",
"tslib": "^2.8.0"
},
"devDependencies": {
"@polkadot/api": "11.0.2"
"@polkadot/api": "15.0.2"
}
}
+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: '11.0.2' };
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '15.0.2' };
@@ -16,6 +16,8 @@ import * as allGen from './index.js';
const keys = ['kusama', 'polkadot', 'westend'] as const;
const urls = {
'asset-hub-kusama': 'wss://kusama-asset-hub-rpc.polkadot.io',
'asset-hub-polkadot': 'wss://polkadot-asset-hub-rpc.polkadot.io',
kusama: 'wss://kusama-rpc.polkadot.io',
polkadot: 'wss://rpc.polkadot.io',
westend: 'wss://westend-rpc.polkadot.io'

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