Compare commits

..
179 Commits
Author SHA1 Message Date
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
github-actions[bot] e0e9829417 [CI Skip] release/stable 11.0.2
skip-checks: true
2024-04-24 17:12:04 +00:00
Tarik Gul 00bc5c818b 11.0.2 (#5866) 2024-04-24 13:04:17 -04:00
github-actions[bot] f43600d773 [CI Skip] bump/beta 11.0.2-0-x
skip-checks: true
2024-04-24 16:38:09 +00:00
Tarik Gul fc112988f0 Fix type for TAssetConversion in Polkadot Asset hub (#5865) 2024-04-24 12:30:42 -04:00
github-actions[bot] a9fa603ad8 [CI Skip] release/stable 11.0.1
skip-checks: true
2024-04-23 21:08:58 +00:00
Tarik Gul d86bff91a7 11.0.1 (#5864) 2024-04-24 00:01:19 +03:00
github-actions[bot] 26b5303c2d [CI Skip] bump/beta 10.13.2-3-x
skip-checks: true
2024-04-23 18:13:43 +00:00
Tarik Gul b4ebdc29a1 Add claimedRewardsEra to api.derive.staking.query for compatibility with legacyClaimedRewards (#5862)
* Fix ClaimedRewards breaking change

* fix some naming

* remove consoles

* Fix logic

* fix output type

* Fix StakerRewards

* Fix electedInfo
2024-04-23 21:06:11 +03:00
github-actions[bot] 6e4dc0b52d [CI Skip] bump/beta 10.13.2-2-x
skip-checks: true
2024-04-23 12:48:34 +00:00
Matias Volpe 02ec613def Bump @substrate/connect to 0.8.10 (#5863) 2024-04-23 08:41:06 -04:00
github-actions[bot] a83e1da941 [CI Skip] bump/beta 10.13.2-1-x
skip-checks: true
2024-04-22 19:54:07 +00:00
Tarik Gul c4e8270b45 Update api.derive.staking calls with breaking changes (#5860)
* Fix staking derives

* ownexposure

* fix query

* Add WithExposureMEta

* exposureMEta

* fix ownExposures

* Add page input for staking.query

* Update types for query

* add page param to ownExposure

* change page to exposurePaged

* fix small nit
2024-04-22 22:46:33 +03:00
github-actions[bot] ddb9b44460 [CI Skip] bump/beta 10.13.2-0-x
skip-checks: true
2024-04-21 13:22:40 +00:00
Tarik Gul 887812eeaa Update polkadot types-known for latest runtime upgrades (#5857) 2024-04-21 16:15:10 +03:00
170 changed files with 37373 additions and 25442 deletions
-893
View File
File diff suppressed because one or more lines are too long
+925
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.0.cjs
+229
View File
@@ -1,5 +1,234 @@
# CHANGELOG
## 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
- Fix type for TAssetConversion in Polkadot Asset hub
## 11.0.1 Apr 23, 2024
Breaking Changes:
Note! The following breaking changes only refer to `@polkadot/api-derive` calls under `api.derive.staking.*` due to the most recent breaking changes in runtime version v1.2. Please refer to the link next to the bullet points for more information.
- Update` api.derive.staking` calls with breaking changes ([#5860](https://github.com/polkadot-js/api/pull/5860))
- Add `claimedRewardsEra` to api.derive.staking.query for compatibility with legacyClaimedRewards ([#5862](https://github.com/polkadot-js/api/pull/5862))
Contributed:
- Bump @substrate/connect to 0.8.10 (Thanks to https://github.com/kratico)
Changes:
- Update polkadot types-known for latest runtime upgrades
## 10.13.1 Apr 16, 2024
Changes:
+11 -5
View File
@@ -1,8 +1,8 @@
3512 Jaco Bump deps (#5785)
109 Tarik Gul 14.0.1 (#5995)
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
37 Keith Ingram Update contract types and rpc (#4541)
35 Stefanie Doll Updated child storage parameters (#1709)
33 Tarik Gul 10.13.1 (#5854)
20 Luke Schoen fix: Fixes TypeError: Cannot read property 'vesting' of undefined (#1970)
19 Xiliang Chen no warm for unknown signed extensions (#5601)
15 Jeremías Díaz feat(types): add correct tuple type to storage key (#3054)
@@ -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)
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 Matias Volpe Bump @substrate/connect to 0.8.8 (#5817)
4 Nantian fix bigint type (#3869)
4 Scott Twiname Add support for historical BlockNumber rpc methods (#4574)
4 Thibaut Sardan no subscription for http (#3127)
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,14 @@
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 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)
@@ -75,9 +77,12 @@
1 Ermal Kaleci fix cache key (rpc-provider) (#5745)
1 flex Change BeefySignedCommitment signatures type to EcdsaSignature (#4204)
1 Florian Franzen metadataMd: use endpoint for rpc and runtime details too (#5628)
1 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 +115,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.0",
"private": true,
"repository": {
"type": "git",
@@ -14,10 +14,10 @@
},
"sideEffects": false,
"type": "module",
"version": "10.13.1",
"version": "14.0.1",
"versions": {
"git": "10.13.1",
"npm": "10.13.1"
"git": "14.0.1",
"npm": "14.0.1"
},
"workspaces": [
"packages/*"
@@ -40,11 +40,11 @@
"test:one": "polkadot-dev-run-test --env node"
},
"devDependencies": {
"@polkadot/dev": "^0.78.9",
"@polkadot/dev": "^0.80.1",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/node": "^20.11.6"
"@types/node": "^20.15.0"
},
"resolutions": {
"typescript": "^5.3.3"
"typescript": "^5.5.4"
}
}
+8 -8
View File
@@ -18,15 +18,15 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "10.13.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/api-base": "10.13.1",
"@polkadot/rpc-augment": "10.13.1",
"@polkadot/types": "10.13.1",
"@polkadot/types-augment": "10.13.1",
"@polkadot/types-codec": "10.13.1",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
"@polkadot/api-base": "14.0.1",
"@polkadot/rpc-augment": "14.0.1",
"@polkadot/types": "14.0.1",
"@polkadot/types-augment": "14.0.1",
"@polkadot/types-codec": "14.0.1",
"@polkadot/util": "^13.1.1",
"tslib": "^2.7.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.
**/
+60 -6
View File
@@ -6,27 +6,32 @@
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, Bytes, Null, Option, Result, U64, Vec, bool, u128, u32 } from '@polkadot/types-codec';
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
import type { 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 { CallDryRunEffects, XcmDryRunApiError, XcmDryRunEffects } from '@polkadot/types/interfaces/dryRunApi';
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 { ApprovalVotingParams, AsyncBackingParams, BackingState, CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreIndex, 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 { AccountId, Balance, Block, BlockNumber, Call, ExtrinsicInclusionMode, Hash, Header, Index, KeyTypeId, OriginCaller, RuntimeCall, Slot, ValidatorId, Weight, WeightV2 } 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 { VersionedMultiLocation, VersionedXcm } from '@polkadot/types/interfaces/xcm';
import type { XcmPaymentApiError } from '@polkadot/types/interfaces/xcmPaymentApi';
import type { Error } from '@polkadot/types/interfaces/xcmRuntimeApi';
import type { XcmVersionedAssetId, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
import type { IExtrinsic, Observable } from '@polkadot/types/types';
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
@@ -148,7 +153,7 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xdf6acb689907609b/4 */
/** 0xdf6acb689907609b/5 */
core: {
/**
* Execute the given block.
@@ -157,7 +162,7 @@ declare module '@polkadot/api-base/types/calls' {
/**
* Initialize a block with the given header.
**/
initializeBlock: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
initializeBlock: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<ExtrinsicInclusionMode>>;
/**
* Returns the version of the runtime.
**/
@@ -167,6 +172,21 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x91b1c8b16328eb92/1 */
dryRunApi: {
/**
* Dry run call
**/
dryRunCall: AugmentedCall<ApiType, (origin: OriginCaller | { System: any } | string | Uint8Array, call: RuntimeCall | IMethod | string | Uint8Array) => Observable<Result<CallDryRunEffects, XcmDryRunApiError>>>;
/**
* Dry run XCM program
**/
dryRunXcm: AugmentedCall<ApiType, (originLocation: VersionedMultiLocation | { V0: any } | { V1: any } | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, xcm: VersionedXcm | { V0: any } | { V1: any } | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<XcmDryRunEffects, XcmDryRunApiError>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xfbc577b9d747efd6/1 */
genesisBuilder: {
/**
@@ -205,6 +225,17 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x9ffb505aa738d69c/1 */
locationToAccountApi: {
/**
* Converts `Location` to `AccountId`
**/
convertLocation: AugmentedCall<ApiType, (location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<AccountId, Error>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x37e397fc7c91f5e4/2 */
metadata: {
/**
@@ -281,7 +312,7 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xaf2c0297a23e6d3d/10 */
/** 0xaf2c0297a23e6d3d/11 */
parachainHost: {
/**
* Approval voting configuration parameters
@@ -311,6 +342,10 @@ declare module '@polkadot/api-base/types/calls' {
* Checks if the given validation outputs pass the acceptance criteria.
**/
checkValidationOutputs: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, outputs: CandidateCommitments | { upwardMessages?: any; horizontalMessages?: any; newValidationCode?: any; headData?: any; processedDownwardMessages?: any; hrmpWatermark?: any } | string | Uint8Array) => Observable<bool>>;
/**
* Claim queue
**/
claimQueue: AugmentedCall<ApiType, () => Observable<BTreeMap<CoreIndex, Vec<u32>>>>;
/**
* Returns a list of all disabled validators at the given block
**/
@@ -487,5 +522,24 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x6ff52ee858e6c5bd/1 */
xcmPaymentApi: {
/**
* The API to query acceptable payment assets
**/
queryAcceptablePaymentAssets: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Result<Vec<XcmVersionedAssetId>, XcmPaymentApiError>>>;
/**
*
**/
queryWeightToAssetFee: AugmentedCall<ApiType, (weight: WeightV2 | { refTime?: any; proofSize?: any } | string | Uint8Array, asset: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<u128, XcmPaymentApiError>>>;
/**
*
**/
queryXcmWeight: AugmentedCall<ApiType, (message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<WeightV2, XcmPaymentApiError>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
} // AugmentedCalls
} // declare module
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: '10.13.1' };
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '14.0.1' };
@@ -661,6 +661,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).
@@ -1619,6 +1619,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`.
**/
@@ -1708,6 +1712,42 @@ declare module '@polkadot/api-base/types/errors' {
**/
[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
**/
[key: string]: AugmentedError<ApiType>;
};
system: {
/**
* The origin filter prevent the call to be dispatched.
+29 -2
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, PolkadotPrimitivesV6CandidateReceipt, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeProxyType, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, StagingXcmV4AssetAssets, StagingXcmV4Location, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmV3TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
@@ -397,7 +397,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 }>;
/**
@@ -940,6 +940,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 +1013,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.
+26 -1
View File
@@ -11,7 +11,7 @@ import type { BTreeMap, BTreeSet, Bytes, Null, Option, U8aFixed, Vec, bool, u128
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 { 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, 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, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerPalletCoreOccupied, PolkadotRuntimeParachainsSchedulerPalletParasEntry, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, PolkadotRuntimeSessionKeys, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
import type { Observable } from '@polkadot/types/types';
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
@@ -1760,6 +1760,31 @@ declare module '@polkadot/api-base/types/storage' {
**/
[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
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
system: {
/**
* The full account information for a particular account ID.
+27 -2
View File
@@ -19,10 +19,11 @@ import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/t
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
import type { CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreState, DisputeProof, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PendingSlashes, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
import type { ApprovalVotingParams, AsyncBackingParams, BackingState, CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreState, DisputeProof, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, NodeFeatures, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PendingSlashes, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
import type { SessionIndex } from '@polkadot/types/interfaces/session';
import type { ValidatorIndex } from '@polkadot/types/interfaces/staking';
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
@@ -280,12 +281,20 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xaf2c0297a23e6d3d/5 */
/** 0xaf2c0297a23e6d3d/10 */
parachainHost: {
/**
* Approval voting configuration parameters
**/
approvalVotingParams: AugmentedCall<ApiType, () => Observable<ApprovalVotingParams>>;
/**
* Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.
**/
assumedValidationData: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, hash: Hash | string | Uint8Array) => Observable<Option<ITuple<[PersistedValidationData, ValidationCodeHash]>>>>;
/**
* Returns candidate's acceptance limitations for asynchronous backing for a relay parent
**/
asyncBackingParams: AugmentedCall<ApiType, () => Observable<AsyncBackingParams>>;
/**
* Yields information on all availability cores as relevant to the child block.
**/
@@ -302,6 +311,10 @@ declare module '@polkadot/api-base/types/calls' {
* Checks if the given validation outputs pass the acceptance criteria.
**/
checkValidationOutputs: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, outputs: CandidateCommitments | { upwardMessages?: any; horizontalMessages?: any; newValidationCode?: any; headData?: any; processedDownwardMessages?: any; hrmpWatermark?: any } | string | Uint8Array) => Observable<bool>>;
/**
* Returns a list of all disabled validators at the given block
**/
disabledValidators: AugmentedCall<ApiType, () => Observable<ValidatorIndex>>;
/**
* Returns all onchain disputes.
**/
@@ -318,10 +331,22 @@ declare module '@polkadot/api-base/types/calls' {
* Returns a merkle proof of a validator session key
**/
keyOwnershipProof: AugmentedCall<ApiType, (validatorId: ValidatorId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
/**
* Get the minimum number of backing votes for a parachain candidate. This is a staging method! Do not use on production runtimes!
**/
minimumBackingVotes: AugmentedCall<ApiType, () => Observable<u32>>;
/**
* Get node features. This is a staging method! Do not use on production runtimes!
**/
nodeFeatures: AugmentedCall<ApiType, () => Observable<NodeFeatures>>;
/**
* Scrape dispute relevant from on-chain, backing votes and resolved disputes.
**/
onChainVotes: AugmentedCall<ApiType, () => Observable<Option<ScrapedOnChainVotes>>>;
/**
* Returns the state of parachain backing for a given para
**/
paraBackingState: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Option<BackingState>>>;
/**
* Yields the persisted validation data for the given `ParaId` along with an assumption that should be used if the para currently occupies a core.
**/
+43 -1
View File
@@ -11,7 +11,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64,
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, PalletBalancesAdjustmentDirection, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6AsyncBackingAsyncBackingParams, PolkadotPrimitivesV6ExecutorParams, PolkadotPrimitivesV6InherentData, PolkadotPrimitivesV6PvfCheckStatement, PolkadotPrimitivesV6SlashingDisputeProof, PolkadotPrimitivesV6ValidatorAppSignature, PolkadotPrimitivesVstagingApprovalVotingParams, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeOriginCaller, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyEquivocationProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, StagingXcmV4Location, XcmV3WeightLimit, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, PalletBalancesAdjustmentDirection, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletVestingVestingInfo, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6AsyncBackingAsyncBackingParams, PolkadotPrimitivesV6ExecutorParams, PolkadotPrimitivesV6InherentData, PolkadotPrimitivesV6PvfCheckStatement, PolkadotPrimitivesV6SlashingDisputeProof, PolkadotPrimitivesV6ValidatorAppSignature, PolkadotPrimitivesVstagingApprovalVotingParams, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeOriginCaller, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyEquivocationProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, StagingXcmExecutorAssetTransferTransferType, StagingXcmV4Location, XcmV3WeightLimit, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
@@ -560,6 +560,10 @@ declare module '@polkadot/api-base/types/submittable' {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
hrmp: {
/**
* See [`Pallet::establish_channel_with_system`].
**/
establishChannelWithSystem: AugmentedSubmittable<(targetSystemChain: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* See [`Pallet::establish_system_channel`].
**/
@@ -1244,6 +1248,10 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::rebond`].
**/
rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
/**
* See [`Pallet::restore_ledger`].
**/
restoreLedger: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, maybeController: Option<AccountId32> | null | Uint8Array | AccountId32 | string, maybeTotal: Option<u128> | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option<Vec<PalletStakingUnlockChunk>> | null | Uint8Array | Vec<PalletStakingUnlockChunk> | (PalletStakingUnlockChunk | { value?: any; era?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<AccountId32>, Option<u128>, Option<Vec<PalletStakingUnlockChunk>>]>;
/**
* See [`Pallet::scale_validator_count`].
**/
@@ -1293,6 +1301,36 @@ declare module '@polkadot/api-base/types/submittable' {
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
stateTrieMigration: {
/**
* See [`Pallet::continue_migrate`].
**/
continueMigrate: AugmentedSubmittable<(limits: PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string | Uint8Array, realSizeUpper: u32 | AnyNumber | Uint8Array, witnessTask: PalletStateTrieMigrationMigrationTask | { progressTop?: any; progressChild?: any; size_?: any; topItems?: any; childItems?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationMigrationLimits, u32, PalletStateTrieMigrationMigrationTask]>;
/**
* See [`Pallet::control_auto_migration`].
**/
controlAutoMigration: AugmentedSubmittable<(maybeConfig: Option<PalletStateTrieMigrationMigrationLimits> | null | Uint8Array | PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string) => SubmittableExtrinsic<ApiType>, [Option<PalletStateTrieMigrationMigrationLimits>]>;
/**
* See [`Pallet::force_set_progress`].
**/
forceSetProgress: AugmentedSubmittable<(progressTop: PalletStateTrieMigrationProgress | { ToStart: any } | { LastKey: any } | { Complete: any } | string | Uint8Array, progressChild: PalletStateTrieMigrationProgress | { ToStart: any } | { LastKey: any } | { Complete: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationProgress, PalletStateTrieMigrationProgress]>;
/**
* See [`Pallet::migrate_custom_child`].
**/
migrateCustomChild: AugmentedSubmittable<(root: Bytes | string | Uint8Array, childKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[], totalSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Vec<Bytes>, u32]>;
/**
* See [`Pallet::migrate_custom_top`].
**/
migrateCustomTop: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[], witnessSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>, u32]>;
/**
* See [`Pallet::set_signed_max_limits`].
**/
setSignedMaxLimits: AugmentedSubmittable<(limits: PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationMigrationLimits]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
system: {
/**
* See [`Pallet::apply_authorized_upgrade`].
@@ -1548,6 +1586,10 @@ declare module '@polkadot/api-base/types/submittable' {
* See [`Pallet::transfer_assets`].
**/
transferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
/**
* See [`Pallet::transfer_assets_using_type_and_then`].
**/
transferAssetsUsingTypeAndThen: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assetsTransferType: StagingXcmExecutorAssetTransferTransferType | { Teleport: any } | { LocalReserve: any } | { DestinationReserve: any } | { RemoteReserve: any } | string | Uint8Array, remoteFeesId: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array, feesTransferType: StagingXcmExecutorAssetTransferTransferType | { Teleport: any } | { LocalReserve: any } | { DestinationReserve: any } | { RemoteReserve: any } | string | Uint8Array, customXcmOnDest: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedAssets, StagingXcmExecutorAssetTransferTransferType, XcmVersionedAssetId, StagingXcmExecutorAssetTransferTransferType, XcmVersionedXcm, XcmV3WeightLimit]>;
/**
* Generic tx
**/
+11 -13
View File
@@ -353,6 +353,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 +404,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
**/
@@ -1623,19 +1634,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.
**/
+92 -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.
**/
@@ -547,6 +585,10 @@ 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.
**/
@@ -771,6 +813,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 +832,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 +1938,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 +2033,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 +2053,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 +2099,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.
**/
@@ -2118,6 +2188,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.
**/
@@ -2230,6 +2304,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
**/
@@ -2813,6 +2891,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 +2907,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 +2925,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 +3214,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.
**/
+42 -16
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, PalletCoreFellowshipParamsTypeU128, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSafeModeExitReason, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpStakingExposure, SpStatementStoreStatement, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
@@ -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
**/
@@ -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.
**/
@@ -258,6 +276,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
**/
@@ -421,10 +443,6 @@ 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.
**/
@@ -486,6 +504,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 +547,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 +555,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
**/
@@ -668,7 +690,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 +933,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.
**/
@@ -1544,6 +1570,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 +1627,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
**/
@@ -2392,14 +2426,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.
**/
+80 -22
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, 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, 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.
**/
@@ -396,10 +408,6 @@ declare module '@polkadot/api-base/types/storage' {
[key: string]: QueryableStorageEntry<ApiType>;
};
broker: {
/**
* Records of allowed renewals.
**/
allowedRenewals: AugmentedQuery<ApiType, (arg: PalletBrokerAllowedRenewalId | { core?: any; when?: any } | string | Uint8Array) => Observable<Option<PalletBrokerAllowedRenewalRecord>>, [PalletBrokerAllowedRenewalId]> & QueryableStorageEntry<ApiType, [PalletBrokerAllowedRenewalId]>;
/**
* The current configuration of this pallet.
**/
@@ -425,13 +433,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 +589,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 +860,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 +1424,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 +1463,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
**/
@@ -1861,6 +1908,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 +1925,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 +2103,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 +2143,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
**/
@@ -10,7 +10,7 @@ import type { Bytes, Null, Option, Result, U64, Vec, bool, u128, u32 } from '@po
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 { 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';
@@ -29,7 +29,7 @@ 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 { SpConsensusBeefyDoubleVotingProof, SpStatementStoreStatement, StagingXcmV3MultiLocation } from '@polkadot/types/lookup';
import type { IExtrinsic, Observable } from '@polkadot/types/types';
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
@@ -120,7 +120,7 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x49eaaf1b548a0cb0/3 */
/** 0x49eaaf1b548a0cb0/4 */
beefyApi: {
/**
* Return the block number where BEEFY consensus is enabled/started
@@ -131,9 +131,9 @@ declare module '@polkadot/api-base/types/calls' {
**/
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: ValidatorSetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
/**
* Submits an unsigned extrinsic to report an equivocation.
* Submits an unsigned extrinsic to report a double voting equivocation.
**/
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BeefyEquivocationProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
submitReportDoubleVotingUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: SpConsensusBeefyDoubleVotingProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
/**
* Return the current active BEEFY validator set
**/
+167 -79
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, SpConsensusBeefyForkVotingProof, 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>;
@@ -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`.
@@ -866,6 +893,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 +988,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 +1000,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: SpConsensusBeefyForkVotingProof | { vote?: any; ancestryProof?: any; header?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyForkVotingProof, 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: SpConsensusBeefyForkVotingProof | { vote?: any; ancestryProof?: any; header?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyForkVotingProof, 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 +1180,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]>;
/**
@@ -1166,6 +1236,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 +1310,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 +1819,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 +1840,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 +2501,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 +2514,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`.
*
@@ -3790,6 +3896,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.
*
@@ -3899,6 +4015,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 +4105,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 +4200,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 +4218,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 +4320,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 +4439,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`.
@@ -5707,7 +5850,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 +6072,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 +6792,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 +6819,7 @@ declare module '@polkadot/api-base/types/submittable' {
*
* ## Dispatch Origin
*
* Must be signed.
* Must be signed
*
* ## Details
*
@@ -6711,43 +6836,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": "10.13.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "10.13.1",
"@polkadot/types": "10.13.1",
"@polkadot/util": "^12.6.2",
"@polkadot/rpc-core": "14.0.1",
"@polkadot/types": "14.0.1",
"@polkadot/util": "^13.1.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
"tslib": "^2.7.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: '10.13.1' };
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '14.0.1' };
+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": "10.13.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/api": "10.13.1",
"@polkadot/api-augment": "10.13.1",
"@polkadot/types": "10.13.1",
"@polkadot/types-codec": "10.13.1",
"@polkadot/types-create": "10.13.1",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@polkadot/api": "14.0.1",
"@polkadot/api-augment": "14.0.1",
"@polkadot/types": "14.0.1",
"@polkadot/types-codec": "14.0.1",
"@polkadot/types-create": "14.0.1",
"@polkadot/util": "^13.1.1",
"@polkadot/util-crypto": "^13.1.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
"tslib": "^2.7.0"
},
"devDependencies": {
"@polkadot/api-augment": "10.13.1",
"@polkadot/keyring": "^12.6.2",
"@polkadot/types-support": "10.13.1"
"@polkadot/api-augment": "14.0.1",
"@polkadot/keyring": "^13.1.1",
"@polkadot/types-support": "14.0.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '10.13.1' };
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '14.0.1' };
+15 -15
View File
@@ -18,25 +18,25 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "10.13.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/api": "10.13.1",
"@polkadot/api-augment": "10.13.1",
"@polkadot/api-base": "10.13.1",
"@polkadot/rpc-core": "10.13.1",
"@polkadot/types": "10.13.1",
"@polkadot/types-codec": "10.13.1",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@polkadot/api": "14.0.1",
"@polkadot/api-augment": "14.0.1",
"@polkadot/api-base": "14.0.1",
"@polkadot/rpc-core": "14.0.1",
"@polkadot/types": "14.0.1",
"@polkadot/types-codec": "14.0.1",
"@polkadot/util": "^13.1.1",
"@polkadot/util-crypto": "^13.1.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
"tslib": "^2.7.0"
},
"devDependencies": {
"@polkadot/api": "10.13.1",
"@polkadot/api-augment": "10.13.1",
"@polkadot/rpc-augment": "10.13.1",
"@polkadot/rpc-provider": "10.13.1",
"@polkadot/types-support": "10.13.1"
"@polkadot/api": "14.0.1",
"@polkadot/api-augment": "14.0.1",
"@polkadot/rpc-augment": "14.0.1",
"@polkadot/rpc-provider": "14.0.1",
"@polkadot/types-support": "14.0.1"
}
}
@@ -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;
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '10.13.1' };
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '14.0.1' };
@@ -17,11 +17,11 @@ function combineAccounts (nextElected: AccountId[], validators: AccountId[]): Ac
return arrayFlatten([nextElected, validators.filter((v) => !nextElected.find((n) => n.eq(v)))]);
}
export function electedInfo (instanceId: string, api: DeriveApi): (flags?: StakingQueryFlags) => Observable<DeriveStakingElected> {
return memo(instanceId, (flags: StakingQueryFlags = DEFAULT_FLAGS): Observable<DeriveStakingElected> =>
export function electedInfo (instanceId: string, api: DeriveApi): (flags?: StakingQueryFlags, page?: number) => Observable<DeriveStakingElected> {
return memo(instanceId, (flags: StakingQueryFlags = DEFAULT_FLAGS, page = 0): Observable<DeriveStakingElected> =>
api.derive.staking.validators().pipe(
switchMap(({ nextElected, validators }): Observable<DeriveStakingElected> =>
api.derive.staking.queryMulti(combineAccounts(nextElected, validators), flags).pipe(
api.derive.staking.queryMulti(combineAccounts(nextElected, validators), flags, page).pipe(
map((info): DeriveStakingElected => ({
info,
nextElected,
+31 -10
View File
@@ -2,7 +2,10 @@
// SPDX-License-Identifier: Apache-2.0
import type { Observable } from 'rxjs';
import type { Option, u32 } from '@polkadot/types';
import type { EraIndex } from '@polkadot/types/interfaces';
import type { SpStakingExposure, SpStakingExposurePage, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
import type { AnyNumber } from '@polkadot/types-codec/types';
import type { DeriveApi, DeriveOwnExposure } from '../types.js';
import { combineLatest, map, of } from 'rxjs';
@@ -10,24 +13,42 @@ import { combineLatest, map, of } from 'rxjs';
import { firstMemo, memo } from '../util/index.js';
import { erasHistoricApplyAccount } from './util.js';
export function _ownExposures (instanceId: string, api: DeriveApi): (accountId: Uint8Array | string, eras: EraIndex[], withActive: boolean) => Observable<DeriveOwnExposure[]> {
return memo(instanceId, (accountId: Uint8Array | string, eras: EraIndex[], _withActive: boolean): Observable<DeriveOwnExposure[]> =>
eras.length
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([
combineLatest(eras.map((e) => api.query.staking.erasStakersClipped(e, accountId))),
combineLatest(eras.map((e) => api.query.staking.erasStakers(e, accountId)))
// Backwards and forward compat for historical integrity when using `erasHistoricApplyAccount`
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]): DeriveOwnExposure[] =>
eras.map((era, index) => ({ clipped: clp[index], era, exposure: exp[index] }))
map(([clp, exp, paged, expMeta]): DeriveOwnExposure[] =>
eras.map((era, index) => ({ clipped: clp[index], era, exposure: exp[index], exposureMeta: expMeta[index], exposurePaged: paged[index] }))
)
)
: of([])
: of([]);
}
);
}
export const ownExposure = /*#__PURE__*/ firstMemo(
(api: DeriveApi, accountId: Uint8Array | string, era: EraIndex) =>
api.derive.staking._ownExposures(accountId, [era], true)
(api: DeriveApi, accountId: Uint8Array | string, era: EraIndex, page?: u32 | AnyNumber) =>
api.derive.staking._ownExposures(accountId, [era], true, page || 0)
);
export const ownExposures = /*#__PURE__*/ erasHistoricApplyAccount('_ownExposures');
+106 -17
View File
@@ -2,9 +2,10 @@
// SPDX-License-Identifier: Apache-2.0
import type { Observable } from 'rxjs';
import type { Option } 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, SpStakingExposure } 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';
import { combineLatest, map, of, switchMap } from 'rxjs';
@@ -19,11 +20,70 @@ function rewardDestinationCompat (rewardDestination: PalletStakingRewardDestinat
: (rewardDestination as PalletStakingRewardDestination);
}
function parseDetails (stashId: AccountId, controllerIdOpt: Option<AccountId> | null, nominatorsOpt: Option<PalletStakingNominations>, rewardDestinationOpts: Option<PalletStakingRewardDestination> | PalletStakingRewardDestination, validatorPrefs: PalletStakingValidatorPrefs, exposure: SpStakingExposure, stakingLedgerOpt: Option<PalletStakingStakingLedger>): DeriveStakingQuery {
function filterClaimedRewards (api: DeriveApi, cl: number[]): Vec<u32> {
return api.registry.createType('Vec<u32>', cl.filter((c) => c !== -1));
}
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,
exposure,
exposureEraStakers,
exposureMeta,
exposurePaged: exposure,
nominators: nominatorsOpt.isSome
? nominatorsOpt.unwrap().targets
: [],
@@ -57,11 +117,25 @@ function getLedgers (api: DeriveApi, optIds: (Option<AccountId> | null)[], { wit
);
}
function getStashInfo (api: DeriveApi, stashIds: AccountId[], activeEra: EraIndex, { withController, withDestination, withExposure, withLedger, withNominations, withPrefs }: StakingQueryFlags): Observable<[(Option<AccountId> | null)[], Option<PalletStakingNominations>[], Option<PalletStakingRewardDestination>[], PalletStakingValidatorPrefs[], SpStakingExposure[]]> {
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<SpStakingExposure>('Exposure');
const emptyExpoEraStakers = api.registry.createType<SpStakingExposure>('Exposure');
const emptyPrefs = api.registry.createType<PalletStakingValidatorPrefs>('ValidatorPrefs');
// 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());
const eras = new Array(depth).fill(0).map((_, idx) => {
if (idx === 0) {
return activeEra.toNumber() - 1;
}
return activeEra.toNumber() - idx - 1;
});
return combineLatest([
withController || withLedger
@@ -76,19 +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 && api.query.staking.erasStakersOverview
? combineLatest(stashIds.map((s) => api.query.staking.erasStakersOverview(activeEra, s)))
: of(stashIds.map(() => emptyExpoMeta)),
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)),
withExposureErasStakersLegacy && api.query.staking.erasStakers
? combineLatest(stashIds.map((s) => api.query.staking.erasStakers(activeEra, s)))
: of(stashIds.map(() => emptyExpo))
: of(stashIds.map(() => emptyExpoEraStakers))
]);
}
function getBatch (api: DeriveApi, activeEra: EraIndex, stashIds: AccountId[], flags: StakingQueryFlags): Observable<DeriveStakingQuery[]> {
return getStashInfo(api, stashIds, activeEra, flags).pipe(
switchMap(([controllerIdOpt, nominatorsOpt, rewardDestination, validatorPrefs, exposure]): Observable<DeriveStakingQuery[]> =>
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, exposureEraStakers]): Observable<DeriveStakingQuery[]> =>
getLedgers(api, controllerIdOpt, flags).pipe(
map((stakingLedgerOpts) =>
stashIds.map((stashId, index) =>
parseDetails(stashId, controllerIdOpt[index], nominatorsOpt[index], rewardDestination[index], validatorPrefs[index], exposure[index], stakingLedgerOpts[index])
parseDetails(api, stashId, controllerIdOpt[index], nominatorsOpt[index], rewardDestination[index], validatorPrefs[index], exposure[index], stakingLedgerOpts[index], exposureMeta[index], claimedRewardsEras[index], exposureEraStakers[index])
)
)
)
@@ -101,18 +189,19 @@ function getBatch (api: DeriveApi, activeEra: EraIndex, stashIds: AccountId[], f
* @description From a stash, retrieve the controllerId and all relevant details
*/
export const query = /*#__PURE__*/ firstMemo(
(api: DeriveApi, accountId: Uint8Array | string, flags: StakingQueryFlags) =>
api.derive.staking.queryMulti([accountId], flags)
(api: DeriveApi, accountId: Uint8Array | string, flags: StakingQueryFlags, page?: u32) =>
api.derive.staking.queryMulti([accountId], flags, page)
);
export function queryMulti (instanceId: string, api: DeriveApi): (accountIds: (Uint8Array | string)[], flags: StakingQueryFlags) => Observable<DeriveStakingQuery[]> {
return memo(instanceId, (accountIds: (Uint8Array | string)[], flags: StakingQueryFlags): Observable<DeriveStakingQuery[]> =>
export function queryMulti (instanceId: string, api: DeriveApi): (accountIds: (Uint8Array | string)[], flags: StakingQueryFlags, page?: u32 | AnyNumber) => Observable<DeriveStakingQuery[]> {
return memo(instanceId, (accountIds: (Uint8Array | string)[], flags: StakingQueryFlags, page?: u32 | AnyNumber): Observable<DeriveStakingQuery[]> =>
api.derive.session.indexes().pipe(
switchMap(({ activeEra }): Observable<DeriveStakingQuery[]> => {
const stashIds = accountIds.map((a) => api.registry.createType('AccountId', a));
const p = page || 0;
return stashIds.length
? getBatch(api, activeEra, stashIds, flags)
? getBatch(api, activeEra, stashIds, flags, p)
: of([]);
})
)
@@ -18,13 +18,15 @@ import { firstMemo, memo } from '../util/index.js';
type ErasResult = [DeriveEraPoints[], DeriveEraPrefs[], DeriveEraRewards[]];
// handle compatibility between generations of structures
function extractCompatRewards (ledger?: PalletStakingStakingLedger): u32[] {
return ledger
function extractCompatRewards (claimedRewardsEras: Vec<u32>, ledger?: PalletStakingStakingLedger): u32[] {
const l = ledger
? (
ledger.legacyClaimedRewards ||
(ledger as PalletStakingStakingLedger & { claimedRewards: Vec<u32> }).claimedRewards
)
: [];
(ledger as PalletStakingStakingLedger & { claimedRewards: Vec<u32> }).claimedRewards
).toArray()
: [] as unknown as Vec<u32>;
return claimedRewardsEras.toArray().concat(l);
}
function parseRewards (api: DeriveApi, stashId: AccountId, [erasPoints, erasPrefs, erasRewards]: ErasResult, exposures: DeriveStakerExposure[]): DeriveStakerReward[] {
@@ -111,7 +113,7 @@ function allUniqValidators (rewards: DeriveStakerReward[][]): [string[], string[
}, [[], []]);
}
function removeClaimed (validators: string[], queryValidators: DeriveStakingQuery[], reward: DeriveStakerReward): void {
function removeClaimed (validators: string[], queryValidators: DeriveStakingQuery[], reward: DeriveStakerReward, claimedRewardsEras: Vec<u32>): void {
const rm: string[] = [];
Object.keys(reward.validators).forEach((validatorId): void => {
@@ -120,7 +122,7 @@ function removeClaimed (validators: string[], queryValidators: DeriveStakingQuer
if (index !== -1) {
const valLedger = queryValidators[index].stakingLedger;
if (extractCompatRewards(valLedger).some((e) => reward.era.eq(e))) {
if (extractCompatRewards(claimedRewardsEras, valLedger).some((e) => reward.era.eq(e))) {
rm.push(validatorId);
}
}
@@ -131,8 +133,8 @@ function removeClaimed (validators: string[], queryValidators: DeriveStakingQuer
});
}
function filterRewards (eras: EraIndex[], valInfo: [string, DeriveStakingQuery][], { rewards, stakingLedger }: { rewards: DeriveStakerReward[]; stakingLedger: PalletStakingStakingLedger }): DeriveStakerReward[] {
const filter = eras.filter((e) => !extractCompatRewards(stakingLedger).some((s) => s.eq(e)));
function filterRewards (eras: EraIndex[], valInfo: [string, DeriveStakingQuery][], { claimedRewardsEras, rewards, stakingLedger }: { rewards: DeriveStakerReward[]; stakingLedger: PalletStakingStakingLedger, claimedRewardsEras: Vec<u32> }): DeriveStakerReward[] {
const filter = eras.filter((e) => !extractCompatRewards(claimedRewardsEras, stakingLedger).some((s) => s.eq(e)));
const validators = valInfo.map(([v]) => v);
const queryValidators = valInfo.map(([, q]) => q);
@@ -143,7 +145,7 @@ function filterRewards (eras: EraIndex[], valInfo: [string, DeriveStakingQuery][
return false;
}
removeClaimed(validators, queryValidators, reward);
removeClaimed(validators, queryValidators, reward, claimedRewardsEras);
return true;
})
@@ -166,15 +168,19 @@ 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(({ stakingLedger, stashId }, index): DeriveStakerReward[] =>
(!stashId || !stakingLedger)
const allRewards = queries.map(({ claimedRewardsEras, stakingLedger, stashId }, index): DeriveStakerReward[] =>
(!stashId || (!stakingLedger && !claimedRewardsEras))
? []
: parseRewards(api, stashId, erasResult, exposures[index])
);
@@ -185,9 +191,9 @@ export function _stakerRewards (instanceId: string, api: DeriveApi): (accountIds
const [allValidators, stashValidators] = allUniqValidators(allRewards);
return api.derive.staking.queryMulti(allValidators, { withLedger: true }).pipe(
return api.derive.staking.queryMulti(allValidators, { withClaimedRewardsEras: true, withLedger: true }).pipe(
map((queriedVals): DeriveStakerReward[][] =>
queries.map(({ stakingLedger }, index): DeriveStakerReward[] =>
queries.map(({ claimedRewardsEras, stakingLedger }, index): DeriveStakerReward[] =>
filterRewards(
eras,
stashValidators[index]
@@ -197,6 +203,7 @@ export function _stakerRewards (instanceId: string, api: DeriveApi): (accountIds
])
.filter((v): v is [string, DeriveStakingQuery] => !!v[1]),
{
claimedRewardsEras,
rewards: allRewards[index],
stakingLedger
}
@@ -205,7 +212,8 @@ export function _stakerRewards (instanceId: string, api: DeriveApi): (accountIds
)
);
})
)
);
}
);
}
+12 -2
View File
@@ -1,8 +1,9 @@
// Copyright 2017-2024 @polkadot/api-derive authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Option, u32, Vec } from '@polkadot/types';
import type { AccountId, Balance, EraIndex, RewardPoint } from '@polkadot/types/interfaces';
import type { PalletStakingRewardDestination, PalletStakingStakingLedger, PalletStakingValidatorPrefs, SpStakingExposure, SpStakingExposurePage } from '@polkadot/types/lookup';
import type { PalletStakingRewardDestination, PalletStakingStakingLedger, PalletStakingValidatorPrefs, SpStakingExposure, SpStakingExposurePage, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
import type { BN } from '@polkadot/util';
import type { DeriveSessionIndexes } from '../session/types.js';
@@ -42,8 +43,10 @@ export interface DeriveStakerPoints {
export interface DeriveOwnExposure {
clipped: SpStakingExposure;
exposurePaged: Option<SpStakingExposurePage>;
era: EraIndex;
exposure: SpStakingExposure;
exposureMeta: Option<SpStakingPagedExposureMetadata>;
}
export interface DeriveEraExposureNominating {
@@ -115,11 +118,15 @@ export interface DeriveStakingValidators {
export interface DeriveStakingStash {
controllerId: AccountId | null;
exposure: SpStakingExposure;
// Legacy Support for erasStakers
exposureEraStakers: SpStakingExposure;
exposurePaged: Option<SpStakingExposurePage>;
exposureMeta: Option<SpStakingPagedExposureMetadata>;
nominators: AccountId[];
rewardDestination: PalletStakingRewardDestination | null;
stashId: AccountId;
validatorPrefs: PalletStakingValidatorPrefs;
claimedRewardsEras: Vec<u32>
}
export interface DeriveStakingQuery extends DeriveStakingStash {
@@ -157,7 +164,10 @@ export interface StakingQueryFlags {
withController?: boolean;
withDestination?: boolean;
withExposure?: boolean;
withExposureErasStakersLegacy?: boolean,
withLedger?: boolean;
withNominations?: boolean;
withPrefs?: boolean;
withExposureMeta?: boolean;
withClaimedRewardsEras?: boolean;
}
+4 -2
View File
@@ -3,7 +3,9 @@
import type { Observable } from 'rxjs';
import type { ObsInnerType } from '@polkadot/api-base/types';
import type { u32 } from '@polkadot/types';
import type { EraIndex } from '@polkadot/types/interfaces';
import type { AnyNumber } from '@polkadot/types-codec/types';
import type { ExactDerive } from '../derive.js';
import type { DeriveApi } from '../types.js';
@@ -60,9 +62,9 @@ export function erasHistoricApplyAccount <F extends '_ownExposures' | '_ownSlash
return (instanceId: string, api: DeriveApi) =>
// Cannot quite get the typing right, but it is right in the code
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
memo(instanceId, (accountId: string | Uint8Array, withActive = false) =>
memo(instanceId, (accountId: string | Uint8Array, withActive = false, page?: u32 | AnyNumber) =>
api.derive.staking.erasHistoric(withActive).pipe(
switchMap((e) => api.derive.staking[fn](accountId, e, withActive))
switchMap((e) => api.derive.staking[fn](accountId, e, withActive, page || 0))
)
) as any;
}
+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.erasStakers
// Compatibility for future generation changes in staking.
api.query.staking.erasStakersPaged
? 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)),
map((keys) => keys.map(({ args: [, accountId] }) => accountId))
switchMap(({ currentEra }) => api.query.staking.erasStakersPaged.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> {
+18 -18
View File
@@ -18,29 +18,29 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "10.13.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/api-augment": "10.13.1",
"@polkadot/api-base": "10.13.1",
"@polkadot/api-derive": "10.13.1",
"@polkadot/keyring": "^12.6.2",
"@polkadot/rpc-augment": "10.13.1",
"@polkadot/rpc-core": "10.13.1",
"@polkadot/rpc-provider": "10.13.1",
"@polkadot/types": "10.13.1",
"@polkadot/types-augment": "10.13.1",
"@polkadot/types-codec": "10.13.1",
"@polkadot/types-create": "10.13.1",
"@polkadot/types-known": "10.13.1",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@polkadot/api-augment": "14.0.1",
"@polkadot/api-base": "14.0.1",
"@polkadot/api-derive": "14.0.1",
"@polkadot/keyring": "^13.1.1",
"@polkadot/rpc-augment": "14.0.1",
"@polkadot/rpc-core": "14.0.1",
"@polkadot/rpc-provider": "14.0.1",
"@polkadot/types": "14.0.1",
"@polkadot/types-augment": "14.0.1",
"@polkadot/types-codec": "14.0.1",
"@polkadot/types-create": "14.0.1",
"@polkadot/types-known": "14.0.1",
"@polkadot/util": "^13.1.1",
"@polkadot/util-crypto": "^13.1.1",
"eventemitter3": "^5.0.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
"tslib": "^2.7.0"
},
"devDependencies": {
"@polkadot/api-augment": "10.13.1",
"@polkadot/types-support": "10.13.1"
"@polkadot/api-augment": "14.0.1",
"@polkadot/types-support": "14.0.1"
}
}
+103 -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';
@@ -492,64 +492,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(', ')}`);
}
}
}
+81 -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,72 @@ 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);
metadataVersion = versions.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: '10.13.1' };
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '14.0.1' };
+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();
+71 -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,7 +323,7 @@ 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;
if (!signer) {
@@ -325,6 +339,41 @@ 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}`);
}
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 +385,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 +398,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;
+6 -6
View File
@@ -18,13 +18,13 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "10.13.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "10.13.1",
"@polkadot/types": "10.13.1",
"@polkadot/types-codec": "10.13.1",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
"@polkadot/rpc-core": "14.0.1",
"@polkadot/types": "14.0.1",
"@polkadot/types-codec": "14.0.1",
"@polkadot/util": "^13.1.1",
"tslib": "^2.7.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: '10.13.1' };
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '14.0.1' };
+8 -8
View File
@@ -18,18 +18,18 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "10.13.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-augment": "10.13.1",
"@polkadot/rpc-provider": "10.13.1",
"@polkadot/types": "10.13.1",
"@polkadot/util": "^12.6.2",
"@polkadot/rpc-augment": "14.0.1",
"@polkadot/rpc-provider": "14.0.1",
"@polkadot/types": "14.0.1",
"@polkadot/util": "^13.1.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
"tslib": "^2.7.0"
},
"devDependencies": {
"@polkadot/keyring": "^12.6.2",
"@polkadot/rpc-augment": "10.13.1"
"@polkadot/keyring": "^13.1.1",
"@polkadot/rpc-augment": "14.0.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '10.13.1' };
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '14.0.1' };
+13 -13
View File
@@ -18,26 +18,26 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "10.13.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/keyring": "^12.6.2",
"@polkadot/types": "10.13.1",
"@polkadot/types-support": "10.13.1",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@polkadot/x-fetch": "^12.6.2",
"@polkadot/x-global": "^12.6.2",
"@polkadot/x-ws": "^12.6.2",
"@polkadot/keyring": "^13.1.1",
"@polkadot/types": "14.0.1",
"@polkadot/types-support": "14.0.1",
"@polkadot/util": "^13.1.1",
"@polkadot/util-crypto": "^13.1.1",
"@polkadot/x-fetch": "^13.1.1",
"@polkadot/x-global": "^13.1.1",
"@polkadot/x-ws": "^13.1.1",
"eventemitter3": "^5.0.1",
"mock-socket": "^9.3.1",
"nock": "^13.5.0",
"tslib": "^2.6.2"
"nock": "^13.5.4",
"tslib": "^2.7.0"
},
"devDependencies": {
"@substrate/connect": "0.8.8"
"@substrate/connect": "0.8.11"
},
"optionalDependencies": {
"@substrate/connect": "0.8.8"
"@substrate/connect": "0.8.11"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '10.13.1' };
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '14.0.1' };
+15 -15
View File
@@ -18,7 +18,7 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "10.13.1",
"version": "14.0.1",
"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": "10.13.1",
"@polkadot/api-augment": "10.13.1",
"@polkadot/rpc-augment": "10.13.1",
"@polkadot/rpc-provider": "10.13.1",
"@polkadot/types": "10.13.1",
"@polkadot/types-augment": "10.13.1",
"@polkadot/types-codec": "10.13.1",
"@polkadot/types-create": "10.13.1",
"@polkadot/types-support": "10.13.1",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@polkadot/x-ws": "^12.6.2",
"@polkadot/api": "14.0.1",
"@polkadot/api-augment": "14.0.1",
"@polkadot/rpc-augment": "14.0.1",
"@polkadot/rpc-provider": "14.0.1",
"@polkadot/types": "14.0.1",
"@polkadot/types-augment": "14.0.1",
"@polkadot/types-codec": "14.0.1",
"@polkadot/types-create": "14.0.1",
"@polkadot/types-support": "14.0.1",
"@polkadot/util": "^13.1.1",
"@polkadot/util-crypto": "^13.1.1",
"@polkadot/x-ws": "^13.1.1",
"handlebars": "^4.7.8",
"tslib": "^2.6.2",
"tslib": "^2.7.0",
"yargs": "^17.7.2"
},
"devDependencies": {
"@types/yargs": "^17.0.32"
"@types/yargs": "^17.0.33"
}
}
+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: '10.13.1' };
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '14.0.1' };
+5 -5
View File
@@ -18,12 +18,12 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "10.13.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/types": "10.13.1",
"@polkadot/types-codec": "10.13.1",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
"@polkadot/types": "14.0.1",
"@polkadot/types-codec": "14.0.1",
"@polkadot/util": "^13.1.1",
"tslib": "^2.7.0"
}
}
+431 -99
View File
@@ -5,18 +5,26 @@
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
* Lookup126: polkadot_primitives::v7::validator_app::Public
**/
PolkadotPrimitivesV7ValidatorAppPublic: '[u8;32]',
/**
* Lookup127: polkadot_primitives::v7::assignment_app::Public
**/
PolkadotPrimitivesV7AssignmentAppPublic: '[u8;32]',
/**
* Lookup150: staging_kusama_runtime::OriginCaller
**/
StagingKusamaRuntimeOriginCaller: {
_enum: {
@@ -123,19 +131,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,7 +212,212 @@ export default {
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
},
/**
* Lookup391: polkadot_runtime_parachains::assigner_on_demand::pallet::Call<T>
* Lookup303: polkadot_primitives::v7::async_backing::AsyncBackingParams
**/
PolkadotPrimitivesV7AsyncBackingAsyncBackingParams: {
maxCandidateDepth: 'u32',
allowedAncestryLen: 'u32'
},
/**
* Lookup304: polkadot_primitives::v7::executor_params::ExecutorParams
**/
PolkadotPrimitivesV7ExecutorParams: 'Vec<PolkadotPrimitivesV7ExecutorParamsExecutorParam>',
/**
* Lookup306: polkadot_primitives::v7::executor_params::ExecutorParam
**/
PolkadotPrimitivesV7ExecutorParamsExecutorParam: {
_enum: {
__Unused0: 'Null',
MaxMemoryPages: 'u32',
StackLogicalMax: 'u32',
StackNativeMax: 'u32',
PrecheckingMaxMemory: 'u64',
PvfPrepTimeout: '(PolkadotPrimitivesV7PvfPrepKind,u64)',
PvfExecTimeout: '(PolkadotPrimitivesV7PvfExecKind,u64)',
WasmExtBulkMemory: 'Null'
}
},
/**
* Lookup307: polkadot_primitives::v7::PvfPrepKind
**/
PolkadotPrimitivesV7PvfPrepKind: {
_enum: ['Precheck', 'Prepare']
},
/**
* Lookup308: polkadot_primitives::v7::PvfExecKind
**/
PolkadotPrimitivesV7PvfExecKind: {
_enum: ['Backing', 'Approval']
},
/**
* Lookup309: polkadot_primitives::v7::ApprovalVotingParams
**/
PolkadotPrimitivesV7ApprovalVotingParams: {
maxApprovalCoalesceCount: 'u32'
},
/**
* Lookup310: polkadot_primitives::vstaging::SchedulerParams<BlockNumber>
**/
PolkadotPrimitivesVstagingSchedulerParams: {
groupRotationFrequency: 'u32',
parasAvailabilityPeriod: 'u32',
maxValidatorsPerCore: 'Option<u32>',
lookahead: 'u32',
numCores: 'u32',
maxAvailabilityTimeouts: 'u32',
onDemandQueueMaxSize: 'u32',
onDemandTargetQueueUtilization: 'Perbill',
onDemandFeeVariability: 'Perbill',
onDemandBaseFee: 'u128',
ttl: 'u32'
},
/**
* Lookup314: polkadot_primitives::v7::InherentData<sp_runtime::generic::header::Header<Number, Hash>>
**/
PolkadotPrimitivesV7InherentData: {
bitfields: 'Vec<PolkadotPrimitivesV7SignedUncheckedSigned>',
backedCandidates: 'Vec<PolkadotPrimitivesV7BackedCandidate>',
disputes: 'Vec<PolkadotPrimitivesV7DisputeStatementSet>',
parentHeader: 'SpRuntimeHeader'
},
/**
* Lookup316: polkadot_primitives::v7::signed::UncheckedSigned<polkadot_primitives::v7::AvailabilityBitfield, polkadot_primitives::v7::AvailabilityBitfield>
**/
PolkadotPrimitivesV7SignedUncheckedSigned: {
payload: 'BitVec',
validatorIndex: 'u32',
signature: 'PolkadotPrimitivesV7ValidatorAppSignature'
},
/**
* Lookup321: polkadot_primitives::v7::validator_app::Signature
**/
PolkadotPrimitivesV7ValidatorAppSignature: '[u8;64]',
/**
* Lookup323: polkadot_primitives::v7::BackedCandidate<primitive_types::H256>
**/
PolkadotPrimitivesV7BackedCandidate: {
candidate: 'PolkadotPrimitivesV7CommittedCandidateReceipt',
validityVotes: 'Vec<PolkadotPrimitivesV7ValidityAttestation>',
validatorIndices: 'BitVec'
},
/**
* Lookup324: polkadot_primitives::v7::CommittedCandidateReceipt<primitive_types::H256>
**/
PolkadotPrimitivesV7CommittedCandidateReceipt: {
descriptor: 'PolkadotPrimitivesV7CandidateDescriptor',
commitments: 'PolkadotPrimitivesV7CandidateCommitments'
},
/**
* Lookup325: polkadot_primitives::v7::CandidateDescriptor<primitive_types::H256>
**/
PolkadotPrimitivesV7CandidateDescriptor: {
paraId: 'u32',
relayParent: 'H256',
collator: 'PolkadotPrimitivesV7CollatorAppPublic',
persistedValidationDataHash: 'H256',
povHash: 'H256',
erasureRoot: 'H256',
signature: 'PolkadotPrimitivesV7CollatorAppSignature',
paraHead: 'H256',
validationCodeHash: 'H256'
},
/**
* Lookup326: polkadot_primitives::v7::collator_app::Public
**/
PolkadotPrimitivesV7CollatorAppPublic: '[u8;32]',
/**
* Lookup327: polkadot_primitives::v7::collator_app::Signature
**/
PolkadotPrimitivesV7CollatorAppSignature: '[u8;64]',
/**
* Lookup329: polkadot_primitives::v7::CandidateCommitments<N>
**/
PolkadotPrimitivesV7CandidateCommitments: {
upwardMessages: 'Vec<Bytes>',
horizontalMessages: 'Vec<PolkadotCorePrimitivesOutboundHrmpMessage>',
newValidationCode: 'Option<Bytes>',
headData: 'Bytes',
processedDownwardMessages: 'u32',
hrmpWatermark: 'u32'
},
/**
* Lookup338: polkadot_primitives::v7::ValidityAttestation
**/
PolkadotPrimitivesV7ValidityAttestation: {
_enum: {
__Unused0: 'Null',
Implicit: 'PolkadotPrimitivesV7ValidatorAppSignature',
Explicit: 'PolkadotPrimitivesV7ValidatorAppSignature'
}
},
/**
* Lookup340: polkadot_primitives::v7::DisputeStatementSet
**/
PolkadotPrimitivesV7DisputeStatementSet: {
candidateHash: 'H256',
session: 'u32',
statements: 'Vec<(PolkadotPrimitivesV7DisputeStatement,u32,PolkadotPrimitivesV7ValidatorAppSignature)>'
},
/**
* Lookup344: polkadot_primitives::v7::DisputeStatement
**/
PolkadotPrimitivesV7DisputeStatement: {
_enum: {
Valid: 'PolkadotPrimitivesV7ValidDisputeStatementKind',
Invalid: 'PolkadotPrimitivesV7InvalidDisputeStatementKind'
}
},
/**
* Lookup345: polkadot_primitives::v7::ValidDisputeStatementKind
**/
PolkadotPrimitivesV7ValidDisputeStatementKind: {
_enum: {
Explicit: 'Null',
BackingSeconded: 'H256',
BackingValid: 'H256',
ApprovalChecking: 'Null',
ApprovalCheckingMultipleCandidates: 'Vec<H256>'
}
},
/**
* Lookup347: polkadot_primitives::v7::InvalidDisputeStatementKind
**/
PolkadotPrimitivesV7InvalidDisputeStatementKind: {
_enum: ['Explicit']
},
/**
* Lookup349: polkadot_primitives::v7::PvfCheckStatement
**/
PolkadotPrimitivesV7PvfCheckStatement: {
accept: 'bool',
subject: 'H256',
sessionIndex: 'u32',
validatorIndex: 'u32'
},
/**
* Lookup355: polkadot_primitives::v7::slashing::DisputeProof
**/
PolkadotPrimitivesV7SlashingDisputeProof: {
timeSlot: 'PolkadotPrimitivesV7SlashingDisputesTimeSlot',
kind: 'PolkadotPrimitivesV7SlashingSlashingOffenceKind',
validatorIndex: 'u32',
validatorId: 'PolkadotPrimitivesV7ValidatorAppPublic'
},
/**
* Lookup356: polkadot_primitives::v7::slashing::DisputesTimeSlot
**/
PolkadotPrimitivesV7SlashingDisputesTimeSlot: {
sessionIndex: 'u32',
candidateHash: 'H256'
},
/**
* Lookup357: polkadot_primitives::v7::slashing::SlashingOffenceKind
**/
PolkadotPrimitivesV7SlashingSlashingOffenceKind: {
_enum: ['ForInvalid', 'AgainstValid']
},
/**
* Lookup358: polkadot_runtime_parachains::assigner_on_demand::pallet::Call<T>
**/
PolkadotRuntimeParachainsAssignerOnDemandPalletCall: {
_enum: {
@@ -179,7 +432,7 @@ export default {
}
},
/**
* Lookup399: polkadot_runtime_parachains::coretime::pallet::Call<T>
* Lookup368: polkadot_runtime_parachains::coretime::pallet::Call<T>
**/
PolkadotRuntimeParachainsCoretimePalletCall: {
_enum: {
@@ -187,7 +440,9 @@ export default {
request_core_count: {
count: 'u16',
},
__Unused2: 'Null',
request_revenue_at: {
when: 'u32',
},
__Unused3: 'Null',
assign_core: {
core: 'u16',
@@ -198,21 +453,69 @@ export default {
}
},
/**
* Lookup543: polkadot_runtime_parachains::assigner_on_demand::pallet::Event<T>
* Lookup414: xcm::v3::OriginKind
**/
XcmV3OriginKind: {
_enum: ['Native', 'SovereignAccount', 'Superuser', 'Xcm']
},
/**
* Lookup479: staging_kusama_runtime::RuntimeParametersKey
**/
StagingKusamaRuntimeRuntimeParametersKey: {
_enum: {
Inflation: 'StagingKusamaRuntimeDynamicParamsInflationParametersKey'
}
},
/**
* Lookup480: staging_kusama_runtime::dynamic_params::inflation::ParametersKey
**/
StagingKusamaRuntimeDynamicParamsInflationParametersKey: {
_enum: ['MinInflation', 'MaxInflation', 'IdealStake', 'Falloff', 'UseAuctionSlots']
},
/**
* Lookup482: staging_kusama_runtime::RuntimeParametersValue
**/
StagingKusamaRuntimeRuntimeParametersValue: {
_enum: {
Inflation: 'StagingKusamaRuntimeDynamicParamsInflationParametersValue'
}
},
/**
* Lookup483: staging_kusama_runtime::dynamic_params::inflation::ParametersValue
**/
StagingKusamaRuntimeDynamicParamsInflationParametersValue: {
_enum: {
MinInflation: 'Perquintill',
MaxInflation: 'Perquintill',
IdealStake: 'Perquintill',
Falloff: 'Perquintill',
UseAuctionSlots: 'bool'
}
},
/**
* Lookup508: polkadot_primitives::v7::CandidateReceipt<primitive_types::H256>
**/
PolkadotPrimitivesV7CandidateReceipt: {
descriptor: 'PolkadotPrimitivesV7CandidateDescriptor',
commitmentsHash: 'H256'
},
/**
* Lookup516: polkadot_runtime_parachains::assigner_on_demand::pallet::Event<T>
**/
PolkadotRuntimeParachainsAssignerOnDemandPalletEvent: {
_enum: {
OnDemandOrderPlaced: {
paraId: 'u32',
spotPrice: 'u128',
orderedBy: 'AccountId32',
},
SpotTrafficSet: {
traffic: 'u128'
SpotPriceSet: {
spotPrice: 'u128'
}
}
},
/**
* Lookup548: polkadot_runtime_parachains::coretime::pallet::Event<T>
* Lookup521: polkadot_runtime_parachains::coretime::pallet::Event<T>
**/
PolkadotRuntimeParachainsCoretimePalletEvent: {
_enum: {
@@ -225,7 +528,7 @@ export default {
}
},
/**
* Lookup600: staging_kusama_runtime::RuntimeHoldReason
* Lookup570: staging_kusama_runtime::RuntimeHoldReason
**/
StagingKusamaRuntimeRuntimeHoldReason: {
_enum: {
@@ -267,71 +570,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,33 +623,122 @@ 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
* Lookup791: polkadot_primitives::v7::ScrapedOnChainVotes<primitive_types::H256>
**/
PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder: {
paraId: 'u32'
PolkadotPrimitivesV7ScrapedOnChainVotes: {
session: 'u32',
backingValidatorsPerCandidate: 'Vec<(PolkadotPrimitivesV7CandidateReceipt,Vec<(u32,PolkadotPrimitivesV7ValidityAttestation)>)>',
disputes: 'Vec<PolkadotPrimitivesV7DisputeStatementSet>'
},
/**
* Lookup900: polkadot_runtime_parachains::assigner_on_demand::CoreAffinityCount
* Lookup809: polkadot_runtime_parachains::paras::UpgradeStrategy
**/
PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount: {
coreIdx: 'u32',
PolkadotRuntimeParachainsParasUpgradeStrategy: {
_enum: ['SetGoAheadSignal', 'ApplyAtExpectedBlock']
},
/**
* Lookup818: polkadot_primitives::v7::UpgradeGoAhead
**/
PolkadotPrimitivesV7UpgradeGoAhead: {
_enum: ['Abort', 'GoAhead']
},
/**
* Lookup819: polkadot_primitives::v7::UpgradeRestriction
**/
PolkadotPrimitivesV7UpgradeRestriction: {
_enum: ['Present']
},
/**
* Lookup835: polkadot_primitives::v7::SessionInfo
**/
PolkadotPrimitivesV7SessionInfo: {
activeValidatorIndices: 'Vec<u32>',
randomSeed: '[u8;32]',
disputePeriod: 'u32',
validators: 'PolkadotPrimitivesV7IndexedVecValidatorIndex',
discoveryKeys: 'Vec<SpAuthorityDiscoveryAppPublic>',
assignmentKeys: 'Vec<PolkadotPrimitivesV7AssignmentAppPublic>',
validatorGroups: 'PolkadotPrimitivesV7IndexedVecGroupIndex',
nCores: 'u32',
zerothDelayTrancheWidth: 'u32',
relayVrfModuloSamples: 'u32',
nDelayTranches: 'u32',
noShowSlots: 'u32',
neededApprovals: 'u32'
},
/**
* Lookup836: polkadot_primitives::v7::IndexedVec<polkadot_primitives::v7::ValidatorIndex, polkadot_primitives::v7::validator_app::Public>
**/
PolkadotPrimitivesV7IndexedVecValidatorIndex: 'Vec<PolkadotPrimitivesV7ValidatorAppPublic>',
/**
* Lookup837: polkadot_primitives::v7::IndexedVec<polkadot_primitives::v7::GroupIndex, V>
**/
PolkadotPrimitivesV7IndexedVecGroupIndex: 'Vec<Vec<u32>>',
/**
* Lookup839: polkadot_primitives::v7::DisputeState<N>
**/
PolkadotPrimitivesV7DisputeState: {
validatorsFor: 'BitVec',
validatorsAgainst: 'BitVec',
start: 'u32',
concludedAt: 'Option<u32>'
},
/**
* Lookup842: polkadot_primitives::v7::slashing::PendingSlashes
**/
PolkadotPrimitivesV7SlashingPendingSlashes: {
_alias: {
keys_: 'keys'
},
keys_: 'BTreeMap<u32, PolkadotPrimitivesV7ValidatorAppPublic>',
kind: 'PolkadotPrimitivesV7SlashingSlashingOffenceKind'
},
/**
* Lookup847: polkadot_runtime_parachains::assigner_on_demand::types::CoreAffinityCount
**/
PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount: {
coreIndex: 'u32',
count: 'u32'
},
/**
* Lookup901: polkadot_runtime_parachains::assigner_on_demand::pallet::Error<T>
* Lookup848: polkadot_runtime_parachains::assigner_on_demand::types::QueueStatusType
**/
PolkadotRuntimeParachainsAssignerOnDemandPalletError: {
_enum: ['InvalidParaId', 'QueueFull', 'SpotPriceHigherThanMaxAmount']
PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType: {
traffic: 'u128',
nextIndex: 'u32',
smallestIndex: 'u32',
freedIndices: 'BinaryHeapReverseQueueIndex'
},
/**
* Lookup903: polkadot_runtime_parachains::assigner_coretime::Schedule<N>
* Lookup850: BinaryHeap<polkadot_runtime_parachains::assigner_on_demand::types::ReverseQueueIndex>
**/
BinaryHeapReverseQueueIndex: 'Vec<u32>',
/**
* Lookup853: BinaryHeap<polkadot_runtime_parachains::assigner_on_demand::types::EnqueuedOrder>
**/
BinaryHeapEnqueuedOrder: 'Vec<PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder>',
/**
* Lookup854: polkadot_runtime_parachains::assigner_on_demand::types::EnqueuedOrder
**/
PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder: {
paraId: 'u32',
idx: 'u32'
},
/**
* Lookup858: polkadot_runtime_parachains::assigner_on_demand::pallet::Error<T>
**/
PolkadotRuntimeParachainsAssignerOnDemandPalletError: {
_enum: ['QueueFull', 'SpotPriceHigherThanMaxAmount']
},
/**
* Lookup860: polkadot_runtime_parachains::assigner_coretime::Schedule<N>
**/
PolkadotRuntimeParachainsAssignerCoretimeSchedule: {
assignments: 'Vec<(PalletBrokerCoretimeInterfaceCoreAssignment,u16)>',
@@ -414,21 +746,21 @@ export default {
nextSchedule: 'Option<u32>'
},
/**
* Lookup904: polkadot_runtime_parachains::assigner_coretime::CoreDescriptor<N>
* Lookup861: polkadot_runtime_parachains::assigner_coretime::CoreDescriptor<N>
**/
PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor: {
queue: 'Option<PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor>',
currentWork: 'Option<PolkadotRuntimeParachainsAssignerCoretimeWorkState>'
},
/**
* Lookup906: polkadot_runtime_parachains::assigner_coretime::QueueDescriptor<N>
* Lookup863: polkadot_runtime_parachains::assigner_coretime::QueueDescriptor<N>
**/
PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor: {
first: 'u32',
last: 'u32'
},
/**
* Lookup908: polkadot_runtime_parachains::assigner_coretime::WorkState<N>
* Lookup865: polkadot_runtime_parachains::assigner_coretime::WorkState<N>
**/
PolkadotRuntimeParachainsAssignerCoretimeWorkState: {
assignments: 'Vec<(PalletBrokerCoretimeInterfaceCoreAssignment,PolkadotRuntimeParachainsAssignerCoretimeAssignmentState)>',
@@ -437,26 +769,26 @@ export default {
step: 'u16'
},
/**
* Lookup911: polkadot_runtime_parachains::assigner_coretime::AssignmentState
* Lookup868: polkadot_runtime_parachains::assigner_coretime::AssignmentState
**/
PolkadotRuntimeParachainsAssignerCoretimeAssignmentState: {
ratio: 'u16',
remaining: 'u16'
},
/**
* Lookup912: polkadot_runtime_parachains::assigner_coretime::pallet::Error<T>
* Lookup869: polkadot_runtime_parachains::assigner_coretime::pallet::Error<T>
**/
PolkadotRuntimeParachainsAssignerCoretimePalletError: {
_enum: ['AssignmentsEmpty', 'OverScheduled', 'UnderScheduled', 'DisallowedInsert', 'DuplicateInsert', 'AssignmentsNotSorted']
},
/**
* Lookup926: polkadot_runtime_parachains::coretime::pallet::Error<T>
* Lookup882: polkadot_runtime_parachains::coretime::pallet::Error<T>
**/
PolkadotRuntimeParachainsCoretimePalletError: {
_enum: ['NotBroker']
_enum: ['NotBroker', 'RequestedFutureRevenue', 'AssetTransferFailed']
},
/**
* Lookup972: staging_kusama_runtime::Runtime
* Lookup929: staging_kusama_runtime::Runtime
**/
StagingKusamaRuntimeRuntime: 'Null'
};
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+422 -48
View File
@@ -5,22 +5,28 @@
// 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 { BTreeMap, BitVec, Bytes, Compact, Enum, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
import type { PerU16 } from '@polkadot/types/interfaces/runtime';
import type { AccountId32, H256, PerU16, Perbill, 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 PolkadotPrimitivesV7ValidatorAppPublic (126) */
interface PolkadotPrimitivesV7ValidatorAppPublic extends U8aFixed {}
/** @name PolkadotPrimitivesV7AssignmentAppPublic (127) */
interface PolkadotPrimitivesV7AssignmentAppPublic extends U8aFixed {}
/** @name StagingKusamaRuntimeOriginCaller (150) */
interface StagingKusamaRuntimeOriginCaller extends Enum {
readonly isSystem: boolean;
readonly asSystem: FrameSupportDispatchRawOrigin;
@@ -34,7 +40,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 +73,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,7 +152,201 @@ declare module '@polkadot/types/lookup' {
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
}
/** @name PolkadotRuntimeParachainsAssignerOnDemandPalletCall (391) */
/** @name PolkadotPrimitivesV7AsyncBackingAsyncBackingParams (303) */
interface PolkadotPrimitivesV7AsyncBackingAsyncBackingParams extends Struct {
readonly maxCandidateDepth: u32;
readonly allowedAncestryLen: u32;
}
/** @name PolkadotPrimitivesV7ExecutorParams (304) */
interface PolkadotPrimitivesV7ExecutorParams extends Vec<PolkadotPrimitivesV7ExecutorParamsExecutorParam> {}
/** @name PolkadotPrimitivesV7ExecutorParamsExecutorParam (306) */
interface PolkadotPrimitivesV7ExecutorParamsExecutorParam extends Enum {
readonly isMaxMemoryPages: boolean;
readonly asMaxMemoryPages: u32;
readonly isStackLogicalMax: boolean;
readonly asStackLogicalMax: u32;
readonly isStackNativeMax: boolean;
readonly asStackNativeMax: u32;
readonly isPrecheckingMaxMemory: boolean;
readonly asPrecheckingMaxMemory: u64;
readonly isPvfPrepTimeout: boolean;
readonly asPvfPrepTimeout: ITuple<[PolkadotPrimitivesV7PvfPrepKind, u64]>;
readonly isPvfExecTimeout: boolean;
readonly asPvfExecTimeout: ITuple<[PolkadotPrimitivesV7PvfExecKind, u64]>;
readonly isWasmExtBulkMemory: boolean;
readonly type: 'MaxMemoryPages' | 'StackLogicalMax' | 'StackNativeMax' | 'PrecheckingMaxMemory' | 'PvfPrepTimeout' | 'PvfExecTimeout' | 'WasmExtBulkMemory';
}
/** @name PolkadotPrimitivesV7PvfPrepKind (307) */
interface PolkadotPrimitivesV7PvfPrepKind extends Enum {
readonly isPrecheck: boolean;
readonly isPrepare: boolean;
readonly type: 'Precheck' | 'Prepare';
}
/** @name PolkadotPrimitivesV7PvfExecKind (308) */
interface PolkadotPrimitivesV7PvfExecKind extends Enum {
readonly isBacking: boolean;
readonly isApproval: boolean;
readonly type: 'Backing' | 'Approval';
}
/** @name PolkadotPrimitivesV7ApprovalVotingParams (309) */
interface PolkadotPrimitivesV7ApprovalVotingParams extends Struct {
readonly maxApprovalCoalesceCount: u32;
}
/** @name PolkadotPrimitivesVstagingSchedulerParams (310) */
interface PolkadotPrimitivesVstagingSchedulerParams extends Struct {
readonly groupRotationFrequency: u32;
readonly parasAvailabilityPeriod: u32;
readonly maxValidatorsPerCore: Option<u32>;
readonly lookahead: u32;
readonly numCores: u32;
readonly maxAvailabilityTimeouts: u32;
readonly onDemandQueueMaxSize: u32;
readonly onDemandTargetQueueUtilization: Perbill;
readonly onDemandFeeVariability: Perbill;
readonly onDemandBaseFee: u128;
readonly ttl: u32;
}
/** @name PolkadotPrimitivesV7InherentData (314) */
interface PolkadotPrimitivesV7InherentData extends Struct {
readonly bitfields: Vec<PolkadotPrimitivesV7SignedUncheckedSigned>;
readonly backedCandidates: Vec<PolkadotPrimitivesV7BackedCandidate>;
readonly disputes: Vec<PolkadotPrimitivesV7DisputeStatementSet>;
readonly parentHeader: SpRuntimeHeader;
}
/** @name PolkadotPrimitivesV7SignedUncheckedSigned (316) */
interface PolkadotPrimitivesV7SignedUncheckedSigned extends Struct {
readonly payload: BitVec;
readonly validatorIndex: u32;
readonly signature: PolkadotPrimitivesV7ValidatorAppSignature;
}
/** @name PolkadotPrimitivesV7ValidatorAppSignature (321) */
interface PolkadotPrimitivesV7ValidatorAppSignature extends U8aFixed {}
/** @name PolkadotPrimitivesV7BackedCandidate (323) */
interface PolkadotPrimitivesV7BackedCandidate extends Struct {
readonly candidate: PolkadotPrimitivesV7CommittedCandidateReceipt;
readonly validityVotes: Vec<PolkadotPrimitivesV7ValidityAttestation>;
readonly validatorIndices: BitVec;
}
/** @name PolkadotPrimitivesV7CommittedCandidateReceipt (324) */
interface PolkadotPrimitivesV7CommittedCandidateReceipt extends Struct {
readonly descriptor: PolkadotPrimitivesV7CandidateDescriptor;
readonly commitments: PolkadotPrimitivesV7CandidateCommitments;
}
/** @name PolkadotPrimitivesV7CandidateDescriptor (325) */
interface PolkadotPrimitivesV7CandidateDescriptor extends Struct {
readonly paraId: u32;
readonly relayParent: H256;
readonly collator: PolkadotPrimitivesV7CollatorAppPublic;
readonly persistedValidationDataHash: H256;
readonly povHash: H256;
readonly erasureRoot: H256;
readonly signature: PolkadotPrimitivesV7CollatorAppSignature;
readonly paraHead: H256;
readonly validationCodeHash: H256;
}
/** @name PolkadotPrimitivesV7CollatorAppPublic (326) */
interface PolkadotPrimitivesV7CollatorAppPublic extends U8aFixed {}
/** @name PolkadotPrimitivesV7CollatorAppSignature (327) */
interface PolkadotPrimitivesV7CollatorAppSignature extends U8aFixed {}
/** @name PolkadotPrimitivesV7CandidateCommitments (329) */
interface PolkadotPrimitivesV7CandidateCommitments extends Struct {
readonly upwardMessages: Vec<Bytes>;
readonly horizontalMessages: Vec<PolkadotCorePrimitivesOutboundHrmpMessage>;
readonly newValidationCode: Option<Bytes>;
readonly headData: Bytes;
readonly processedDownwardMessages: u32;
readonly hrmpWatermark: u32;
}
/** @name PolkadotPrimitivesV7ValidityAttestation (338) */
interface PolkadotPrimitivesV7ValidityAttestation extends Enum {
readonly isImplicit: boolean;
readonly asImplicit: PolkadotPrimitivesV7ValidatorAppSignature;
readonly isExplicit: boolean;
readonly asExplicit: PolkadotPrimitivesV7ValidatorAppSignature;
readonly type: 'Implicit' | 'Explicit';
}
/** @name PolkadotPrimitivesV7DisputeStatementSet (340) */
interface PolkadotPrimitivesV7DisputeStatementSet extends Struct {
readonly candidateHash: H256;
readonly session: u32;
readonly statements: Vec<ITuple<[PolkadotPrimitivesV7DisputeStatement, u32, PolkadotPrimitivesV7ValidatorAppSignature]>>;
}
/** @name PolkadotPrimitivesV7DisputeStatement (344) */
interface PolkadotPrimitivesV7DisputeStatement extends Enum {
readonly isValid: boolean;
readonly asValid: PolkadotPrimitivesV7ValidDisputeStatementKind;
readonly isInvalid: boolean;
readonly asInvalid: PolkadotPrimitivesV7InvalidDisputeStatementKind;
readonly type: 'Valid' | 'Invalid';
}
/** @name PolkadotPrimitivesV7ValidDisputeStatementKind (345) */
interface PolkadotPrimitivesV7ValidDisputeStatementKind extends Enum {
readonly isExplicit: boolean;
readonly isBackingSeconded: boolean;
readonly asBackingSeconded: H256;
readonly isBackingValid: boolean;
readonly asBackingValid: H256;
readonly isApprovalChecking: boolean;
readonly isApprovalCheckingMultipleCandidates: boolean;
readonly asApprovalCheckingMultipleCandidates: Vec<H256>;
readonly type: 'Explicit' | 'BackingSeconded' | 'BackingValid' | 'ApprovalChecking' | 'ApprovalCheckingMultipleCandidates';
}
/** @name PolkadotPrimitivesV7InvalidDisputeStatementKind (347) */
interface PolkadotPrimitivesV7InvalidDisputeStatementKind extends Enum {
readonly isExplicit: boolean;
readonly type: 'Explicit';
}
/** @name PolkadotPrimitivesV7PvfCheckStatement (349) */
interface PolkadotPrimitivesV7PvfCheckStatement extends Struct {
readonly accept: bool;
readonly subject: H256;
readonly sessionIndex: u32;
readonly validatorIndex: u32;
}
/** @name PolkadotPrimitivesV7SlashingDisputeProof (355) */
interface PolkadotPrimitivesV7SlashingDisputeProof extends Struct {
readonly timeSlot: PolkadotPrimitivesV7SlashingDisputesTimeSlot;
readonly kind: PolkadotPrimitivesV7SlashingSlashingOffenceKind;
readonly validatorIndex: u32;
readonly validatorId: PolkadotPrimitivesV7ValidatorAppPublic;
}
/** @name PolkadotPrimitivesV7SlashingDisputesTimeSlot (356) */
interface PolkadotPrimitivesV7SlashingDisputesTimeSlot extends Struct {
readonly sessionIndex: u32;
readonly candidateHash: H256;
}
/** @name PolkadotPrimitivesV7SlashingSlashingOffenceKind (357) */
interface PolkadotPrimitivesV7SlashingSlashingOffenceKind extends Enum {
readonly isForInvalid: boolean;
readonly isAgainstValid: boolean;
readonly type: 'ForInvalid' | 'AgainstValid';
}
/** @name PolkadotRuntimeParachainsAssignerOnDemandPalletCall (358) */
interface PolkadotRuntimeParachainsAssignerOnDemandPalletCall extends Enum {
readonly isPlaceOrderAllowDeath: boolean;
readonly asPlaceOrderAllowDeath: {
@@ -124,12 +361,16 @@ declare module '@polkadot/types/lookup' {
readonly type: 'PlaceOrderAllowDeath' | 'PlaceOrderKeepAlive';
}
/** @name PolkadotRuntimeParachainsCoretimePalletCall (399) */
/** @name PolkadotRuntimeParachainsCoretimePalletCall (368) */
interface PolkadotRuntimeParachainsCoretimePalletCall extends Enum {
readonly isRequestCoreCount: boolean;
readonly asRequestCoreCount: {
readonly count: u16;
} & Struct;
readonly isRequestRevenueAt: boolean;
readonly asRequestRevenueAt: {
readonly when: u32;
} & Struct;
readonly isAssignCore: boolean;
readonly asAssignCore: {
readonly core: u16;
@@ -137,24 +378,79 @@ declare module '@polkadot/types/lookup' {
readonly assignment: Vec<ITuple<[PalletBrokerCoretimeInterfaceCoreAssignment, u16]>>;
readonly endHint: Option<u32>;
} & Struct;
readonly type: 'RequestCoreCount' | 'AssignCore';
readonly type: 'RequestCoreCount' | 'RequestRevenueAt' | 'AssignCore';
}
/** @name PolkadotRuntimeParachainsAssignerOnDemandPalletEvent (543) */
/** @name XcmV3OriginKind (414) */
interface XcmV3OriginKind extends Enum {
readonly isNative: boolean;
readonly isSovereignAccount: boolean;
readonly isSuperuser: boolean;
readonly isXcm: boolean;
readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
}
/** @name StagingKusamaRuntimeRuntimeParametersKey (479) */
interface StagingKusamaRuntimeRuntimeParametersKey extends Enum {
readonly isInflation: boolean;
readonly asInflation: StagingKusamaRuntimeDynamicParamsInflationParametersKey;
readonly type: 'Inflation';
}
/** @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 StagingKusamaRuntimeRuntimeParametersValue (482) */
interface StagingKusamaRuntimeRuntimeParametersValue extends Enum {
readonly isInflation: boolean;
readonly asInflation: StagingKusamaRuntimeDynamicParamsInflationParametersValue;
readonly type: 'Inflation';
}
/** @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 PolkadotPrimitivesV7CandidateReceipt (508) */
interface PolkadotPrimitivesV7CandidateReceipt extends Struct {
readonly descriptor: PolkadotPrimitivesV7CandidateDescriptor;
readonly commitmentsHash: H256;
}
/** @name PolkadotRuntimeParachainsAssignerOnDemandPalletEvent (516) */
interface PolkadotRuntimeParachainsAssignerOnDemandPalletEvent extends Enum {
readonly isOnDemandOrderPlaced: boolean;
readonly asOnDemandOrderPlaced: {
readonly paraId: u32;
readonly spotPrice: u128;
readonly orderedBy: AccountId32;
} & Struct;
readonly isSpotTrafficSet: boolean;
readonly asSpotTrafficSet: {
readonly traffic: u128;
readonly isSpotPriceSet: boolean;
readonly asSpotPriceSet: {
readonly spotPrice: u128;
} & Struct;
readonly type: 'OnDemandOrderPlaced' | 'SpotTrafficSet';
readonly type: 'OnDemandOrderPlaced' | 'SpotPriceSet';
}
/** @name PolkadotRuntimeParachainsCoretimePalletEvent (548) */
/** @name PolkadotRuntimeParachainsCoretimePalletEvent (521) */
interface PolkadotRuntimeParachainsCoretimePalletEvent extends Enum {
readonly isRevenueInfoRequested: boolean;
readonly asRevenueInfoRequested: {
@@ -167,69 +463,145 @@ declare module '@polkadot/types/lookup' {
readonly type: 'RevenueInfoRequested' | 'CoreAssigned';
}
/** @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 PolkadotPrimitivesV7ScrapedOnChainVotes (791) */
interface PolkadotPrimitivesV7ScrapedOnChainVotes extends Struct {
readonly session: u32;
readonly backingValidatorsPerCandidate: Vec<ITuple<[PolkadotPrimitivesV7CandidateReceipt, Vec<ITuple<[u32, PolkadotPrimitivesV7ValidityAttestation]>>]>>;
readonly disputes: Vec<PolkadotPrimitivesV7DisputeStatementSet>;
}
/** @name PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount (900) */
interface PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount extends Struct {
readonly coreIdx: u32;
/** @name PolkadotRuntimeParachainsParasUpgradeStrategy (809) */
interface PolkadotRuntimeParachainsParasUpgradeStrategy extends Enum {
readonly isSetGoAheadSignal: boolean;
readonly isApplyAtExpectedBlock: boolean;
readonly type: 'SetGoAheadSignal' | 'ApplyAtExpectedBlock';
}
/** @name PolkadotPrimitivesV7UpgradeGoAhead (818) */
interface PolkadotPrimitivesV7UpgradeGoAhead extends Enum {
readonly isAbort: boolean;
readonly isGoAhead: boolean;
readonly type: 'Abort' | 'GoAhead';
}
/** @name PolkadotPrimitivesV7UpgradeRestriction (819) */
interface PolkadotPrimitivesV7UpgradeRestriction extends Enum {
readonly isPresent: boolean;
readonly type: 'Present';
}
/** @name PolkadotPrimitivesV7SessionInfo (835) */
interface PolkadotPrimitivesV7SessionInfo extends Struct {
readonly activeValidatorIndices: Vec<u32>;
readonly randomSeed: U8aFixed;
readonly disputePeriod: u32;
readonly validators: PolkadotPrimitivesV7IndexedVecValidatorIndex;
readonly discoveryKeys: Vec<SpAuthorityDiscoveryAppPublic>;
readonly assignmentKeys: Vec<PolkadotPrimitivesV7AssignmentAppPublic>;
readonly validatorGroups: PolkadotPrimitivesV7IndexedVecGroupIndex;
readonly nCores: u32;
readonly zerothDelayTrancheWidth: u32;
readonly relayVrfModuloSamples: u32;
readonly nDelayTranches: u32;
readonly noShowSlots: u32;
readonly neededApprovals: u32;
}
/** @name PolkadotPrimitivesV7IndexedVecValidatorIndex (836) */
interface PolkadotPrimitivesV7IndexedVecValidatorIndex extends Vec<PolkadotPrimitivesV7ValidatorAppPublic> {}
/** @name PolkadotPrimitivesV7IndexedVecGroupIndex (837) */
interface PolkadotPrimitivesV7IndexedVecGroupIndex extends Vec<Vec<u32>> {}
/** @name PolkadotPrimitivesV7DisputeState (839) */
interface PolkadotPrimitivesV7DisputeState extends Struct {
readonly validatorsFor: BitVec;
readonly validatorsAgainst: BitVec;
readonly start: u32;
readonly concludedAt: Option<u32>;
}
/** @name PolkadotPrimitivesV7SlashingPendingSlashes (842) */
interface PolkadotPrimitivesV7SlashingPendingSlashes extends Struct {
readonly keys_: BTreeMap<u32, PolkadotPrimitivesV7ValidatorAppPublic>;
readonly kind: PolkadotPrimitivesV7SlashingSlashingOffenceKind;
}
/** @name PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount (847) */
interface PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount extends Struct {
readonly coreIndex: 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 PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType (848) */
interface PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType extends Struct {
readonly traffic: u128;
readonly nextIndex: u32;
readonly smallestIndex: u32;
readonly freedIndices: BinaryHeapReverseQueueIndex;
}
/** @name PolkadotRuntimeParachainsAssignerCoretimeSchedule (903) */
/** @name BinaryHeapReverseQueueIndex (850) */
interface BinaryHeapReverseQueueIndex extends Vec<u32> {}
/** @name BinaryHeapEnqueuedOrder (853) */
interface BinaryHeapEnqueuedOrder extends Vec<PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder> {}
/** @name PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder (854) */
interface PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder extends Struct {
readonly paraId: u32;
readonly idx: u32;
}
/** @name PolkadotRuntimeParachainsAssignerOnDemandPalletError (858) */
interface PolkadotRuntimeParachainsAssignerOnDemandPalletError extends Enum {
readonly isQueueFull: boolean;
readonly isSpotPriceHigherThanMaxAmount: boolean;
readonly type: 'QueueFull' | 'SpotPriceHigherThanMaxAmount';
}
/** @name PolkadotRuntimeParachainsAssignerCoretimeSchedule (860) */
interface PolkadotRuntimeParachainsAssignerCoretimeSchedule extends Struct {
readonly assignments: Vec<ITuple<[PalletBrokerCoretimeInterfaceCoreAssignment, u16]>>;
readonly endHint: Option<u32>;
readonly nextSchedule: Option<u32>;
}
/** @name PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor (904) */
/** @name PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor (861) */
interface PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor extends Struct {
readonly queue: Option<PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor>;
readonly currentWork: Option<PolkadotRuntimeParachainsAssignerCoretimeWorkState>;
}
/** @name PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor (906) */
/** @name PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor (863) */
interface PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor extends Struct {
readonly first: u32;
readonly last: u32;
}
/** @name PolkadotRuntimeParachainsAssignerCoretimeWorkState (908) */
/** @name PolkadotRuntimeParachainsAssignerCoretimeWorkState (865) */
interface PolkadotRuntimeParachainsAssignerCoretimeWorkState extends Struct {
readonly assignments: Vec<ITuple<[PalletBrokerCoretimeInterfaceCoreAssignment, PolkadotRuntimeParachainsAssignerCoretimeAssignmentState]>>;
readonly endHint: Option<u32>;
@@ -237,13 +609,13 @@ declare module '@polkadot/types/lookup' {
readonly step: u16;
}
/** @name PolkadotRuntimeParachainsAssignerCoretimeAssignmentState (911) */
/** @name PolkadotRuntimeParachainsAssignerCoretimeAssignmentState (868) */
interface PolkadotRuntimeParachainsAssignerCoretimeAssignmentState extends Struct {
readonly ratio: u16;
readonly remaining: u16;
}
/** @name PolkadotRuntimeParachainsAssignerCoretimePalletError (912) */
/** @name PolkadotRuntimeParachainsAssignerCoretimePalletError (869) */
interface PolkadotRuntimeParachainsAssignerCoretimePalletError extends Enum {
readonly isAssignmentsEmpty: boolean;
readonly isOverScheduled: boolean;
@@ -254,13 +626,15 @@ declare module '@polkadot/types/lookup' {
readonly type: 'AssignmentsEmpty' | 'OverScheduled' | 'UnderScheduled' | 'DisallowedInsert' | 'DuplicateInsert' | 'AssignmentsNotSorted';
}
/** @name PolkadotRuntimeParachainsCoretimePalletError (926) */
/** @name PolkadotRuntimeParachainsCoretimePalletError (882) */
interface PolkadotRuntimeParachainsCoretimePalletError extends Enum {
readonly isNotBroker: boolean;
readonly type: 'NotBroker';
readonly isRequestedFutureRevenue: boolean;
readonly isAssetTransferFailed: boolean;
readonly type: 'NotBroker' | 'RequestedFutureRevenue' | 'AssetTransferFailed';
}
/** @name StagingKusamaRuntimeRuntime (972) */
/** @name StagingKusamaRuntimeRuntime (929) */
type StagingKusamaRuntimeRuntime = Null;
} // declare module
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '10.13.1' };
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '14.0.1' };
@@ -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
+56 -4
View File
@@ -5,25 +5,73 @@
// 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 { BinaryHeapEnqueuedOrder, BinaryHeapReverseQueueIndex, FrameSupportTokensMiscIdAmount, PolkadotPrimitivesV7ApprovalVotingParams, PolkadotPrimitivesV7AssignmentAppPublic, PolkadotPrimitivesV7AsyncBackingAsyncBackingParams, PolkadotPrimitivesV7BackedCandidate, PolkadotPrimitivesV7CandidateCommitments, PolkadotPrimitivesV7CandidateDescriptor, PolkadotPrimitivesV7CandidateReceipt, PolkadotPrimitivesV7CollatorAppPublic, PolkadotPrimitivesV7CollatorAppSignature, PolkadotPrimitivesV7CommittedCandidateReceipt, PolkadotPrimitivesV7DisputeState, PolkadotPrimitivesV7DisputeStatement, PolkadotPrimitivesV7DisputeStatementSet, PolkadotPrimitivesV7ExecutorParams, PolkadotPrimitivesV7ExecutorParamsExecutorParam, PolkadotPrimitivesV7IndexedVecGroupIndex, PolkadotPrimitivesV7IndexedVecValidatorIndex, PolkadotPrimitivesV7InherentData, PolkadotPrimitivesV7InvalidDisputeStatementKind, PolkadotPrimitivesV7PvfCheckStatement, PolkadotPrimitivesV7PvfExecKind, PolkadotPrimitivesV7PvfPrepKind, PolkadotPrimitivesV7ScrapedOnChainVotes, PolkadotPrimitivesV7SessionInfo, PolkadotPrimitivesV7SignedUncheckedSigned, PolkadotPrimitivesV7SlashingDisputeProof, PolkadotPrimitivesV7SlashingDisputesTimeSlot, PolkadotPrimitivesV7SlashingPendingSlashes, PolkadotPrimitivesV7SlashingSlashingOffenceKind, PolkadotPrimitivesV7UpgradeGoAhead, PolkadotPrimitivesV7UpgradeRestriction, PolkadotPrimitivesV7ValidDisputeStatementKind, PolkadotPrimitivesV7ValidatorAppPublic, PolkadotPrimitivesV7ValidatorAppSignature, PolkadotPrimitivesV7ValidityAttestation, PolkadotPrimitivesVstagingSchedulerParams, PolkadotRuntimeParachainsAssignerCoretimeAssignmentState, PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor, PolkadotRuntimeParachainsAssignerCoretimePalletError, PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor, PolkadotRuntimeParachainsAssignerCoretimeSchedule, PolkadotRuntimeParachainsAssignerCoretimeWorkState, PolkadotRuntimeParachainsAssignerOnDemandPalletCall, PolkadotRuntimeParachainsAssignerOnDemandPalletError, PolkadotRuntimeParachainsAssignerOnDemandPalletEvent, PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount, PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder, PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType, PolkadotRuntimeParachainsCoretimePalletCall, PolkadotRuntimeParachainsCoretimePalletError, PolkadotRuntimeParachainsCoretimePalletEvent, PolkadotRuntimeParachainsParasUpgradeStrategy, StagingKusamaRuntimeDynamicParamsInflationFalloff, StagingKusamaRuntimeDynamicParamsInflationIdealStake, StagingKusamaRuntimeDynamicParamsInflationMaxInflation, StagingKusamaRuntimeDynamicParamsInflationMinInflation, StagingKusamaRuntimeDynamicParamsInflationParameters, StagingKusamaRuntimeDynamicParamsInflationParametersKey, StagingKusamaRuntimeDynamicParamsInflationParametersValue, StagingKusamaRuntimeDynamicParamsInflationUseAuctionSlots, StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin, StagingKusamaRuntimeNposCompactSolution24, StagingKusamaRuntimeOriginCaller, StagingKusamaRuntimeProxyType, StagingKusamaRuntimeRuntime, StagingKusamaRuntimeRuntimeFreezeReason, StagingKusamaRuntimeRuntimeHoldReason, StagingKusamaRuntimeRuntimeParameters, StagingKusamaRuntimeRuntimeParametersKey, StagingKusamaRuntimeRuntimeParametersValue, StagingKusamaRuntimeSessionKeys, XcmV3OriginKind } from '@polkadot/types/lookup';
declare module '@polkadot/types/types/registry' {
interface InterfaceTypes {
PalletBalancesIdAmount: PalletBalancesIdAmount;
BinaryHeapEnqueuedOrder: BinaryHeapEnqueuedOrder;
BinaryHeapReverseQueueIndex: BinaryHeapReverseQueueIndex;
FrameSupportTokensMiscIdAmount: FrameSupportTokensMiscIdAmount;
PolkadotPrimitivesV7ApprovalVotingParams: PolkadotPrimitivesV7ApprovalVotingParams;
PolkadotPrimitivesV7AssignmentAppPublic: PolkadotPrimitivesV7AssignmentAppPublic;
PolkadotPrimitivesV7AsyncBackingAsyncBackingParams: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams;
PolkadotPrimitivesV7BackedCandidate: PolkadotPrimitivesV7BackedCandidate;
PolkadotPrimitivesV7CandidateCommitments: PolkadotPrimitivesV7CandidateCommitments;
PolkadotPrimitivesV7CandidateDescriptor: PolkadotPrimitivesV7CandidateDescriptor;
PolkadotPrimitivesV7CandidateReceipt: PolkadotPrimitivesV7CandidateReceipt;
PolkadotPrimitivesV7CollatorAppPublic: PolkadotPrimitivesV7CollatorAppPublic;
PolkadotPrimitivesV7CollatorAppSignature: PolkadotPrimitivesV7CollatorAppSignature;
PolkadotPrimitivesV7CommittedCandidateReceipt: PolkadotPrimitivesV7CommittedCandidateReceipt;
PolkadotPrimitivesV7DisputeState: PolkadotPrimitivesV7DisputeState;
PolkadotPrimitivesV7DisputeStatement: PolkadotPrimitivesV7DisputeStatement;
PolkadotPrimitivesV7DisputeStatementSet: PolkadotPrimitivesV7DisputeStatementSet;
PolkadotPrimitivesV7ExecutorParams: PolkadotPrimitivesV7ExecutorParams;
PolkadotPrimitivesV7ExecutorParamsExecutorParam: PolkadotPrimitivesV7ExecutorParamsExecutorParam;
PolkadotPrimitivesV7IndexedVecGroupIndex: PolkadotPrimitivesV7IndexedVecGroupIndex;
PolkadotPrimitivesV7IndexedVecValidatorIndex: PolkadotPrimitivesV7IndexedVecValidatorIndex;
PolkadotPrimitivesV7InherentData: PolkadotPrimitivesV7InherentData;
PolkadotPrimitivesV7InvalidDisputeStatementKind: PolkadotPrimitivesV7InvalidDisputeStatementKind;
PolkadotPrimitivesV7PvfCheckStatement: PolkadotPrimitivesV7PvfCheckStatement;
PolkadotPrimitivesV7PvfExecKind: PolkadotPrimitivesV7PvfExecKind;
PolkadotPrimitivesV7PvfPrepKind: PolkadotPrimitivesV7PvfPrepKind;
PolkadotPrimitivesV7ScrapedOnChainVotes: PolkadotPrimitivesV7ScrapedOnChainVotes;
PolkadotPrimitivesV7SessionInfo: PolkadotPrimitivesV7SessionInfo;
PolkadotPrimitivesV7SignedUncheckedSigned: PolkadotPrimitivesV7SignedUncheckedSigned;
PolkadotPrimitivesV7SlashingDisputeProof: PolkadotPrimitivesV7SlashingDisputeProof;
PolkadotPrimitivesV7SlashingDisputesTimeSlot: PolkadotPrimitivesV7SlashingDisputesTimeSlot;
PolkadotPrimitivesV7SlashingPendingSlashes: PolkadotPrimitivesV7SlashingPendingSlashes;
PolkadotPrimitivesV7SlashingSlashingOffenceKind: PolkadotPrimitivesV7SlashingSlashingOffenceKind;
PolkadotPrimitivesV7UpgradeGoAhead: PolkadotPrimitivesV7UpgradeGoAhead;
PolkadotPrimitivesV7UpgradeRestriction: PolkadotPrimitivesV7UpgradeRestriction;
PolkadotPrimitivesV7ValidDisputeStatementKind: PolkadotPrimitivesV7ValidDisputeStatementKind;
PolkadotPrimitivesV7ValidatorAppPublic: PolkadotPrimitivesV7ValidatorAppPublic;
PolkadotPrimitivesV7ValidatorAppSignature: PolkadotPrimitivesV7ValidatorAppSignature;
PolkadotPrimitivesV7ValidityAttestation: PolkadotPrimitivesV7ValidityAttestation;
PolkadotPrimitivesVstagingSchedulerParams: PolkadotPrimitivesVstagingSchedulerParams;
PolkadotRuntimeParachainsAssignerCoretimeAssignmentState: PolkadotRuntimeParachainsAssignerCoretimeAssignmentState;
PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor: PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor;
PolkadotRuntimeParachainsAssignerCoretimePalletError: PolkadotRuntimeParachainsAssignerCoretimePalletError;
PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor: PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor;
PolkadotRuntimeParachainsAssignerCoretimeSchedule: PolkadotRuntimeParachainsAssignerCoretimeSchedule;
PolkadotRuntimeParachainsAssignerCoretimeWorkState: PolkadotRuntimeParachainsAssignerCoretimeWorkState;
PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount: PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount;
PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder: PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder;
PolkadotRuntimeParachainsAssignerOnDemandPalletCall: PolkadotRuntimeParachainsAssignerOnDemandPalletCall;
PolkadotRuntimeParachainsAssignerOnDemandPalletError: PolkadotRuntimeParachainsAssignerOnDemandPalletError;
PolkadotRuntimeParachainsAssignerOnDemandPalletEvent: PolkadotRuntimeParachainsAssignerOnDemandPalletEvent;
PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount: PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount;
PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder: PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder;
PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType: PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType;
PolkadotRuntimeParachainsCoretimePalletCall: PolkadotRuntimeParachainsCoretimePalletCall;
PolkadotRuntimeParachainsCoretimePalletError: PolkadotRuntimeParachainsCoretimePalletError;
PolkadotRuntimeParachainsCoretimePalletEvent: PolkadotRuntimeParachainsCoretimePalletEvent;
PolkadotRuntimeParachainsParasUpgradeStrategy: PolkadotRuntimeParachainsParasUpgradeStrategy;
StagingKusamaRuntimeDynamicParamsInflationFalloff: StagingKusamaRuntimeDynamicParamsInflationFalloff;
StagingKusamaRuntimeDynamicParamsInflationIdealStake: StagingKusamaRuntimeDynamicParamsInflationIdealStake;
StagingKusamaRuntimeDynamicParamsInflationMaxInflation: StagingKusamaRuntimeDynamicParamsInflationMaxInflation;
StagingKusamaRuntimeDynamicParamsInflationMinInflation: StagingKusamaRuntimeDynamicParamsInflationMinInflation;
StagingKusamaRuntimeDynamicParamsInflationParameters: StagingKusamaRuntimeDynamicParamsInflationParameters;
StagingKusamaRuntimeDynamicParamsInflationParametersKey: StagingKusamaRuntimeDynamicParamsInflationParametersKey;
StagingKusamaRuntimeDynamicParamsInflationParametersValue: StagingKusamaRuntimeDynamicParamsInflationParametersValue;
StagingKusamaRuntimeDynamicParamsInflationUseAuctionSlots: StagingKusamaRuntimeDynamicParamsInflationUseAuctionSlots;
StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin: StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin;
StagingKusamaRuntimeNposCompactSolution24: StagingKusamaRuntimeNposCompactSolution24;
StagingKusamaRuntimeOriginCaller: StagingKusamaRuntimeOriginCaller;
@@ -31,6 +79,10 @@ declare module '@polkadot/types/types/registry' {
StagingKusamaRuntimeRuntime: StagingKusamaRuntimeRuntime;
StagingKusamaRuntimeRuntimeFreezeReason: StagingKusamaRuntimeRuntimeFreezeReason;
StagingKusamaRuntimeRuntimeHoldReason: StagingKusamaRuntimeRuntimeHoldReason;
StagingKusamaRuntimeRuntimeParameters: StagingKusamaRuntimeRuntimeParameters;
StagingKusamaRuntimeRuntimeParametersKey: StagingKusamaRuntimeRuntimeParametersKey;
StagingKusamaRuntimeRuntimeParametersValue: StagingKusamaRuntimeRuntimeParametersValue;
StagingKusamaRuntimeSessionKeys: StagingKusamaRuntimeSessionKeys;
XcmV3OriginKind: XcmV3OriginKind;
} // 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": "10.13.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^12.6.2",
"@polkadot/x-bigint": "^12.6.2",
"tslib": "^2.6.2"
"@polkadot/util": "^13.1.1",
"@polkadot/x-bigint": "^13.1.1",
"tslib": "^2.7.0"
},
"devDependencies": {
"@polkadot/types": "10.13.1",
"@polkadot/types-augment": "10.13.1",
"@polkadot/types-support": "10.13.1",
"@polkadot/util-crypto": "^12.6.2"
"@polkadot/types": "14.0.1",
"@polkadot/types-augment": "14.0.1",
"@polkadot/types-support": "14.0.1",
"@polkadot/util-crypto": "^13.1.1"
}
}
+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: '10.13.1' };
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '14.0.1' };
@@ -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": "10.13.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/types-codec": "10.13.1",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
"@polkadot/types-codec": "14.0.1",
"@polkadot/util": "^13.1.1",
"tslib": "^2.7.0"
},
"devDependencies": {
"@polkadot/types": "10.13.1"
"@polkadot/types": "14.0.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '10.13.1' };
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '14.0.1' };
+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": "10.13.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/networks": "^12.6.2",
"@polkadot/types": "10.13.1",
"@polkadot/types-codec": "10.13.1",
"@polkadot/types-create": "10.13.1",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
"@polkadot/networks": "^13.1.1",
"@polkadot/types": "14.0.1",
"@polkadot/types-codec": "14.0.1",
"@polkadot/types-create": "14.0.1",
"@polkadot/util": "^13.1.1",
"tslib": "^2.7.0"
},
"devDependencies": {
"@polkadot/api": "10.13.1"
"@polkadot/api": "14.0.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '10.13.1' };
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '14.0.1' };
+7 -1
View File
@@ -47,11 +47,17 @@ export const versioned: OverrideVersionedType[] = [
},
{
// metadata V14
minmax: [500, undefined],
minmax: [500, 1001003],
types: {
Weight: 'WeightV1',
TAssetConversion: 'Option<AssetId>'
}
},
{
minmax: [1002000, undefined],
types: {
Weight: 'WeightV1'
}
}
// ,
// {
@@ -4860,5 +4860,513 @@ export const upgrades: ChainUpgradesExpanded = [
1
]
]
],
[
22790000,
1002000,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
10
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xfbc577b9d747efd6",
1
]
]
],
[
23176015,
1002001,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
10
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xfbc577b9d747efd6",
1
]
]
],
[
23450253,
1002004,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
10
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xfbc577b9d747efd6",
1
]
]
],
[
23565293,
1002005,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
10
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xfbc577b9d747efd6",
1
]
]
],
[
23780224,
1002006,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
10
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xfbc577b9d747efd6",
1
]
]
],
[
24786390,
1003000,
[
[
"0xc51ff1fa3f5d0cca",
1
],
[
"0xdf6acb689907609b",
5
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
11
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0x6ff52ee858e6c5bd",
1
],
[
"0x91b1c8b16328eb92",
1
],
[
"0x9ffb505aa738d69c",
1
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xfbc577b9d747efd6",
1
]
]
]
];
@@ -3216,5 +3216,497 @@ export const upgrades: ChainUpgradesExpanded = [
1
]
]
],
[
20181758,
1001003,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
5
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0xfbc577b9d747efd6",
1
]
]
],
[
20438530,
1002000,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
10
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0xfbc577b9d747efd6",
1
]
]
],
[
21169168,
1002004,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
10
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0xfbc577b9d747efd6",
1
]
]
],
[
21455374,
1002005,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
10
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0xfbc577b9d747efd6",
1
]
]
],
[
21558004,
1002006,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
10
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0xfbc577b9d747efd6",
1
]
]
],
[
21800141,
1002007,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
10
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0xfbc577b9d747efd6",
1
]
]
]
];
@@ -5502,5 +5502,455 @@ export const upgrades: ChainUpgradesExpanded = [
1
]
]
],
[
20649086,
1011000,
[
[
"0xdf6acb689907609b",
5
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
11
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0x6ff52ee858e6c5bd",
1
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xfbc577b9d747efd6",
1
]
]
],
[
21217837,
1011001,
[
[
"0xdf6acb689907609b",
5
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
11
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0x6ff52ee858e6c5bd",
1
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xfbc577b9d747efd6",
1
]
]
],
[
21300429,
1013000,
[
[
"0xdf6acb689907609b",
5
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
11
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0x6ff52ee858e6c5bd",
1
],
[
"0x91b1c8b16328eb92",
1
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xfbc577b9d747efd6",
1
]
]
],
[
21460051,
1014000,
[
[
"0xdf6acb689907609b",
5
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
11
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0x6ff52ee858e6c5bd",
1
],
[
"0x91b1c8b16328eb92",
1
],
[
"0x9ffb505aa738d69c",
1
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xfbc577b9d747efd6",
1
]
]
],
[
21925427,
1015000,
[
[
"0xdf6acb689907609b",
5
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
11
],
[
"0x49eaaf1b548a0cb0",
4
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0x6ff52ee858e6c5bd",
1
],
[
"0x91b1c8b16328eb92",
1
],
[
"0x9ffb505aa738d69c",
1
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xfbc577b9d747efd6",
1
]
]
]
];
@@ -21,5 +21,6 @@ export const upgrades: ChainUpgradesRaw = [
// we have 9340 via system.setStorage (whitelist.WhitelistedCallDispatched event)
[15680713, 9340], [15756296, 9350], [15912007, 9360], [16356547, 9370], [17335450, 9381],
[18062739, 9420], [18625000, 9430], [20465806, 1000000], [21570000, 1001000], [21786291, 1001002],
[22515962, 1001003]
[22515962, 1001003], [22790000, 1002000], [23176015, 1002001], [23450253, 1002004], [23565293, 1002005],
[23780224, 1002006], [24786390, 1003000]
];
@@ -14,5 +14,6 @@ export const upgrades: ChainUpgradesRaw = [
[10458576, 9200], [10655116, 9220], [10879371, 9230], [11328884, 9250], [11532856, 9260],
[11933818, 9270], [12217535, 9280], [12245277, 9281], [12532644, 9291], [12876189, 9300],
[13800015, 9340], [14188833, 9360], [14543918, 9370], [15978362, 9420], [16450000, 9430],
[17840000, 9431], [18407475, 1000001], [19551000, 1001002]
[17840000, 9431], [18407475, 1000001], [19551000, 1001002], [20181758, 1001003],
[20438530, 1002000], [21169168, 1002004], [21455374, 1002005], [21558004, 1002006], [21800141, 1002007]
];
@@ -21,5 +21,6 @@ export const upgrades: ChainUpgradesRaw = [
[14849830, 9390], [15146832, 9400], [15332317, 9401], [15661793, 9420], [16165469, 9430],
[18293984, 102000], [18293991, 103000], [18451783, 104000], [18679741, 1005000], [19166695, 1006000],
[19234157, 1006001], [19542944, 1007000], [19621258, 1007001], [19761406, 1008000], [20056997, 1009000],
[20368318, 1010000]
[20368318, 1010000], [20649086, 1011000], [21217837, 1011001], [21300429, 1013000], [21460051, 1014000],
[21925427, 1015000]
];
+3 -3
View File
@@ -18,10 +18,10 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "10.13.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
"@polkadot/util": "^13.1.1",
"tslib": "^2.7.0"
}
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -8,6 +8,13 @@
export default {
"methods": [
"account_nextIndex",
"archive_unstable_body",
"archive_unstable_call",
"archive_unstable_finalizedHeight",
"archive_unstable_genesisHash",
"archive_unstable_hashByHeight",
"archive_unstable_header",
"archive_unstable_storage",
"author_hasKey",
"author_hasSessionKeys",
"author_insertKey",
@@ -21,15 +28,15 @@ export default {
"beefy_getFinalizedHead",
"beefy_subscribeJustifications",
"beefy_unsubscribeJustifications",
"chainHead_unstable_body",
"chainHead_unstable_call",
"chainHead_unstable_continue",
"chainHead_unstable_follow",
"chainHead_unstable_header",
"chainHead_unstable_stopOperation",
"chainHead_unstable_storage",
"chainHead_unstable_unfollow",
"chainHead_unstable_unpin",
"chainHead_v1_body",
"chainHead_v1_call",
"chainHead_v1_continue",
"chainHead_v1_follow",
"chainHead_v1_header",
"chainHead_v1_stopOperation",
"chainHead_v1_storage",
"chainHead_v1_unfollow",
"chainHead_v1_unpin",
"chainSpec_v1_chainName",
"chainSpec_v1_genesisHash",
"chainSpec_v1_properties",
@@ -118,8 +125,10 @@ export default {
"system_syncState",
"system_unstable_networkState",
"system_version",
"transactionWatch_unstable_submitAndWatch",
"transactionWatch_unstable_unwatch",
"transactionWatch_v1_submitAndWatch",
"transactionWatch_v1_unwatch",
"transaction_v1_broadcast",
"transaction_v1_stop",
"unsubscribe_newHead"
]
};
File diff suppressed because it is too large Load Diff
@@ -9,12 +9,16 @@ export default {
"specName": "kusama",
"implName": "parity-kusama",
"authoringVersion": 2,
"specVersion": 1002000,
"specVersion": 1003000,
"implVersion": 0,
"apis": [
[
"0xc51ff1fa3f5d0cca",
1
],
[
"0xdf6acb689907609b",
4
5
],
[
"0x37e397fc7c91f5e4",
@@ -34,7 +38,7 @@ export default {
],
[
"0xaf2c0297a23e6d3d",
10
11
],
[
"0x49eaaf1b548a0cb0",
@@ -76,6 +80,18 @@ export default {
"0xf3ff14d5ab527059",
3
],
[
"0x6ff52ee858e6c5bd",
1
],
[
"0x91b1c8b16328eb92",
1
],
[
"0x9ffb505aa738d69c",
1
],
[
"0x17a6bc0d0062aeb3",
1
@@ -89,6 +105,6 @@ export default {
1
]
],
"transactionVersion": 25,
"transactionVersion": 26,
"stateVersion": 1
};
File diff suppressed because one or more lines are too long

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