Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0c7fed3090 | ||
|
|
5a4414d36d | ||
|
|
7d41d34a03 | ||
|
|
f983b6aa90 | ||
|
|
9271f7f05a | ||
|
|
46c00d4883 | ||
|
|
2d26e748f0 | ||
|
|
db1a699c0a | ||
|
|
53f9abe4e2 | ||
|
|
263d2a40f3 | ||
|
|
c73c26d133 | ||
|
|
63afad4862 | ||
|
|
fca68ae286 | ||
|
|
efc4a291b1 | ||
|
|
ed14218205 | ||
|
|
4ec727ed6b | ||
|
|
a1ccedf76e | ||
|
|
ec1f6ca5f5 | ||
|
|
dcca12bc23 | ||
|
|
d9d0d7b0c8 | ||
|
|
1a5de033e6 | ||
|
|
3460a74f7e | ||
|
|
56eee35e05 | ||
|
|
bc81ca45ef | ||
|
|
7a8a4f1c64 | ||
|
|
4c811a3fdd | ||
|
|
6fcd984205 | ||
|
|
62bbf09f5c | ||
|
|
dea14bcfc4 | ||
|
|
5246a6771c | ||
|
|
bc2a51e28e | ||
|
|
dd085cee79 |
Vendored
-363
File diff suppressed because one or more lines are too long
-550
File diff suppressed because one or more lines are too long
Vendored
-785
File diff suppressed because one or more lines are too long
+893
File diff suppressed because one or more lines are too long
+5
-8
@@ -1,18 +1,15 @@
|
||||
compressionLevel: mixed
|
||||
|
||||
enableGlobalCache: false
|
||||
|
||||
enableImmutableInstalls: false
|
||||
|
||||
enableProgressBars: false
|
||||
|
||||
logFilters:
|
||||
# Discard any "cannot be found in cache" messages
|
||||
- code: YN0013
|
||||
level: discard
|
||||
|
||||
nodeLinker: node-modules
|
||||
|
||||
plugins:
|
||||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
|
||||
spec: "@yarnpkg/plugin-interactive-tools"
|
||||
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
|
||||
spec: "@yarnpkg/plugin-version"
|
||||
|
||||
yarnPath: .yarn/releases/yarn-3.2.0.cjs
|
||||
yarnPath: .yarn/releases/yarn-4.0.2.cjs
|
||||
|
||||
@@ -1,5 +1,33 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 10.11.2 Dec 18, 2023
|
||||
|
||||
Contributed:
|
||||
|
||||
- Add `chainIsEthereum` key to `Registry` interface (Thanks to https://github.com/fgamundi)
|
||||
- Adjust types for `ChargeAssetTxPayment` (Thanks to https://github.com/bee344)
|
||||
|
||||
Changes:
|
||||
|
||||
- Support `[8a;32]` types in known keys
|
||||
- Update to latest Substrate metadata
|
||||
|
||||
|
||||
## 10.11.1 Nov 18, 2023
|
||||
|
||||
Contributed:
|
||||
|
||||
- Support for latest `ChargeAssetTxPayment` (Thanks to https://github.com/bee344)
|
||||
- Support for latest `beefy::subscribeJustifications()` (Thanks to https://github.com/serban300)
|
||||
|
||||
Changes:
|
||||
|
||||
- Add known `intrablockEntropy` storage key
|
||||
- Add support for `SkipCheckIfFeeless` signed extension
|
||||
- Ensure all usages of `balances.transfer` (in tests) have been removed
|
||||
- Drop support for Node 16 (EOL 11 Sep 2023)
|
||||
|
||||
|
||||
## 10.10.1 Oct 14, 2023
|
||||
|
||||
Contributed:
|
||||
|
||||
+5
-2
@@ -1,4 +1,4 @@
|
||||
3498 Jaco 10.10.1 (#5738)
|
||||
3509 Jaco 10.11.2 (#5774)
|
||||
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)
|
||||
@@ -31,9 +31,11 @@
|
||||
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)
|
||||
2 Francisco Gamundi Add chainIsEthereum prop to Registry interface (#5761)
|
||||
2 HackFisher Update maxExtrinsic definition (#4703)
|
||||
2 Jakub Pánik All heads subscription (#1899)
|
||||
2 James Lefrère Add `.eq()` usage to docs and fix docs typos (#1405)
|
||||
@@ -67,7 +69,6 @@
|
||||
1 Dylan Galea Updated users of the polkadot-js/api (#2027)
|
||||
1 flex Change BeefySignedCommitment signatures type to EcdsaSignature (#4204)
|
||||
1 Florian Franzen metadataMd: use endpoint for rpc and runtime details too (#5628)
|
||||
1 Francisco Gamundi Add isEthereum to ChainProperties (#5686)
|
||||
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)
|
||||
@@ -113,6 +114,7 @@
|
||||
1 satellitex Add traits replace rules. for invalid cases `::<type>` and `<type>::`. (#885)
|
||||
1 Satyam Agrawal update as per the 0.97.0-beta.38 release (#1617)
|
||||
1 Sean Young Solang requires u256 and i256 types (#2752)
|
||||
1 Serban Iorga Fix `beefy::subscribeJustifications()` return type (#5740)
|
||||
1 serge make WS provider timeout configurable (#4758)
|
||||
1 Sergei Pepyakin INK! -> ink! (#1347)
|
||||
1 Shunji Zhan small polish (#5276)
|
||||
@@ -121,6 +123,7 @@
|
||||
1 Tim B added EthRTApiV5 ifaces (#5680)
|
||||
1 WoeOm adapt Darwinia, Crab Network types (#3498)
|
||||
1 Xat_MassacrE Fix packages/types/src/codec/utils/encodeTypes.ts encodeSubTypes bug (#1544)
|
||||
1 xiaolou86 Fix typos (#5747)
|
||||
1 yjh fix MetadataVersioned.asV12 (#2983)
|
||||
1 Yuri fixes #3693 Fix uniques return types (#3694)
|
||||
1 Zeke Mostov fix: Allow sudo for polkadot indexed proxy enum (#3286)
|
||||
+6
-6
@@ -14,10 +14,10 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.2",
|
||||
"versions": {
|
||||
"git": "10.10.1",
|
||||
"npm": "10.10.1"
|
||||
"git": "10.11.2",
|
||||
"npm": "10.11.2"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
@@ -40,11 +40,11 @@
|
||||
"test:one": "polkadot-dev-run-test --env node"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/dev": "^0.76.29",
|
||||
"@polkadot/dev": "^0.78.1",
|
||||
"@polkadot/typegen": "workspace:packages/typegen",
|
||||
"@types/node": "^20.8.6"
|
||||
"@types/node": "^20.10.5"
|
||||
},
|
||||
"resolutions": {
|
||||
"typescript": "^5.1.6"
|
||||
"typescript": "^5.3.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "API generated augmentation",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-augment#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,15 +18,15 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-base": "10.10.1",
|
||||
"@polkadot/rpc-augment": "10.10.1",
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/types-augment": "10.10.1",
|
||||
"@polkadot/types-codec": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/api-base": "10.11.2",
|
||||
"@polkadot/rpc-augment": "10.11.2",
|
||||
"@polkadot/types": "10.11.2",
|
||||
"@polkadot/types-augment": "10.11.2",
|
||||
"@polkadot/types-codec": "10.11.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"tslib": "^2.6.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.10.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '10.11.2' };
|
||||
|
||||
@@ -484,10 +484,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* to submit the worker's solution.
|
||||
**/
|
||||
offchainRepeat: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Base deposit for a signed solution.
|
||||
**/
|
||||
signedDepositBase: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Per-byte deposit for a signed solution.
|
||||
**/
|
||||
@@ -639,14 +635,9 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
basicDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount held on deposit per additional field for a registered identity.
|
||||
* The amount held on deposit per encoded byte for a registered identity.
|
||||
**/
|
||||
fieldDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O
|
||||
* required to access an identity, but can be pretty high.
|
||||
**/
|
||||
maxAdditionalFields: u32 & AugmentedConst<ApiType>;
|
||||
byteDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maxmimum number of registrars allowed in the system. Needed to bound the complexity
|
||||
* of, e.g., updating judgements.
|
||||
@@ -738,6 +729,58 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
mixnet: {
|
||||
/**
|
||||
* The maximum number of authorities per session.
|
||||
**/
|
||||
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of external addresses for a mixnode.
|
||||
**/
|
||||
maxExternalAddressesPerMixnode: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum size of one of a mixnode's external addresses.
|
||||
**/
|
||||
maxExternalAddressSize: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Minimum number of mixnodes. If there are fewer than this many mixnodes registered for a
|
||||
* session, the mixnet will not be active during the session.
|
||||
**/
|
||||
minMixnodes: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Length of the first phase of each session (`CoverToCurrent`), in blocks.
|
||||
**/
|
||||
numCoverToCurrentBlocks: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Length of the third phase of each session (`CoverToPrev`), in blocks.
|
||||
**/
|
||||
numCoverToPrevBlocks: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The number of "slack" blocks at the end of each session.
|
||||
* [`maybe_register`](Pallet::maybe_register) will try to register before this slack
|
||||
* period, but may post registration transactions during the slack period as a last
|
||||
* resort.
|
||||
**/
|
||||
numRegisterEndSlackBlocks: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The number of "slack" blocks at the start of each session, during which
|
||||
* [`maybe_register`](Pallet::maybe_register) will not attempt to post registration
|
||||
* transactions.
|
||||
**/
|
||||
numRegisterStartSlackBlocks: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Length of the second phase of each session (`RequestsToCurrent`), in blocks.
|
||||
**/
|
||||
numRequestsToCurrentBlocks: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Priority of unsigned transactions used to register mixnodes.
|
||||
**/
|
||||
registrationPriority: u64 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
multisig: {
|
||||
/**
|
||||
* The base amount of currency needed to reserve for creating a multisig execution or to
|
||||
@@ -932,6 +975,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Such a scenario would also be the equivalent of the pool being 90% slashed.
|
||||
**/
|
||||
maxPointsToBalance: u8 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of simultaneous unbonding chunks that can exist per member.
|
||||
**/
|
||||
maxUnbonding: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The nomination pool's pallet id.
|
||||
**/
|
||||
@@ -1259,8 +1306,8 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Following information is kept for eras in `[current_era -
|
||||
* HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,
|
||||
* `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,
|
||||
* `ErasTotalStake`, `ErasStartSessionIndex`,
|
||||
* `StakingLedger.claimed_rewards`.
|
||||
* `ErasTotalStake`, `ErasStartSessionIndex`, `ClaimedRewards`, `ErasStakersPaged`,
|
||||
* `ErasStakersOverview`.
|
||||
*
|
||||
* Must be more than the number of eras delayed by session.
|
||||
* I.e. active era must always be in history. I.e. `active_era >
|
||||
@@ -1270,19 +1317,26 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* this should be set to same value or greater as in storage.
|
||||
*
|
||||
* Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
|
||||
* item `StakingLedger.claimed_rewards`. Setting this value lower than
|
||||
* item `StakingLedger.legacy_claimed_rewards`. Setting this value lower than
|
||||
* the existing value can lead to inconsistencies in the
|
||||
* `StakingLedger` and will need to be handled properly in a migration.
|
||||
* The test `reducing_history_depth_abrupt` shows this effect.
|
||||
**/
|
||||
historyDepth: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of nominators rewarded for each validator.
|
||||
* The maximum size of each `T::ExposurePage`.
|
||||
*
|
||||
* For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can
|
||||
* claim their reward. This used to limit the i/o cost for the nominator payout.
|
||||
* An `ExposurePage` is weakly bounded to a maximum of `MaxExposurePageSize`
|
||||
* nominators.
|
||||
*
|
||||
* For older non-paged exposure, a reward payout was restricted to the top
|
||||
* `MaxExposurePageSize` nominators. This is to limit the i/o cost for the
|
||||
* nominator payout.
|
||||
*
|
||||
* Note: `MaxExposurePageSize` is used to bound `ClaimedRewards` and is unsafe to reduce
|
||||
* without handling it in a migration.
|
||||
**/
|
||||
maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>;
|
||||
maxExposurePageSize: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of `unlocking` chunks a [`StakingLedger`] can
|
||||
* have. Effectively determines how many unique eras a staker may be
|
||||
@@ -1418,10 +1472,12 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
};
|
||||
timestamp: {
|
||||
/**
|
||||
* The minimum period between blocks. Beware that this is different to the *expected*
|
||||
* period that the block production apparatus provides. Your chosen consensus system will
|
||||
* generally work with this to determine a sensible block time. e.g. For Aura, it will be
|
||||
* double this period on default settings.
|
||||
* The minimum period between blocks.
|
||||
*
|
||||
* Be aware that this is different to the *expected* period that the block production
|
||||
* apparatus provides. Your chosen consensus system will generally work with this to
|
||||
* determine a sensible block time. For example, in the Aura pallet it will be double this
|
||||
* period on default settings.
|
||||
**/
|
||||
minimumPeriod: u64 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -1440,6 +1496,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Benchmarks depend on this value, be sure to update weights file when changing this value
|
||||
**/
|
||||
maximumReasonLength: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum amount for a single tip.
|
||||
**/
|
||||
maxTipAmount: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The period for which a tip remains open after is has achieved threshold tippers.
|
||||
**/
|
||||
@@ -1459,10 +1519,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
};
|
||||
transactionPayment: {
|
||||
/**
|
||||
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
|
||||
* A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
|
||||
* `priority`
|
||||
*
|
||||
* This value is multipled by the `final_fee` to obtain a "virtual tip" that is later
|
||||
* This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
|
||||
* added to a tip component in regular `priority` calculations.
|
||||
* It means that a `Normal` transaction can front-run a similarly-sized `Operational`
|
||||
* extrinsic (with no tip), by including a tip value greater than the virtual tip.
|
||||
@@ -1502,6 +1562,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* The treasury's pallet id, used for deriving its sovereign account ID.
|
||||
**/
|
||||
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The period during which an approved treasury spend has to be claimed.
|
||||
**/
|
||||
payoutPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Fraction of a proposal's value that should be bonded in order to place the proposal.
|
||||
* An accepted proposal gets these back. A rejected proposal does not.
|
||||
|
||||
@@ -108,7 +108,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
/**
|
||||
* The account's identity does not have display field and website field.
|
||||
**/
|
||||
WithoutIdentityDisplayAndWebsite: AugmentedError<ApiType>;
|
||||
WithoutRequiredIdentityFields: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
@@ -802,6 +802,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The size defined in `T::MaxValueSize` was exceeded.
|
||||
**/
|
||||
ValueTooLarge: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Failed to decode the XCM program.
|
||||
**/
|
||||
XCMDecodeFailed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
@@ -1340,10 +1344,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Sticky judgement.
|
||||
**/
|
||||
StickyJudgement: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too many additional fields.
|
||||
**/
|
||||
TooManyFields: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Maximum amount of registrars reached. Cannot add any more.
|
||||
**/
|
||||
@@ -1463,6 +1463,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* This can change at any time and may resolve in the future by re-trying.
|
||||
**/
|
||||
QueuePaused: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Another call is in progress and needs to finish before this call can happen.
|
||||
**/
|
||||
RecursiveDisallowed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* This message is temporarily unprocessable.
|
||||
*
|
||||
@@ -1887,9 +1891,9 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
/**
|
||||
* The amount does not meet the minimum bond to either join or create a pool.
|
||||
*
|
||||
* The depositor can never unbond to a value less than
|
||||
* `Pallet::depositor_min_bond`. The caller does not have nominating
|
||||
* permissions for the pool. Members can never unbond to a value below `MinJoinBond`.
|
||||
* The depositor can never unbond to a value less than `Pallet::depositor_min_bond`. The
|
||||
* caller does not have nominating permissions for the pool. Members can never unbond to a
|
||||
* value below `MinJoinBond`.
|
||||
**/
|
||||
MinimumBondNotMet: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1905,6 +1909,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* other members to be permissionlessly unbonded.
|
||||
**/
|
||||
NotDestroying: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No imbalance in the ED deposit for the pool.
|
||||
**/
|
||||
NothingToAdjust: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Either a) the caller cannot make a valid kick or b) the pool is not destroying.
|
||||
**/
|
||||
@@ -2064,6 +2072,14 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Preimage is too large to store on-chain.
|
||||
**/
|
||||
TooBig: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too few hashes were requested to be upgraded (i.e. zero).
|
||||
**/
|
||||
TooFew: AugmentedError<ApiType>;
|
||||
/**
|
||||
* More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once.
|
||||
**/
|
||||
TooMany: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
@@ -2661,6 +2677,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Commission is too low. Must be at least `MinCommission`.
|
||||
**/
|
||||
CommissionTooLow: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Used when attempting to use deprecated controller account logic.
|
||||
**/
|
||||
ControllerDeprecated: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Duplicate index.
|
||||
**/
|
||||
@@ -2695,6 +2715,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Invalid number of nominations.
|
||||
**/
|
||||
InvalidNumberOfNominations: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No nominators exist on this page.
|
||||
**/
|
||||
InvalidPage: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Slash record index out of bounds.
|
||||
**/
|
||||
@@ -2776,7 +2800,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
};
|
||||
sudo: {
|
||||
/**
|
||||
* Sender must be the Sudo account
|
||||
* Sender must be the Sudo account.
|
||||
**/
|
||||
RequireSudo: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -2789,6 +2813,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The origin filter prevent the call to be dispatched.
|
||||
**/
|
||||
CallFiltered: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The specified [`Task`] failed during execution.
|
||||
**/
|
||||
FailedTask: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Failed to extract the runtime version from the new runtime.
|
||||
*
|
||||
@@ -2800,6 +2828,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* and the new runtime.
|
||||
**/
|
||||
InvalidSpecName: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The specified [`Task`] is not valid.
|
||||
**/
|
||||
InvalidTask: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Suicide called when the account has non-default composite data.
|
||||
**/
|
||||
@@ -2818,6 +2850,16 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
tasksExample: {
|
||||
/**
|
||||
* The referenced task was not found.
|
||||
**/
|
||||
NotFound: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
technicalCommittee: {
|
||||
/**
|
||||
* Members are already initialized!
|
||||
@@ -2891,6 +2933,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The tip was already found/started.
|
||||
**/
|
||||
AlreadyKnown: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The tip given was too generous.
|
||||
**/
|
||||
MaxTipAmountExceeded: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The account attempting to retract the tip is not the finder of the tip.
|
||||
**/
|
||||
@@ -2929,10 +2975,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Attempting to store empty transaction
|
||||
**/
|
||||
EmptyTransaction: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Insufficient account balance.
|
||||
**/
|
||||
InsufficientFunds: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Proof failed verification.
|
||||
**/
|
||||
@@ -2975,6 +3017,22 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
treasury: {
|
||||
/**
|
||||
* The payment has already been attempted.
|
||||
**/
|
||||
AlreadyAttempted: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The spend is not yet eligible for payout.
|
||||
**/
|
||||
EarlyPayout: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The balance of the asset kind is not convertible to the balance of the native asset.
|
||||
**/
|
||||
FailedToConvertBalance: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The payment has neither failed nor succeeded yet.
|
||||
**/
|
||||
Inconclusive: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The spend origin is valid but the amount it is allowed to spend is lower than the
|
||||
* amount to be spent.
|
||||
@@ -2985,13 +3043,25 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
InsufficientProposersBalance: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No proposal or bounty at that index.
|
||||
* No proposal, bounty or spend at that index.
|
||||
**/
|
||||
InvalidIndex: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The payout was not yet attempted/claimed.
|
||||
**/
|
||||
NotAttempted: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There was some issue with the mechanism of payment.
|
||||
**/
|
||||
PayoutError: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Proposal has not been approved.
|
||||
**/
|
||||
ProposalNotApproved: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The spend has expired and cannot be claimed.
|
||||
**/
|
||||
SpendExpired: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too many approvals in the queue.
|
||||
**/
|
||||
|
||||
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, H256, Perbill, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletAssetConversionNativeOrAssetId, PalletBrokerCoretimeInterfaceCoreAssignment, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsOrigin, PalletConvictionVotingTally, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSafeModeExitReason, PalletSocietyGroupParams, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpStatementStoreStatement, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeTask, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletAssetConversionNativeOrAssetId, PalletBrokerCoretimeInterfaceCoreAssignment, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsOrigin, PalletConvictionVotingTally, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSafeModeExitReason, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpStakingExposure, SpStatementStoreStatement, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||
|
||||
@@ -367,6 +367,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
bounties: {
|
||||
/**
|
||||
* A bounty is approved.
|
||||
**/
|
||||
BountyApproved: AugmentedEvent<ApiType, [index: u32], { index: u32 }>;
|
||||
/**
|
||||
* A bounty is awarded to a beneficiary.
|
||||
**/
|
||||
@@ -395,6 +399,18 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A bounty proposal was rejected; funds were slashed.
|
||||
**/
|
||||
BountyRejected: AugmentedEvent<ApiType, [index: u32, bond: u128], { index: u32, bond: u128 }>;
|
||||
/**
|
||||
* A bounty curator is accepted.
|
||||
**/
|
||||
CuratorAccepted: AugmentedEvent<ApiType, [bountyId: u32, curator: AccountId32], { bountyId: u32, curator: AccountId32 }>;
|
||||
/**
|
||||
* A bounty curator is proposed.
|
||||
**/
|
||||
CuratorProposed: AugmentedEvent<ApiType, [bountyId: u32, curator: AccountId32], { bountyId: u32, curator: AccountId32 }>;
|
||||
/**
|
||||
* A bounty curator is unassigned.
|
||||
**/
|
||||
CuratorUnassigned: AugmentedEvent<ApiType, [bountyId: u32], { bountyId: u32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -981,7 +997,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
/**
|
||||
* At the end of the session, at least one validator was found to be offline.
|
||||
**/
|
||||
SomeOffline: AugmentedEvent<ApiType, [offline: Vec<ITuple<[AccountId32, PalletStakingExposure]>>], { offline: Vec<ITuple<[AccountId32, PalletStakingExposure]>> }>;
|
||||
SomeOffline: AugmentedEvent<ApiType, [offline: Vec<ITuple<[AccountId32, SpStakingExposure]>>], { offline: Vec<ITuple<[AccountId32, SpStakingExposure]>> }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -1039,11 +1055,11 @@ declare module '@polkadot/api-base/types/events' {
|
||||
/**
|
||||
* Message is processed.
|
||||
**/
|
||||
Processed: AugmentedEvent<ApiType, [id: U8aFixed, origin: u32, weightUsed: SpWeightsWeightV2Weight, success: bool], { id: U8aFixed, origin: u32, weightUsed: SpWeightsWeightV2Weight, success: bool }>;
|
||||
Processed: AugmentedEvent<ApiType, [id: H256, origin: u32, weightUsed: SpWeightsWeightV2Weight, success: bool], { id: H256, origin: u32, weightUsed: SpWeightsWeightV2Weight, success: bool }>;
|
||||
/**
|
||||
* Message discarded due to an error in the `MessageProcessor` (usually a format error).
|
||||
**/
|
||||
ProcessingFailed: AugmentedEvent<ApiType, [id: U8aFixed, origin: u32, error: FrameSupportMessagesProcessMessageError], { id: U8aFixed, origin: u32, error: FrameSupportMessagesProcessMessageError }>;
|
||||
ProcessingFailed: AugmentedEvent<ApiType, [id: H256, origin: u32, error: FrameSupportMessagesProcessMessageError], { id: H256, origin: u32, error: FrameSupportMessagesProcessMessageError }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -1299,6 +1315,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked).
|
||||
**/
|
||||
MemberRemoved: AugmentedEvent<ApiType, [poolId: u32, member: AccountId32], { poolId: u32, member: AccountId32 }>;
|
||||
/**
|
||||
* Topped up deficit in frozen ED of the reward pool.
|
||||
**/
|
||||
MinBalanceDeficitAdjusted: AugmentedEvent<ApiType, [poolId: u32, amount: u128], { poolId: u32, amount: u128 }>;
|
||||
/**
|
||||
* Claimed excess frozen ED of af the reward pool.
|
||||
**/
|
||||
MinBalanceExcessAdjusted: AugmentedEvent<ApiType, [poolId: u32, amount: u128], { poolId: u32, amount: u128 }>;
|
||||
/**
|
||||
* A payout has been made to a member.
|
||||
**/
|
||||
@@ -1311,6 +1335,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Pool commission has been claimed.
|
||||
**/
|
||||
PoolCommissionClaimed: AugmentedEvent<ApiType, [poolId: u32, commission: u128], { poolId: u32, commission: u128 }>;
|
||||
/**
|
||||
* Pool commission claim permission has been updated.
|
||||
**/
|
||||
PoolCommissionClaimPermissionUpdated: AugmentedEvent<ApiType, [poolId: u32, permission: Option<PalletNominationPoolsCommissionClaimPermission>], { poolId: u32, permission: Option<PalletNominationPoolsCommissionClaimPermission> }>;
|
||||
/**
|
||||
* A pool's commission setting has been changed.
|
||||
**/
|
||||
@@ -1582,7 +1610,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
DecisionStarted: AugmentedEvent<ApiType, [index: u32, track: u16, proposal: FrameSupportPreimagesBounded, tally: PalletRankedCollectiveTally], { index: u32, track: u16, proposal: FrameSupportPreimagesBounded, tally: PalletRankedCollectiveTally }>;
|
||||
/**
|
||||
* A deposit has been slashaed.
|
||||
* A deposit has been slashed.
|
||||
**/
|
||||
DepositSlashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
@@ -1676,7 +1704,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
DecisionStarted: AugmentedEvent<ApiType, [index: u32, track: u16, proposal: FrameSupportPreimagesBounded, tally: PalletConvictionVotingTally], { index: u32, track: u16, proposal: FrameSupportPreimagesBounded, tally: PalletConvictionVotingTally }>;
|
||||
/**
|
||||
* A deposit has been slashaed.
|
||||
* A deposit has been slashed.
|
||||
**/
|
||||
DepositSlashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
@@ -1722,6 +1750,16 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
rootTesting: {
|
||||
/**
|
||||
* Event dispatched when the trigger_defensive extrinsic is called.
|
||||
**/
|
||||
DefensiveTestCall: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
safeMode: {
|
||||
/**
|
||||
* Could not hold funds for entering or extending the safe-mode.
|
||||
@@ -1827,6 +1865,16 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
skipFeelessPayment: {
|
||||
/**
|
||||
* A transaction fee was skipped.
|
||||
**/
|
||||
FeeSkipped: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
society: {
|
||||
/**
|
||||
* A candidate was dropped (due to an excess of bids in the system).
|
||||
@@ -1939,9 +1987,9 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
PayoutStarted: AugmentedEvent<ApiType, [eraIndex: u32, validatorStash: AccountId32], { eraIndex: u32, validatorStash: AccountId32 }>;
|
||||
/**
|
||||
* The nominator has been rewarded by this amount.
|
||||
* The nominator has been rewarded by this amount to this destination.
|
||||
**/
|
||||
Rewarded: AugmentedEvent<ApiType, [stash: AccountId32, amount: u128], { stash: AccountId32, amount: u128 }>;
|
||||
Rewarded: AugmentedEvent<ApiType, [stash: AccountId32, dest: PalletStakingRewardDestination, amount: u128], { stash: AccountId32, dest: PalletStakingRewardDestination, amount: u128 }>;
|
||||
/**
|
||||
* A staker (validator or nominator) has been slashed by the given amount.
|
||||
**/
|
||||
@@ -2020,15 +2068,19 @@ declare module '@polkadot/api-base/types/events' {
|
||||
};
|
||||
sudo: {
|
||||
/**
|
||||
* The \[sudoer\] just switched identity; the old key is supplied if one existed.
|
||||
* The sudo key has been updated.
|
||||
**/
|
||||
KeyChanged: AugmentedEvent<ApiType, [oldSudoer: Option<AccountId32>], { oldSudoer: Option<AccountId32> }>;
|
||||
KeyChanged: AugmentedEvent<ApiType, [old: Option<AccountId32>, new_: AccountId32], { old: Option<AccountId32>, new_: AccountId32 }>;
|
||||
/**
|
||||
* A sudo just took place. \[result\]
|
||||
* The key was permanently removed.
|
||||
**/
|
||||
KeyRemoved: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* A sudo call just took place.
|
||||
**/
|
||||
Sudid: AugmentedEvent<ApiType, [sudoResult: Result<Null, SpRuntimeDispatchError>], { sudoResult: Result<Null, SpRuntimeDispatchError> }>;
|
||||
/**
|
||||
* A sudo just took place. \[result\]
|
||||
* A [sudo_as](Pallet::sudo_as) call just took place.
|
||||
**/
|
||||
SudoAsDone: AugmentedEvent<ApiType, [sudoResult: Result<Null, SpRuntimeDispatchError>], { sudoResult: Result<Null, SpRuntimeDispatchError> }>;
|
||||
/**
|
||||
@@ -2061,6 +2113,18 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* On on-chain remark happened.
|
||||
**/
|
||||
Remarked: AugmentedEvent<ApiType, [sender: AccountId32, hash_: H256], { sender: AccountId32, hash_: H256 }>;
|
||||
/**
|
||||
* A [`Task`] has finished executing.
|
||||
**/
|
||||
TaskCompleted: AugmentedEvent<ApiType, [task: KitchensinkRuntimeRuntimeTask], { task: KitchensinkRuntimeRuntimeTask }>;
|
||||
/**
|
||||
* A [`Task`] failed during execution.
|
||||
**/
|
||||
TaskFailed: AugmentedEvent<ApiType, [task: KitchensinkRuntimeRuntimeTask, err: SpRuntimeDispatchError], { task: KitchensinkRuntimeRuntimeTask, err: SpRuntimeDispatchError }>;
|
||||
/**
|
||||
* A [`Task`] has started executing
|
||||
**/
|
||||
TaskStarted: AugmentedEvent<ApiType, [task: KitchensinkRuntimeRuntimeTask], { task: KitchensinkRuntimeRuntimeTask }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -2188,6 +2252,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
treasury: {
|
||||
/**
|
||||
* A new asset spend proposal has been approved.
|
||||
**/
|
||||
AssetSpendApproved: AugmentedEvent<ApiType, [index: u32, assetKind: u32, amount: u128, beneficiary: AccountId32, validFrom: u32, expireAt: u32], { index: u32, assetKind: u32, amount: u128, beneficiary: AccountId32, validFrom: u32, expireAt: u32 }>;
|
||||
/**
|
||||
* An approved spend was voided.
|
||||
**/
|
||||
AssetSpendVoided: AugmentedEvent<ApiType, [index: u32], { index: u32 }>;
|
||||
/**
|
||||
* Some funds have been allocated.
|
||||
**/
|
||||
@@ -2200,6 +2272,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Some funds have been deposited.
|
||||
**/
|
||||
Deposit: AugmentedEvent<ApiType, [value: u128], { value: u128 }>;
|
||||
/**
|
||||
* A payment happened.
|
||||
**/
|
||||
Paid: AugmentedEvent<ApiType, [index: u32, paymentId: Null], { index: u32, paymentId: Null }>;
|
||||
/**
|
||||
* A payment failed and can be retried.
|
||||
**/
|
||||
PaymentFailed: AugmentedEvent<ApiType, [index: u32, paymentId: Null], { index: u32, paymentId: Null }>;
|
||||
/**
|
||||
* New proposal.
|
||||
**/
|
||||
@@ -2220,6 +2300,11 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* We have ended a spend period and will now allocate funds.
|
||||
**/
|
||||
Spending: AugmentedEvent<ApiType, [budgetRemaining: u128], { budgetRemaining: u128 }>;
|
||||
/**
|
||||
* A spend was processed and removed from the storage. It might have been successfully
|
||||
* paid or it may have expired.
|
||||
**/
|
||||
SpendProcessed: AugmentedEvent<ApiType, [index: u32], { index: u32 }>;
|
||||
/**
|
||||
* The inactive funds of the pallet have been updated.
|
||||
**/
|
||||
|
||||
@@ -7,10 +7,10 @@ import '@polkadot/api-base/types/storage';
|
||||
|
||||
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
||||
import type { Data } from '@polkadot/types';
|
||||
import type { BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeHoldReason, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionNativeOrAssetId, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerAllowedRenewalId, PalletBrokerAllowedRenewalRecord, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerPoolIoRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionNativeOrAssetId, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesIdAmountRuntimeHoldReason, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerAllowedRenewalId, PalletBrokerAllowedRenewalRecord, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerPoolIoRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||
@@ -305,14 +305,11 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Freeze locks on account balances.
|
||||
**/
|
||||
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmountRuntimeFreezeReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Holds on account balances.
|
||||
**/
|
||||
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<{
|
||||
readonly id: KitchensinkRuntimeRuntimeHoldReason;
|
||||
readonly amount: u128;
|
||||
} & Struct>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmountRuntimeHoldReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* The total units of outstanding deactivated balance in the system.
|
||||
**/
|
||||
@@ -593,7 +590,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
lowestUnbaked: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* General information concerning any proposal or referendum.
|
||||
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
||||
* The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
|
||||
* dump or IPFS hash of a JSON file.
|
||||
*
|
||||
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
||||
@@ -825,6 +822,10 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
grandpa: {
|
||||
/**
|
||||
* The current list of authorities.
|
||||
**/
|
||||
authorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The number of changes (both in terms of keys and underlying economic responsibilities)
|
||||
* in the "set" of Grandpa validators from genesis.
|
||||
@@ -988,6 +989,34 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
mixnet: {
|
||||
/**
|
||||
* Index of the current session. This may be offset relative to the session index tracked by
|
||||
* eg `pallet_session`; mixnet session indices are independent.
|
||||
**/
|
||||
currentSessionIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Block in which the current session started.
|
||||
**/
|
||||
currentSessionStartBlock: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Mixnode sets by session index. Only the mixnode sets for the previous, current, and next
|
||||
* sessions are kept; older sets are discarded.
|
||||
*
|
||||
* The mixnodes in each set are keyed by authority index so we can easily check if an
|
||||
* authority has registered a mixnode. The authority indices should only be used during
|
||||
* registration; the authority indices for the very first session are made up.
|
||||
**/
|
||||
mixnodes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletMixnetBoundedMixnode>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||
/**
|
||||
* Authority list for the next session.
|
||||
**/
|
||||
nextAuthorityIds: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<SpMixnetAppPublic>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
mmr: {
|
||||
/**
|
||||
* Hashes of the nodes in the MMR.
|
||||
@@ -1224,6 +1253,14 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
|
||||
**/
|
||||
subPoolsStorage: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsSubPools>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The sum of funds across all pools.
|
||||
*
|
||||
* This might be lower but never higher than the sum of `total_balance` of all [`PoolMembers`]
|
||||
* because calling `pool_withdraw_unbonded` might decrease the total stake of the pool's
|
||||
* `bonded_account` without adjusting the pallet-internal `UnbondingPool`'s.
|
||||
**/
|
||||
totalValueLocked: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1305,7 +1342,11 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* The request status of a given hash.
|
||||
**/
|
||||
statusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
requestStatusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* The request status of a given hash.
|
||||
**/
|
||||
statusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageOldRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1374,7 +1415,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
||||
/**
|
||||
* The metadata is a general information concerning the referendum.
|
||||
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
||||
* The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
|
||||
* dump or IPFS hash of a JSON file.
|
||||
*
|
||||
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
||||
@@ -1431,7 +1472,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
||||
/**
|
||||
* The metadata is a general information concerning the referendum.
|
||||
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
||||
* The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
|
||||
* dump or IPFS hash of a JSON file.
|
||||
*
|
||||
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
||||
@@ -1670,6 +1711,15 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* (`CountFor*`) in the system compared to the configured max (`Max*Count`).
|
||||
**/
|
||||
chillThreshold: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* History of claimed paged rewards by era and validator.
|
||||
*
|
||||
* This is keyed by era and validator stash which maps to the set of page indexes which have
|
||||
* been claimed.
|
||||
*
|
||||
* It is removed after [`Config::HistoryDepth`] eras.
|
||||
**/
|
||||
claimedRewards: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Vec<u32>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
/**
|
||||
* Counter for the related counted storage map
|
||||
**/
|
||||
@@ -1692,7 +1742,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Rewards for the last `HISTORY_DEPTH` eras.
|
||||
* Rewards for the last [`Config::HistoryDepth`] eras.
|
||||
* If reward hasn't been set or has been removed then 0 reward is returned.
|
||||
**/
|
||||
erasRewardPoints: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletStakingEraRewardPoints>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
@@ -1701,33 +1751,64 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
*
|
||||
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
||||
*
|
||||
* Is it removed after `HISTORY_DEPTH` eras.
|
||||
* Is it removed after [`Config::HistoryDepth`] eras.
|
||||
* If stakers hasn't been set or has been removed then empty exposure is returned.
|
||||
*
|
||||
* Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
|
||||
**/
|
||||
erasStakers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
erasStakers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<SpStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
/**
|
||||
* Clipped Exposure of validator at era.
|
||||
*
|
||||
* Note: This is deprecated, should be used as read-only and will be removed in the future.
|
||||
* New `Exposure`s are stored in a paged manner in `ErasStakersPaged` instead.
|
||||
*
|
||||
* This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the
|
||||
* `T::MaxNominatorRewardedPerValidator` biggest stakers.
|
||||
* `T::MaxExposurePageSize` biggest stakers.
|
||||
* (Note: the field `total` and `own` of the exposure remains unchanged).
|
||||
* This is used to limit the i/o cost for the nominator payout.
|
||||
*
|
||||
* This is keyed fist by the era index to allow bulk deletion and then the stash account.
|
||||
*
|
||||
* Is it removed after `HISTORY_DEPTH` eras.
|
||||
* It is removed after [`Config::HistoryDepth`] eras.
|
||||
* If stakers hasn't been set or has been removed then empty exposure is returned.
|
||||
*
|
||||
* Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
|
||||
**/
|
||||
erasStakersClipped: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
erasStakersClipped: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<SpStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
/**
|
||||
* The session index at which the era start for the last `HISTORY_DEPTH` eras.
|
||||
* Summary of validator exposure at a given era.
|
||||
*
|
||||
* This contains the total stake in support of the validator and their own stake. In addition,
|
||||
* it can also be used to get the number of nominators backing this validator and the number of
|
||||
* exposure pages they are divided into. The page count is useful to determine the number of
|
||||
* pages of rewards that needs to be claimed.
|
||||
*
|
||||
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
||||
* Should only be accessed through `EraInfo`.
|
||||
*
|
||||
* Is it removed after [`Config::HistoryDepth`] eras.
|
||||
* If stakers hasn't been set or has been removed then empty overview is returned.
|
||||
**/
|
||||
erasStakersOverview: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<SpStakingPagedExposureMetadata>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
/**
|
||||
* Paginated exposure of a validator at given era.
|
||||
*
|
||||
* This is keyed first by the era index to allow bulk deletion, then stash account and finally
|
||||
* the page. Should only be accessed through `EraInfo`.
|
||||
*
|
||||
* This is cleared after [`Config::HistoryDepth`] eras.
|
||||
**/
|
||||
erasStakersPaged: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<Option<SpStakingExposurePage>>, [u32, AccountId32, u32]> & QueryableStorageEntry<ApiType, [u32, AccountId32, u32]>;
|
||||
/**
|
||||
* The session index at which the era start for the last [`Config::HistoryDepth`] eras.
|
||||
*
|
||||
* Note: This tracks the starting session (i.e. session index when era start being active)
|
||||
* for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`.
|
||||
**/
|
||||
erasStartSessionIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The total amount staked for the last `HISTORY_DEPTH` eras.
|
||||
* The total amount staked for the last [`Config::HistoryDepth`] eras.
|
||||
* If total hasn't been set or has been removed then 0 stake is returned.
|
||||
**/
|
||||
erasTotalStake: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
@@ -1736,11 +1817,11 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
*
|
||||
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
||||
*
|
||||
* Is it removed after `HISTORY_DEPTH` eras.
|
||||
* Is it removed after [`Config::HistoryDepth`] eras.
|
||||
**/
|
||||
erasValidatorPrefs: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
/**
|
||||
* The total validator era payout for the last `HISTORY_DEPTH` eras.
|
||||
* The total validator era payout for the last [`Config::HistoryDepth`] eras.
|
||||
*
|
||||
* Eras that haven't finished yet or has been removed doesn't have reward.
|
||||
**/
|
||||
@@ -1757,6 +1838,9 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
invulnerables: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Map from all (unlocked) "controller" accounts to the info regarding the staking.
|
||||
*
|
||||
* Note: All the reads and mutations to this storage *MUST* be done through the methods exposed
|
||||
* by [`StakingLedger`] to ensure data and lock consistency.
|
||||
**/
|
||||
ledger: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingStakingLedger>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
@@ -1997,6 +2081,20 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
tasksExample: {
|
||||
/**
|
||||
* Numbers to be added into the total.
|
||||
**/
|
||||
numbers: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Some running total.
|
||||
**/
|
||||
total: AugmentedQuery<ApiType, () => Observable<ITuple<[u32, u32]>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
technicalCommittee: {
|
||||
/**
|
||||
* The current members of the collective. This is stored sorted (just by value).
|
||||
@@ -2043,11 +2141,14 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
};
|
||||
timestamp: {
|
||||
/**
|
||||
* Did the timestamp get updated in this block?
|
||||
* Whether the timestamp has been updated in this block.
|
||||
*
|
||||
* This value is updated to `true` upon successful submission of a timestamp by a node.
|
||||
* It is then checked at the end of each block execution in the `on_finalize` hook.
|
||||
**/
|
||||
didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Current time for the current block.
|
||||
* The current time for the current block.
|
||||
**/
|
||||
now: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
@@ -2129,6 +2230,14 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Proposals that have been made.
|
||||
**/
|
||||
proposals: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTreasuryProposal>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The count of spends that have been made.
|
||||
**/
|
||||
spendCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Spends that have been approved and being processed.
|
||||
**/
|
||||
spends: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTreasurySpendStatus>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
|
||||
@@ -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, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletAssetConversionNativeOrAssetId, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeTask, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletAssetConversionNativeOrAssetId, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, 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, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, 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>;
|
||||
@@ -331,14 +331,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* See [`Pallet::force_unreserve`].
|
||||
**/
|
||||
forceUnreserve: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
|
||||
/**
|
||||
* See [`Pallet::set_balance_deprecated`].
|
||||
**/
|
||||
setBalanceDeprecated: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, oldReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;
|
||||
/**
|
||||
* See [`Pallet::transfer`].
|
||||
**/
|
||||
transfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
||||
/**
|
||||
* See [`Pallet::transfer_all`].
|
||||
**/
|
||||
@@ -910,11 +902,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* See [`Pallet::set_fields`].
|
||||
**/
|
||||
setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: PalletIdentityBitFlags) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletIdentityBitFlags]>;
|
||||
setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, u64]>;
|
||||
/**
|
||||
* See [`Pallet::set_identity`].
|
||||
**/
|
||||
setIdentity: AugmentedSubmittable<(info: PalletIdentityIdentityInfo | { additional?: any; display?: any; legal?: any; web?: any; riot?: any; email?: any; pgpFingerprint?: any; image?: any; twitter?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletIdentityIdentityInfo]>;
|
||||
setIdentity: AugmentedSubmittable<(info: PalletIdentityLegacyIdentityInfo | { additional?: any; display?: any; legal?: any; web?: any; riot?: any; email?: any; pgpFingerprint?: any; image?: any; twitter?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletIdentityLegacyIdentityInfo]>;
|
||||
/**
|
||||
* See [`Pallet::set_subs`].
|
||||
**/
|
||||
@@ -996,6 +988,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
mixnet: {
|
||||
/**
|
||||
* See `Pallet::register`.
|
||||
**/
|
||||
register: AugmentedSubmittable<(registration: PalletMixnetRegistration | { blockNumber?: any; sessionIndex?: any; authorityIndex?: any; mixnode?: any } | string | Uint8Array, signature: SpMixnetAppSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletMixnetRegistration, SpMixnetAppSignature]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
multisig: {
|
||||
/**
|
||||
* See [`Pallet::approve_as_multi`].
|
||||
@@ -1229,6 +1231,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
nominationPools: {
|
||||
/**
|
||||
* See [`Pallet::adjust_pool_deposit`].
|
||||
**/
|
||||
adjustPoolDeposit: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* See [`Pallet::bond_extra`].
|
||||
**/
|
||||
@@ -1285,6 +1291,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* See [`Pallet::set_commission_change_rate`].
|
||||
**/
|
||||
setCommissionChangeRate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, changeRate: PalletNominationPoolsCommissionChangeRate | { maxIncrease?: any; minDelay?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsCommissionChangeRate]>;
|
||||
/**
|
||||
* See [`Pallet::set_commission_claim_permission`].
|
||||
**/
|
||||
setCommissionClaimPermission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, permission: Option<PalletNominationPoolsCommissionClaimPermission> | null | Uint8Array | PalletNominationPoolsCommissionClaimPermission | { Permissionless: any } | { Account: any } | string) => SubmittableExtrinsic<ApiType>, [u32, Option<PalletNominationPoolsCommissionClaimPermission>]>;
|
||||
/**
|
||||
* See [`Pallet::set_commission_max`].
|
||||
**/
|
||||
@@ -1467,6 +1477,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
preimage: {
|
||||
/**
|
||||
* See [`Pallet::ensure_updated`].
|
||||
**/
|
||||
ensureUpdated: AugmentedSubmittable<(hashes: Vec<H256> | (H256 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<H256>]>;
|
||||
/**
|
||||
* See [`Pallet::note_preimage`].
|
||||
**/
|
||||
@@ -1702,9 +1716,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
};
|
||||
rootTesting: {
|
||||
/**
|
||||
* See [`Pallet::fill_block`].
|
||||
* See `Pallet::fill_block`.
|
||||
**/
|
||||
fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
|
||||
/**
|
||||
* See `Pallet::trigger_defensive`.
|
||||
**/
|
||||
triggerDefensive: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -1820,7 +1838,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* See [`Pallet::set_keys`].
|
||||
**/
|
||||
setKeys: AugmentedSubmittable<(keys: KitchensinkRuntimeSessionKeys | { grandpa?: any; babe?: any; imOnline?: any; authorityDiscovery?: any } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeSessionKeys, Bytes]>;
|
||||
setKeys: AugmentedSubmittable<(keys: KitchensinkRuntimeSessionKeys | { grandpa?: any; babe?: any; imOnline?: any; authorityDiscovery?: any; mixnet?: any } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeSessionKeys, Bytes]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -1932,7 +1950,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* See [`Pallet::chill_other`].
|
||||
**/
|
||||
chillOther: AugmentedSubmittable<(controller: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||
chillOther: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||
/**
|
||||
* See [`Pallet::force_apply_min_commission`].
|
||||
**/
|
||||
@@ -1969,6 +1987,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* See [`Pallet::payout_stakers`].
|
||||
**/
|
||||
payoutStakers: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
||||
/**
|
||||
* See [`Pallet::payout_stakers_by_page`].
|
||||
**/
|
||||
payoutStakersByPage: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array, page: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32, u32]>;
|
||||
/**
|
||||
* See [`Pallet::reap_stash`].
|
||||
**/
|
||||
@@ -2009,6 +2031,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* See [`Pallet::unbond`].
|
||||
**/
|
||||
unbond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
|
||||
/**
|
||||
* See [`Pallet::update_payee`].
|
||||
**/
|
||||
updatePayee: AugmentedSubmittable<(controller: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||
/**
|
||||
* See [`Pallet::validate`].
|
||||
**/
|
||||
@@ -2053,6 +2079,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
sudo: {
|
||||
/**
|
||||
* See [`Pallet::remove_key`].
|
||||
**/
|
||||
removeKey: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||
/**
|
||||
* See [`Pallet::set_key`].
|
||||
**/
|
||||
@@ -2075,6 +2105,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
system: {
|
||||
/**
|
||||
* See [`Pallet::do_task`].
|
||||
**/
|
||||
doTask: AugmentedSubmittable<(task: KitchensinkRuntimeRuntimeTask | { TasksExample: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeRuntimeTask]>;
|
||||
/**
|
||||
* See [`Pallet::kill_prefix`].
|
||||
**/
|
||||
@@ -2239,6 +2273,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* See [`Pallet::approve_proposal`].
|
||||
**/
|
||||
approveProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||
/**
|
||||
* See [`Pallet::check_status`].
|
||||
**/
|
||||
checkStatus: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* See [`Pallet::payout`].
|
||||
**/
|
||||
payout: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* See [`Pallet::propose_spend`].
|
||||
**/
|
||||
@@ -2254,7 +2296,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* See [`Pallet::spend`].
|
||||
**/
|
||||
spend: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress]>;
|
||||
spend: AugmentedSubmittable<(assetKind: u32 | AnyNumber | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, validFrom: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [u32, Compact<u128>, MultiAddress, Option<u32>]>;
|
||||
/**
|
||||
* See [`Pallet::spend_local`].
|
||||
**/
|
||||
spendLocal: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress]>;
|
||||
/**
|
||||
* See [`Pallet::void_spend`].
|
||||
**/
|
||||
voidSpend: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -2415,6 +2465,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
vesting: {
|
||||
/**
|
||||
* See [`Pallet::force_remove_vesting_schedule`].
|
||||
**/
|
||||
forceRemoveVestingSchedule: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, scheduleIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32]>;
|
||||
/**
|
||||
* See [`Pallet::force_vested_transfer`].
|
||||
**/
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Interfaces for interacting with contracts and contract ABIs",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-base#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,12 +18,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "10.10.1",
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/rpc-core": "10.11.2",
|
||||
"@polkadot/types": "10.11.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
}
|
||||
|
||||
@@ -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.10.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '10.11.2' };
|
||||
|
||||
@@ -16,7 +16,7 @@ export interface SignerOptions {
|
||||
nonce: AnyNumber | Codec;
|
||||
signer?: Signer;
|
||||
tip?: AnyNumber;
|
||||
assetId?: AnyNumber;
|
||||
assetId?: AnyNumber | object;
|
||||
}
|
||||
|
||||
export type SubmittableDryRunResult<ApiType extends ApiTypes> =
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Interfaces for interacting with contracts and contract ABIs",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,21 +18,21 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.10.1",
|
||||
"@polkadot/api-augment": "10.10.1",
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/types-codec": "10.10.1",
|
||||
"@polkadot/types-create": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/util-crypto": "^12.5.1",
|
||||
"@polkadot/api": "10.11.2",
|
||||
"@polkadot/api-augment": "10.11.2",
|
||||
"@polkadot/types": "10.11.2",
|
||||
"@polkadot/types-codec": "10.11.2",
|
||||
"@polkadot/types-create": "10.11.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "10.10.1",
|
||||
"@polkadot/keyring": "^12.5.1"
|
||||
"@polkadot/api-augment": "10.11.2",
|
||||
"@polkadot/keyring": "^12.6.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.10.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '10.11.2' };
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,25 +18,25 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.10.1",
|
||||
"@polkadot/api-augment": "10.10.1",
|
||||
"@polkadot/api-base": "10.10.1",
|
||||
"@polkadot/rpc-core": "10.10.1",
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/types-codec": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/util-crypto": "^12.5.1",
|
||||
"@polkadot/api": "10.11.2",
|
||||
"@polkadot/api-augment": "10.11.2",
|
||||
"@polkadot/api-base": "10.11.2",
|
||||
"@polkadot/rpc-core": "10.11.2",
|
||||
"@polkadot/types": "10.11.2",
|
||||
"@polkadot/types-codec": "10.11.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "10.10.1",
|
||||
"@polkadot/api-augment": "10.10.1",
|
||||
"@polkadot/rpc-augment": "10.10.1",
|
||||
"@polkadot/rpc-provider": "10.10.1",
|
||||
"@polkadot/types-support": "10.10.1"
|
||||
"@polkadot/api": "10.11.2",
|
||||
"@polkadot/api-augment": "10.11.2",
|
||||
"@polkadot/rpc-augment": "10.11.2",
|
||||
"@polkadot/rpc-provider": "10.11.2",
|
||||
"@polkadot/types-support": "10.11.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ describe('bounties derive', () => {
|
||||
});
|
||||
|
||||
it('creates proposal', function () {
|
||||
expect(createProposal(api.tx.balances.transfer('5EYCAe5ijiYfyeZ2JJCGq56LmPyNRAKzpG4QkoQkkQNB5e6Z', 1))).toBeTruthy();
|
||||
expect(createProposal(api.tx.balances.transferAllowDeath('5EYCAe5ijiYfyeZ2JJCGq56LmPyNRAKzpG4QkoQkkQNB5e6Z', 1))).toBeTruthy();
|
||||
});
|
||||
|
||||
it('combines bounties with descriptions', async () => {
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { AccountId, Balance, BlockNumber, Call, Hash, PreimageStatus } from '@polkadot/types/interfaces';
|
||||
import type { FrameSupportPreimagesBounded, PalletPreimageRequestStatus } from '@polkadot/types/lookup';
|
||||
import type { u128 } from '@polkadot/types';
|
||||
import type { AccountId, AccountId32, Balance, BlockNumber, Call, Hash, PreimageStatus } from '@polkadot/types/interfaces';
|
||||
import type { FrameSupportPreimagesBounded, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus } from '@polkadot/types/lookup';
|
||||
import type { Bytes, Option } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
@@ -18,6 +19,16 @@ import { getImageHashBounded } from './util.js';
|
||||
|
||||
type PreimageInfo = [Bytes, AccountId, Balance, BlockNumber];
|
||||
type OldPreimage = ITuple<PreimageInfo>;
|
||||
type CompatStatusU = PalletPreimageRequestStatus['asUnrequested'] & { deposit: ITuple<[AccountId32, u128]> };
|
||||
type CompatStatusR = PalletPreimageRequestStatus['asRequested'] & { deposit: Option<ITuple<[AccountId32, u128]>> };
|
||||
|
||||
function getUnrequestedTicket (status: PalletPreimageRequestStatus['asUnrequested']): [AccountId32, u128] {
|
||||
return status.ticket || (status as CompatStatusU).deposit;
|
||||
}
|
||||
|
||||
function getRequestedTicket (status: PalletPreimageRequestStatus['asRequested']): [AccountId32, u128] {
|
||||
return (status.maybeTicket || (status as CompatStatusR).deposit).unwrapOrDefault();
|
||||
}
|
||||
|
||||
function isDemocracyPreimage (api: DeriveApi, imageOpt: Option<OldPreimage> | Option<PreimageStatus>): imageOpt is Option<PreimageStatus> {
|
||||
return !!imageOpt && !api.query.democracy['dispatchQueue'];
|
||||
@@ -55,14 +66,14 @@ function parseDemocracy (api: DeriveApi, imageOpt: Option<OldPreimage> | Option<
|
||||
return constructProposal(api, imageOpt.unwrap());
|
||||
}
|
||||
|
||||
function parseImage (api: DeriveApi, [proposalHash, status, bytes]: [HexString, PalletPreimageRequestStatus | null, Bytes | null]): DeriveProposalImage | undefined {
|
||||
function parseImage (api: DeriveApi, [proposalHash, status, bytes]: [HexString, PalletPreimageRequestStatus | PalletPreimageOldRequestStatus | null, Bytes | null]): DeriveProposalImage | undefined {
|
||||
if (!status) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const [proposer, balance] = status.isUnrequested
|
||||
? status.asUnrequested.deposit
|
||||
: status.asRequested.deposit.unwrapOrDefault();
|
||||
? getUnrequestedTicket((status as PalletPreimageRequestStatus).asUnrequested)
|
||||
: getRequestedTicket((status as PalletPreimageRequestStatus).asRequested);
|
||||
let proposal: Call | undefined;
|
||||
|
||||
if (bytes) {
|
||||
@@ -112,7 +123,7 @@ function getImages (api: DeriveApi, bounded: (FrameSupportPreimagesBounded | Uin
|
||||
let ptr = -1;
|
||||
|
||||
return statuses
|
||||
.map((s, i): [HexString, PalletPreimageRequestStatus | null, Bytes | null] =>
|
||||
.map((s, i): [HexString, PalletPreimageRequestStatus | PalletPreimageOldRequestStatus | null, Bytes | null] =>
|
||||
s
|
||||
? [hashes[i], s, optBytes[++ptr].unwrapOr(null)]
|
||||
: [hashes[i], null, null]
|
||||
|
||||
@@ -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.10.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '10.11.2' };
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { u32, Vec } from '@polkadot/types';
|
||||
import type { AccountId, EraIndex } from '@polkadot/types/interfaces';
|
||||
import type { PalletStakingStakingLedger } from '@polkadot/types/lookup';
|
||||
import type { BN } from '@polkadot/util';
|
||||
@@ -16,6 +17,16 @@ 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
|
||||
? (
|
||||
ledger.legacyClaimedRewards ||
|
||||
(ledger as PalletStakingStakingLedger & { claimedRewards: Vec<u32> }).claimedRewards
|
||||
)
|
||||
: [];
|
||||
}
|
||||
|
||||
function parseRewards (api: DeriveApi, stashId: AccountId, [erasPoints, erasPrefs, erasRewards]: ErasResult, exposures: DeriveStakerExposure[]): DeriveStakerReward[] {
|
||||
return exposures.map(({ era, isEmpty, isValidator, nominating, validators: eraValidators }): DeriveStakerReward => {
|
||||
const { eraPoints, validators: allValPoints } = erasPoints.find((p) => p.era.eq(era)) || { eraPoints: BN_ZERO, validators: {} as DeriveEraValPoints };
|
||||
@@ -97,7 +108,7 @@ function removeClaimed (validators: string[], queryValidators: DeriveStakingQuer
|
||||
if (index !== -1) {
|
||||
const valLedger = queryValidators[index].stakingLedger;
|
||||
|
||||
if (valLedger?.claimedRewards.some((e) => reward.era.eq(e))) {
|
||||
if (extractCompatRewards(valLedger).some((e) => reward.era.eq(e))) {
|
||||
rm.push(validatorId);
|
||||
}
|
||||
}
|
||||
@@ -109,7 +120,7 @@ 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) => !stakingLedger.claimedRewards.some((s) => s.eq(e)));
|
||||
const filter = eras.filter((e) => !extractCompatRewards(stakingLedger).some((s) => s.eq(e)));
|
||||
const validators = valInfo.map(([v]) => v);
|
||||
const queryValidators = valInfo.map(([, q]) => q);
|
||||
|
||||
|
||||
+18
-18
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,29 +18,29 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-augment": "10.10.1",
|
||||
"@polkadot/api-base": "10.10.1",
|
||||
"@polkadot/api-derive": "10.10.1",
|
||||
"@polkadot/keyring": "^12.5.1",
|
||||
"@polkadot/rpc-augment": "10.10.1",
|
||||
"@polkadot/rpc-core": "10.10.1",
|
||||
"@polkadot/rpc-provider": "10.10.1",
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/types-augment": "10.10.1",
|
||||
"@polkadot/types-codec": "10.10.1",
|
||||
"@polkadot/types-create": "10.10.1",
|
||||
"@polkadot/types-known": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/util-crypto": "^12.5.1",
|
||||
"@polkadot/api-augment": "10.11.2",
|
||||
"@polkadot/api-base": "10.11.2",
|
||||
"@polkadot/api-derive": "10.11.2",
|
||||
"@polkadot/keyring": "^12.6.2",
|
||||
"@polkadot/rpc-augment": "10.11.2",
|
||||
"@polkadot/rpc-core": "10.11.2",
|
||||
"@polkadot/rpc-provider": "10.11.2",
|
||||
"@polkadot/types": "10.11.2",
|
||||
"@polkadot/types-augment": "10.11.2",
|
||||
"@polkadot/types-codec": "10.11.2",
|
||||
"@polkadot/types-create": "10.11.2",
|
||||
"@polkadot/types-known": "10.11.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"eventemitter3": "^5.0.1",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "10.10.1",
|
||||
"@polkadot/types-support": "10.10.1"
|
||||
"@polkadot/api-augment": "10.11.2",
|
||||
"@polkadot/types-support": "10.11.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -219,7 +219,7 @@ export abstract class Getters<ApiType extends ApiTypes> extends Init<ApiType> im
|
||||
*
|
||||
* ```javascript
|
||||
* api.tx.balances
|
||||
* .transfer(<recipientId>, <balance>)
|
||||
* .transferAllowDeath(<recipientId>, <balance>)
|
||||
* .signAndSend(<keyPair>, ({status}) => {
|
||||
* console.log('tx status', status.asFinalized.toHex());
|
||||
* });
|
||||
|
||||
@@ -243,7 +243,7 @@ function types (api: ApiPromise): void {
|
||||
|
||||
async function tx (api: ApiPromise, pairs: TestKeyringMapSubstrate): Promise<void> {
|
||||
// transfer, also allows for bigint inputs here
|
||||
const transfer = api.tx.balances.transfer(pairs.bob.address, BigInt(123456789));
|
||||
const transfer = api.tx.balances.transferAllowDeath(pairs.bob.address, BigInt(123456789));
|
||||
|
||||
console.log('transfer casted', transfer as IMethod<AnyTuple>, transfer as IExtrinsic<AnyTuple>);
|
||||
|
||||
@@ -254,19 +254,19 @@ async function tx (api: ApiPromise, pairs: TestKeyringMapSubstrate): Promise<voi
|
||||
const nonce = await api.query.system['accountNonce']<Index>(pairs.alice.address);
|
||||
|
||||
(await api.tx.balances
|
||||
.transfer(pairs.bob.address, 12345)
|
||||
.transferAllowDeath(pairs.bob.address, 12345)
|
||||
.signAndSend(pairs.alice, { nonce })
|
||||
).toHex();
|
||||
|
||||
// just with the callback
|
||||
await api.tx.balances
|
||||
.transfer(pairs.bob.address, 12345)
|
||||
.transferAllowDeath(pairs.bob.address, 12345)
|
||||
.signAndSend(pairs.alice, ({ status }: SubmittableResult) => console.log(status.type));
|
||||
|
||||
// with options and the callback
|
||||
const nonce2 = await api.query.system['accountNonce'](pairs.alice.address);
|
||||
const unsub2 = await api.tx.balances
|
||||
.transfer(pairs.bob.address, 12345)
|
||||
.transferAllowDeath(pairs.bob.address, 12345)
|
||||
.signAndSend(pairs.alice, { nonce: nonce2 }, ({ status }: SubmittableResult): void => {
|
||||
console.log('transfer status:', status.type);
|
||||
|
||||
@@ -282,7 +282,7 @@ async function tx (api: ApiPromise, pairs: TestKeyringMapSubstrate): Promise<voi
|
||||
await api.tx.democracy['proxyVote'](123, { Split: { nay: 456, yay: 123 } }).signAndSend(pairs.alice);
|
||||
|
||||
// is
|
||||
if (api.tx.balances.transfer.is(second)) {
|
||||
if (api.tx.balances.transferAllowDeath.is(second)) {
|
||||
const [recipientId, balance] = second.args;
|
||||
|
||||
// should be LookupSource & Balance types
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '10.10.1' };
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '10.11.2' };
|
||||
|
||||
@@ -95,7 +95,7 @@ import { toRxMethod } from './decorateMethod.js';
|
||||
* switchMap(([nonce]) =>
|
||||
* api.tx.balances
|
||||
* // create transfer
|
||||
* .transfer(keyring.bob.address, 12345)
|
||||
* .transferAllowDeath(keyring.bob.address, 12345)
|
||||
* // sign the transaction
|
||||
* .sign(keyring.alice, { nonce })
|
||||
* // send the transaction
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "RPC generated augmentation",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-augment#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,13 +18,13 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "10.10.1",
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/types-codec": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/rpc-core": "10.11.2",
|
||||
"@polkadot/types": "10.11.2",
|
||||
"@polkadot/types-codec": "10.11.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"tslib": "^2.6.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f6
|
||||
import type { AnyNumber, Codec } from '@polkadot/types-codec/types';
|
||||
import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
|
||||
import type { EpochAuthorship } from '@polkadot/types/interfaces/babe';
|
||||
import type { BeefySignedCommitment } from '@polkadot/types/interfaces/beefy';
|
||||
import type { BeefyVersionedFinalityProof } from '@polkadot/types/interfaces/beefy';
|
||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||
import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
|
||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||
@@ -80,9 +80,9 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
||||
**/
|
||||
getFinalizedHead: AugmentedRpc<() => Observable<H256>>;
|
||||
/**
|
||||
* Returns the block most recently finalized by BEEFY, alongside side its justification.
|
||||
* Returns the block most recently finalized by BEEFY, alongside its justification.
|
||||
**/
|
||||
subscribeJustifications: AugmentedRpc<() => Observable<BeefySignedCommitment>>;
|
||||
subscribeJustifications: AugmentedRpc<() => Observable<BeefyVersionedFinalityProof>>;
|
||||
};
|
||||
chain: {
|
||||
/**
|
||||
|
||||
@@ -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.10.1' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '10.11.2' };
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,18 +18,18 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-augment": "10.10.1",
|
||||
"@polkadot/rpc-provider": "10.10.1",
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/rpc-augment": "10.11.2",
|
||||
"@polkadot/rpc-provider": "10.11.2",
|
||||
"@polkadot/types": "10.11.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^12.5.1",
|
||||
"@polkadot/rpc-augment": "10.10.1"
|
||||
"@polkadot/keyring": "^12.6.2",
|
||||
"@polkadot/rpc-augment": "10.11.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.10.1' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '10.11.2' };
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Transport providers for the API",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,26 +18,26 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^12.5.1",
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/types-support": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/util-crypto": "^12.5.1",
|
||||
"@polkadot/x-fetch": "^12.5.1",
|
||||
"@polkadot/x-global": "^12.5.1",
|
||||
"@polkadot/x-ws": "^12.5.1",
|
||||
"@polkadot/keyring": "^12.6.2",
|
||||
"@polkadot/types": "10.11.2",
|
||||
"@polkadot/types-support": "10.11.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"@polkadot/x-fetch": "^12.6.2",
|
||||
"@polkadot/x-global": "^12.6.2",
|
||||
"@polkadot/x-ws": "^12.6.2",
|
||||
"eventemitter3": "^5.0.1",
|
||||
"mock-socket": "^9.3.1",
|
||||
"nock": "^13.3.4",
|
||||
"nock": "^13.4.0",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@substrate/connect": "0.7.33"
|
||||
"@substrate/connect": "0.7.35"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@substrate/connect": "0.7.33"
|
||||
"@substrate/connect": "0.7.35"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.10.1' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '10.11.2' };
|
||||
|
||||
@@ -99,7 +99,7 @@ export class ScProvider implements ProviderInterface {
|
||||
throw new Error('Already connected!');
|
||||
}
|
||||
|
||||
// it could happen that after emitting `disconnected` due to the fact taht
|
||||
// it could happen that after emitting `disconnected` due to the fact that
|
||||
// smoldot is syncing, the consumer tries to reconnect after a certain amount
|
||||
// of time... In which case we want to make sure that we don't create a new
|
||||
// chain.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Type generation scripts",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/typegen#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,7 +18,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.2",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
|
||||
@@ -28,23 +28,23 @@
|
||||
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.10.1",
|
||||
"@polkadot/api-augment": "10.10.1",
|
||||
"@polkadot/rpc-augment": "10.10.1",
|
||||
"@polkadot/rpc-provider": "10.10.1",
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/types-augment": "10.10.1",
|
||||
"@polkadot/types-codec": "10.10.1",
|
||||
"@polkadot/types-create": "10.10.1",
|
||||
"@polkadot/types-support": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/util-crypto": "^12.5.1",
|
||||
"@polkadot/x-ws": "^12.5.1",
|
||||
"@polkadot/api": "10.11.2",
|
||||
"@polkadot/api-augment": "10.11.2",
|
||||
"@polkadot/rpc-augment": "10.11.2",
|
||||
"@polkadot/rpc-provider": "10.11.2",
|
||||
"@polkadot/types": "10.11.2",
|
||||
"@polkadot/types-augment": "10.11.2",
|
||||
"@polkadot/types-codec": "10.11.2",
|
||||
"@polkadot/types-create": "10.11.2",
|
||||
"@polkadot/types-support": "10.11.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"@polkadot/x-ws": "^12.6.2",
|
||||
"handlebars": "^4.7.8",
|
||||
"tslib": "^2.6.2",
|
||||
"yargs": "^17.7.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/yargs": "^17.0.28"
|
||||
"@types/yargs": "^17.0.32"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '10.10.1' };
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '10.11.2' };
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Types generated augmentation",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-augment#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,12 +18,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/types-codec": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/types": "10.11.2",
|
||||
"@polkadot/types-codec": "10.11.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"tslib": "^2.6.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,21 @@
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
export default {
|
||||
/**
|
||||
* Lookup59: pallet_staking::Exposure<sp_core::crypto::AccountId32, Balance>
|
||||
**/
|
||||
PalletStakingExposure: {
|
||||
total: 'Compact<u128>',
|
||||
own: 'Compact<u128>',
|
||||
others: 'Vec<PalletStakingIndividualExposure>'
|
||||
},
|
||||
/**
|
||||
* Lookup62: pallet_staking::IndividualExposure<sp_core::crypto::AccountId32, Balance>
|
||||
**/
|
||||
PalletStakingIndividualExposure: {
|
||||
who: 'AccountId32',
|
||||
value: 'Compact<u128>'
|
||||
},
|
||||
/**
|
||||
* Lookup103: polkadot_runtime::SessionKeys
|
||||
**/
|
||||
@@ -313,6 +328,40 @@ export default {
|
||||
PolkadotRuntimeCommonClaimsStatementKind: {
|
||||
_enum: ['Regular', 'Saft']
|
||||
},
|
||||
/**
|
||||
* Lookup161: pallet_identity::types::IdentityInfo<FieldLimit>
|
||||
**/
|
||||
PalletIdentityIdentityInfo: {
|
||||
additional: 'Vec<(Data,Data)>',
|
||||
display: 'Data',
|
||||
legal: 'Data',
|
||||
web: 'Data',
|
||||
riot: 'Data',
|
||||
email: 'Data',
|
||||
pgpFingerprint: 'Option<[u8;20]>',
|
||||
image: 'Data',
|
||||
twitter: 'Data'
|
||||
},
|
||||
/**
|
||||
* Lookup198: pallet_identity::types::BitFlags<pallet_identity::types::IdentityField>
|
||||
**/
|
||||
PalletIdentityBitFlags: {
|
||||
_bitLength: 64,
|
||||
Display: 1,
|
||||
Legal: 2,
|
||||
Web: 4,
|
||||
Riot: 8,
|
||||
Email: 16,
|
||||
PgpFingerprint: 32,
|
||||
Image: 64,
|
||||
Twitter: 128
|
||||
},
|
||||
/**
|
||||
* Lookup199: pallet_identity::types::IdentityField
|
||||
**/
|
||||
PalletIdentityIdentityField: {
|
||||
_enum: ['__Unused0', 'Display', 'Legal', '__Unused3', 'Web', '__Unused5', '__Unused6', '__Unused7', 'Riot', '__Unused9', '__Unused10', '__Unused11', '__Unused12', '__Unused13', '__Unused14', '__Unused15', 'Email', '__Unused17', '__Unused18', '__Unused19', '__Unused20', '__Unused21', '__Unused22', '__Unused23', '__Unused24', '__Unused25', '__Unused26', '__Unused27', '__Unused28', '__Unused29', '__Unused30', '__Unused31', 'PgpFingerprint', '__Unused33', '__Unused34', '__Unused35', '__Unused36', '__Unused37', '__Unused38', '__Unused39', '__Unused40', '__Unused41', '__Unused42', '__Unused43', '__Unused44', '__Unused45', '__Unused46', '__Unused47', '__Unused48', '__Unused49', '__Unused50', '__Unused51', '__Unused52', '__Unused53', '__Unused54', '__Unused55', '__Unused56', '__Unused57', '__Unused58', '__Unused59', '__Unused60', '__Unused61', '__Unused62', '__Unused63', 'Image', '__Unused65', '__Unused66', '__Unused67', '__Unused68', '__Unused69', '__Unused70', '__Unused71', '__Unused72', '__Unused73', '__Unused74', '__Unused75', '__Unused76', '__Unused77', '__Unused78', '__Unused79', '__Unused80', '__Unused81', '__Unused82', '__Unused83', '__Unused84', '__Unused85', '__Unused86', '__Unused87', '__Unused88', '__Unused89', '__Unused90', '__Unused91', '__Unused92', '__Unused93', '__Unused94', '__Unused95', '__Unused96', '__Unused97', '__Unused98', '__Unused99', '__Unused100', '__Unused101', '__Unused102', '__Unused103', '__Unused104', '__Unused105', '__Unused106', '__Unused107', '__Unused108', '__Unused109', '__Unused110', '__Unused111', '__Unused112', '__Unused113', '__Unused114', '__Unused115', '__Unused116', '__Unused117', '__Unused118', '__Unused119', '__Unused120', '__Unused121', '__Unused122', '__Unused123', '__Unused124', '__Unused125', '__Unused126', '__Unused127', 'Twitter']
|
||||
},
|
||||
/**
|
||||
* Lookup203: polkadot_runtime::ProxyType
|
||||
**/
|
||||
@@ -2193,6 +2242,13 @@ export default {
|
||||
* Lookup507: polkadot_runtime::RuntimeHoldReason
|
||||
**/
|
||||
PolkadotRuntimeRuntimeHoldReason: 'Null',
|
||||
/**
|
||||
* Lookup510: pallet_balances::types::IdAmount<Id, Balance>
|
||||
**/
|
||||
PalletBalancesIdAmount: {
|
||||
id: 'Null',
|
||||
amount: 'u128'
|
||||
},
|
||||
/**
|
||||
* Lookup570: pallet_referenda::types::ReferendumInfo<TrackId, polkadot_runtime::OriginCaller, Moment, frame_support::traits::preimages::Bounded<polkadot_runtime::RuntimeCall>, Balance, pallet_conviction_voting::types::Tally<Votes, Total>, sp_core::crypto::AccountId32, ScheduleAddress>
|
||||
**/
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -5,12 +5,26 @@
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@polkadot/types/lookup';
|
||||
|
||||
import type { BTreeMap, BitVec, Bytes, Compact, Enum, Null, Option, Result, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { Data } from '@polkadot/types';
|
||||
import type { BTreeMap, BitVec, Bytes, Compact, Enum, Null, Option, Result, Set, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, H256, PerU16, Perbill } from '@polkadot/types/interfaces/runtime';
|
||||
|
||||
declare module '@polkadot/types/lookup' {
|
||||
/** @name PalletStakingExposure (59) */
|
||||
interface PalletStakingExposure extends Struct {
|
||||
readonly total: Compact<u128>;
|
||||
readonly own: Compact<u128>;
|
||||
readonly others: Vec<PalletStakingIndividualExposure>;
|
||||
}
|
||||
|
||||
/** @name PalletStakingIndividualExposure (62) */
|
||||
interface PalletStakingIndividualExposure extends Struct {
|
||||
readonly who: AccountId32;
|
||||
readonly value: Compact<u128>;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeSessionKeys (103) */
|
||||
interface PolkadotRuntimeSessionKeys extends Struct {
|
||||
readonly grandpa: SpConsensusGrandpaAppPublic;
|
||||
@@ -251,6 +265,44 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Regular' | 'Saft';
|
||||
}
|
||||
|
||||
/** @name PalletIdentityIdentityInfo (161) */
|
||||
interface PalletIdentityIdentityInfo extends Struct {
|
||||
readonly additional: Vec<ITuple<[Data, Data]>>;
|
||||
readonly display: Data;
|
||||
readonly legal: Data;
|
||||
readonly web: Data;
|
||||
readonly riot: Data;
|
||||
readonly email: Data;
|
||||
readonly pgpFingerprint: Option<U8aFixed>;
|
||||
readonly image: Data;
|
||||
readonly twitter: Data;
|
||||
}
|
||||
|
||||
/** @name PalletIdentityBitFlags (198) */
|
||||
interface PalletIdentityBitFlags extends Set {
|
||||
readonly isDisplay: boolean;
|
||||
readonly isLegal: boolean;
|
||||
readonly isWeb: boolean;
|
||||
readonly isRiot: boolean;
|
||||
readonly isEmail: boolean;
|
||||
readonly isPgpFingerprint: boolean;
|
||||
readonly isImage: boolean;
|
||||
readonly isTwitter: boolean;
|
||||
}
|
||||
|
||||
/** @name PalletIdentityIdentityField (199) */
|
||||
interface PalletIdentityIdentityField extends Enum {
|
||||
readonly isDisplay: boolean;
|
||||
readonly isLegal: boolean;
|
||||
readonly isWeb: boolean;
|
||||
readonly isRiot: boolean;
|
||||
readonly isEmail: boolean;
|
||||
readonly isPgpFingerprint: boolean;
|
||||
readonly isImage: boolean;
|
||||
readonly isTwitter: boolean;
|
||||
readonly type: 'Display' | 'Legal' | 'Web' | 'Riot' | 'Email' | 'PgpFingerprint' | 'Image' | 'Twitter';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeProxyType (203) */
|
||||
interface PolkadotRuntimeProxyType extends Enum {
|
||||
readonly isAny: boolean;
|
||||
@@ -2170,6 +2222,12 @@ declare module '@polkadot/types/lookup' {
|
||||
/** @name PolkadotRuntimeRuntimeHoldReason (507) */
|
||||
type PolkadotRuntimeRuntimeHoldReason = Null;
|
||||
|
||||
/** @name PalletBalancesIdAmount (510) */
|
||||
interface PalletBalancesIdAmount extends Struct {
|
||||
readonly id: Null;
|
||||
readonly amount: u128;
|
||||
}
|
||||
|
||||
/** @name PalletReferendaReferendumInfo (570) */
|
||||
interface PalletReferendaReferendumInfo extends Enum {
|
||||
readonly isOngoing: boolean;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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.10.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '10.11.2' };
|
||||
|
||||
@@ -7,6 +7,7 @@ import '@polkadot/types/types/registry';
|
||||
|
||||
import type { Data, StorageKey } from '@polkadot/types';
|
||||
import type { BitVec, Bool, Bytes, F32, F64, I128, I16, I256, I32, I64, I8, ISize, Json, Null, OptionBool, Raw, Text, Type, U128, U16, U256, U32, U64, U8, USize, bool, f32, f64, i128, i16, i256, i32, i64, i8, isize, u128, u16, u256, u32, u64, u8, usize } from '@polkadot/types-codec';
|
||||
import type { TAssetConversion } from '@polkadot/types/interfaces/assetConversion';
|
||||
import type { AssetApproval, AssetApprovalKey, AssetBalance, AssetDestroyWitness, AssetDetails, AssetMetadata, TAssetBalance, TAssetDepositBalance } from '@polkadot/types/interfaces/assets';
|
||||
import type { BlockAttestations, IncludedBlocks, MoreAttestations } from '@polkadot/types/interfaces/attestations';
|
||||
import type { RawAuraPreDigest } from '@polkadot/types/interfaces/aura';
|
||||
@@ -14,7 +15,7 @@ import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interface
|
||||
import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship';
|
||||
import type { AllowedSlots, BabeAuthorityWeight, BabeBlockWeight, BabeEpochConfiguration, BabeEquivocationProof, BabeGenesisConfiguration, BabeGenesisConfigurationV1, BabeWeight, Epoch, EpochAuthorship, MaybeRandomness, MaybeVrf, NextConfigDescriptor, NextConfigDescriptorV1, OpaqueKeyOwnershipProof, Randomness, RawBabePreDigest, RawBabePreDigestCompat, RawBabePreDigestPrimary, RawBabePreDigestPrimaryTo159, RawBabePreDigestSecondaryPlain, RawBabePreDigestSecondaryTo159, RawBabePreDigestSecondaryVRF, RawBabePreDigestTo159, SlotNumber, VrfData, VrfOutput, VrfProof } from '@polkadot/types/interfaces/babe';
|
||||
import type { AccountData, BalanceLock, BalanceLockTo212, BalanceStatus, Reasons, ReserveData, ReserveIdentifier, VestingSchedule, WithdrawReasons } from '@polkadot/types/interfaces/balances';
|
||||
import type { BeefyAuthoritySet, BeefyCommitment, BeefyEquivocationProof, BeefyId, BeefyNextAuthoritySet, BeefyPayload, BeefyPayloadId, BeefySignedCommitment, BeefyVoteMessage, MmrRootHash, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
||||
import type { BeefyAuthoritySet, BeefyCommitment, BeefyEquivocationProof, BeefyId, BeefyNextAuthoritySet, BeefyPayload, BeefyPayloadId, BeefySignedCommitment, BeefyVersionedFinalityProof, BeefyVoteMessage, MmrRootHash, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
||||
import type { BenchmarkBatch, BenchmarkConfig, BenchmarkList, BenchmarkMetadata, BenchmarkParameter, BenchmarkResult } from '@polkadot/types/interfaces/benchmark';
|
||||
import type { CheckInherentsResult, InherentData, InherentIdentifier } from '@polkadot/types/interfaces/blockbuilder';
|
||||
import type { BridgeMessageId, BridgedBlockHash, BridgedBlockNumber, BridgedHeader, CallOrigin, ChainId, DeliveredMessages, DispatchFeePayment, InboundLaneData, InboundRelayer, InitializationData, LaneId, MessageData, MessageKey, MessageNonce, MessagesDeliveryProofOf, MessagesProofOf, OperatingMode, OutboundLaneData, OutboundMessageFee, OutboundPayload, Parameter, RelayerId, UnrewardedRelayer, UnrewardedRelayersState } from '@polkadot/types/interfaces/bridges';
|
||||
@@ -159,6 +160,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
BeefyPayload: BeefyPayload;
|
||||
BeefyPayloadId: BeefyPayloadId;
|
||||
BeefySignedCommitment: BeefySignedCommitment;
|
||||
BeefyVersionedFinalityProof: BeefyVersionedFinalityProof;
|
||||
BeefyVoteMessage: BeefyVoteMessage;
|
||||
BenchmarkBatch: BenchmarkBatch;
|
||||
BenchmarkConfig: BenchmarkConfig;
|
||||
@@ -1091,6 +1093,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
Tally: Tally;
|
||||
TaskAddress: TaskAddress;
|
||||
TAssetBalance: TAssetBalance;
|
||||
TAssetConversion: TAssetConversion;
|
||||
TAssetDepositBalance: TAssetDepositBalance;
|
||||
Text: Text;
|
||||
Timepoint: Timepoint;
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Implementation of the SCALE codec",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-codec#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,17 +18,17 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/x-bigint": "^12.5.1",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/x-bigint": "^12.6.2",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/types-augment": "10.10.1",
|
||||
"@polkadot/types-support": "10.10.1",
|
||||
"@polkadot/util-crypto": "^12.5.1"
|
||||
"@polkadot/types": "10.11.2",
|
||||
"@polkadot/types-augment": "10.11.2",
|
||||
"@polkadot/types-support": "10.11.2",
|
||||
"@polkadot/util-crypto": "^12.6.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ function decodeOption (registry: Registry, Type: CodecClass, value?: unknown): C
|
||||
// convert the actual value into known
|
||||
return new Type(registry, value.value);
|
||||
} else if (isNull(value) || isUndefined(value) || value === '0x' || value instanceof None) {
|
||||
// anyhting empty we pass as-is
|
||||
// anything empty we pass as-is
|
||||
return new None(registry);
|
||||
} else if (isU8a(value)) {
|
||||
// the isU8a check happens last in the if-tree - since the wrapped value
|
||||
|
||||
@@ -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.10.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '10.11.2' };
|
||||
|
||||
@@ -27,7 +27,7 @@ export type AnyU8a = Uint8Array | number[] | string;
|
||||
export type UIntBitLength = 8 | 16 | 32 | 64 | 128 | 256;
|
||||
|
||||
// The 520 here is a weird one - it is explicitly for a [u8; 65] as found as a EcdsaSignature,
|
||||
// and 264 here is explicity for a [u8; 33] as found as EcdsaPublic key.
|
||||
// and 264 here is explicitly for a [u8; 33] as found as EcdsaPublic key.
|
||||
// Likewise 160 is for [u8; 20], which is also a H160, i.e. an Ethereum address. Both these are
|
||||
// as a result of the Polkadot claims module. (Technically we don't need the 520 in here)
|
||||
export type U8aBitLength = 8 | 16 | 32 | 64 | 128 | 160 | 256 | 264 | 512 | 520 | 1024 | 2048;
|
||||
|
||||
@@ -50,6 +50,7 @@ export interface CallFunction<A extends AnyTuple = AnyTuple, M = any> extends Ca
|
||||
|
||||
export interface Registry {
|
||||
readonly chainDecimals: number[];
|
||||
readonly chainIsEthereum: boolean;
|
||||
readonly chainSS58: number | undefined;
|
||||
readonly chainTokens: string[];
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Type creator helpers",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-create#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,14 +18,14 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/types-codec": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/types-codec": "10.11.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "10.10.1"
|
||||
"@polkadot/types": "10.11.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.10.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '10.11.2' };
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# @polkadot/types-known
|
||||
|
||||
Specific known base type overrides (e.g. `Address`, etc) for chains & specs. This does not contain user-specfic types.
|
||||
Specific known base type overrides (e.g. `Address`, etc) for chains & specs. This does not contain user-specific types.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Known type definitions",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,17 +18,17 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/networks": "^12.5.1",
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/types-codec": "10.10.1",
|
||||
"@polkadot/types-create": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/networks": "^12.6.2",
|
||||
"@polkadot/types": "10.11.2",
|
||||
"@polkadot/types-codec": "10.11.2",
|
||||
"@polkadot/types-create": "10.11.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "10.10.1"
|
||||
"@polkadot/api": "10.11.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.10.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '10.11.2' };
|
||||
|
||||
@@ -10,8 +10,10 @@ import { versioned as nodeTemplate } from './node-template.js';
|
||||
import { versioned as polkadot } from './polkadot.js';
|
||||
import { versioned as rococo } from './rococo.js';
|
||||
import { versioned as shell } from './shell.js';
|
||||
import { versioned as statemine } from './statemine.js';
|
||||
import { versioned as statemint } from './statemint.js';
|
||||
import { versioned as westend } from './westend.js';
|
||||
import { versioned as westmint } from './westmint.js';
|
||||
|
||||
// Type overrides for specific spec types & versions as given in runtimeVersion
|
||||
export const typesSpec: Record<string, OverrideVersionedType[]> = {
|
||||
@@ -22,8 +24,8 @@ export const typesSpec: Record<string, OverrideVersionedType[]> = {
|
||||
polkadot,
|
||||
rococo,
|
||||
shell,
|
||||
statemine: statemint,
|
||||
statemine,
|
||||
statemint,
|
||||
westend,
|
||||
westmint: statemint
|
||||
westmint
|
||||
};
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
// Copyright 2017-2023 @polkadot/types-known authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { OverrideVersionedType } from '@polkadot/types/types';
|
||||
|
||||
import { mapXcmTypes } from '@polkadot/types-create';
|
||||
|
||||
const sharedTypes = {
|
||||
DispatchErrorModule: 'DispatchErrorModuleU8',
|
||||
TAssetBalance: 'u128',
|
||||
ProxyType: {
|
||||
_enum: [
|
||||
'Any',
|
||||
'NonTransfer',
|
||||
'CancelProxy',
|
||||
'Assets',
|
||||
'AssetOwner',
|
||||
'AssetManager',
|
||||
'Staking'
|
||||
]
|
||||
},
|
||||
Weight: 'WeightV1'
|
||||
};
|
||||
|
||||
// these are override types for Statemine, Westmint
|
||||
export const versioned: OverrideVersionedType[] = [
|
||||
{
|
||||
minmax: [0, 3],
|
||||
types: {
|
||||
// Enum was modified mid-flight -
|
||||
// https://github.com/paritytech/substrate/pull/10382/files#diff-e4e016b33a82268b6208dc974eea841bad47597865a749fee2f937eb6fdf67b4R498
|
||||
DispatchError: 'DispatchErrorPre6First',
|
||||
...sharedTypes,
|
||||
...mapXcmTypes('V0')
|
||||
}
|
||||
},
|
||||
{
|
||||
minmax: [4, 5],
|
||||
types: {
|
||||
// As above, see https://github.com/polkadot-js/api/issues/5301
|
||||
DispatchError: 'DispatchErrorPre6First',
|
||||
...sharedTypes,
|
||||
...mapXcmTypes('V1')
|
||||
}
|
||||
},
|
||||
{
|
||||
// metadata V14
|
||||
minmax: [500, 9999],
|
||||
types: {
|
||||
Weight: 'WeightV1',
|
||||
TAssetConversion: 'Option<AssetId>'
|
||||
}
|
||||
},
|
||||
{
|
||||
minmax: [10000, undefined],
|
||||
types: {
|
||||
Weight: 'WeightV1'
|
||||
}
|
||||
}
|
||||
];
|
||||
@@ -49,7 +49,8 @@ export const versioned: OverrideVersionedType[] = [
|
||||
// metadata V14
|
||||
minmax: [500, undefined],
|
||||
types: {
|
||||
Weight: 'WeightV1'
|
||||
Weight: 'WeightV1',
|
||||
TAssetConversion: 'Option<AssetId>'
|
||||
}
|
||||
}
|
||||
// ,
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
// Copyright 2017-2023 @polkadot/types-known authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { OverrideVersionedType } from '@polkadot/types/types';
|
||||
|
||||
import { mapXcmTypes } from '@polkadot/types-create';
|
||||
|
||||
const sharedTypes = {
|
||||
DispatchErrorModule: 'DispatchErrorModuleU8',
|
||||
TAssetBalance: 'u128',
|
||||
ProxyType: {
|
||||
_enum: [
|
||||
'Any',
|
||||
'NonTransfer',
|
||||
'CancelProxy',
|
||||
'Assets',
|
||||
'AssetOwner',
|
||||
'AssetManager',
|
||||
'Staking'
|
||||
]
|
||||
},
|
||||
Weight: 'WeightV1'
|
||||
};
|
||||
|
||||
// these are override types for Statemine, Westmint
|
||||
export const versioned: OverrideVersionedType[] = [
|
||||
{
|
||||
minmax: [0, 3],
|
||||
types: {
|
||||
// Enum was modified mid-flight -
|
||||
// https://github.com/paritytech/substrate/pull/10382/files#diff-e4e016b33a82268b6208dc974eea841bad47597865a749fee2f937eb6fdf67b4R498
|
||||
DispatchError: 'DispatchErrorPre6First',
|
||||
...sharedTypes,
|
||||
...mapXcmTypes('V0')
|
||||
}
|
||||
},
|
||||
{
|
||||
minmax: [4, 5],
|
||||
types: {
|
||||
// As above, see https://github.com/polkadot-js/api/issues/5301
|
||||
DispatchError: 'DispatchErrorPre6First',
|
||||
...sharedTypes,
|
||||
...mapXcmTypes('V1')
|
||||
}
|
||||
},
|
||||
{
|
||||
// metadata V14
|
||||
minmax: [500, 9434],
|
||||
types: {
|
||||
Weight: 'WeightV1',
|
||||
TAssetConversion: 'Option<AssetId>'
|
||||
}
|
||||
},
|
||||
{
|
||||
minmax: [9435, undefined],
|
||||
types: {
|
||||
Weight: 'WeightV1'
|
||||
}
|
||||
}
|
||||
];
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Supporting files for types, mostly for testing",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-support#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,10 +18,10 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"tslib": "^2.6.2"
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -22,15 +22,14 @@ export default {
|
||||
"chainHead_unstable_call",
|
||||
"chainHead_unstable_continue",
|
||||
"chainHead_unstable_follow",
|
||||
"chainHead_unstable_genesisHash",
|
||||
"chainHead_unstable_header",
|
||||
"chainHead_unstable_stopOperation",
|
||||
"chainHead_unstable_storage",
|
||||
"chainHead_unstable_unfollow",
|
||||
"chainHead_unstable_unpin",
|
||||
"chainSpec_unstable_chainName",
|
||||
"chainSpec_unstable_genesisHash",
|
||||
"chainSpec_unstable_properties",
|
||||
"chainSpec_v1_chainName",
|
||||
"chainSpec_v1_genesisHash",
|
||||
"chainSpec_v1_properties",
|
||||
"chain_getBlock",
|
||||
"chain_getBlockHash",
|
||||
"chain_getFinalisedHead",
|
||||
@@ -70,6 +69,7 @@ export default {
|
||||
"offchain_localStorageSet",
|
||||
"payment_queryFeeDetails",
|
||||
"payment_queryInfo",
|
||||
"rpc_methods",
|
||||
"state_call",
|
||||
"state_callAt",
|
||||
"state_getChildReadProof",
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -88,9 +88,17 @@ export default {
|
||||
"0x91d5df18b0d2cf58",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x6fd7c327202e4a8d",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xab3c0572291feb8b",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xfbc577b9d747efd6",
|
||||
1
|
||||
]
|
||||
],
|
||||
"transactionVersion": 2,
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '10.10.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '10.11.2' };
|
||||
|
||||
+10
-10
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Implementation of the Parity codec",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,20 +18,20 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^12.5.1",
|
||||
"@polkadot/types-augment": "10.10.1",
|
||||
"@polkadot/types-codec": "10.10.1",
|
||||
"@polkadot/types-create": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/util-crypto": "^12.5.1",
|
||||
"@polkadot/keyring": "^12.6.2",
|
||||
"@polkadot/types-augment": "10.11.2",
|
||||
"@polkadot/types-codec": "10.11.2",
|
||||
"@polkadot/types-create": "10.11.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^12.5.1",
|
||||
"@polkadot/types-support": "10.10.1"
|
||||
"@polkadot/keyring": "^12.6.2",
|
||||
"@polkadot/types-support": "10.11.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ describe('Extrinsic', (): void => {
|
||||
'a90b' + // mortal era
|
||||
'1101' + // nonce, compact 68
|
||||
'0700ac23fc06' + // tip, 0.03 KSM
|
||||
'0600' + // balances.transfer (on Kusama this was 0400, changed here to match metadata)
|
||||
'0600' + // balances.transferAllowDeath (on Kusama this was 0400, changed here to match metadata)
|
||||
'00' + // MultiAddress, AccountId of recipient follows
|
||||
'495e1e506f266418af07fa0c5c108dd436f2faa59fe7d9e54403779f5bbd7718' + // recipient
|
||||
'0bc01eb1fc185f' // value, 104.560 KSM
|
||||
|
||||
@@ -61,7 +61,10 @@ describe('SignerPayload', (): void => {
|
||||
});
|
||||
|
||||
it('handles Option<AssetId> correctly', (): void => {
|
||||
const test = new SignerPayload(registry, { assetId: 123 });
|
||||
const test = new SignerPayload(registry, {
|
||||
// eslint-disable-next-line sort-keys
|
||||
assetId: { parents: 0, interior: { x2: [{ palletInstance: 50 }, { generalIndex: 123 }] } }
|
||||
});
|
||||
|
||||
expect(
|
||||
[...test.keys()].includes('assetId')
|
||||
@@ -70,12 +73,18 @@ describe('SignerPayload', (): void => {
|
||||
expect(
|
||||
// @ts-expect-error We don't have getters for this field
|
||||
test.toPayload().assetId
|
||||
).toEqual(123);
|
||||
).toEqual({
|
||||
// eslint-disable-next-line sort-keys
|
||||
parents: 0, interior: { x2: [{ palletInstance: 50 }, { generalIndex: 123 }] }
|
||||
});
|
||||
|
||||
expect(
|
||||
// @ts-expect-error We don't have getters for this field
|
||||
new SignerPayload(registry, { assetId: 0 }).toPayload().assetId
|
||||
).toEqual(0);
|
||||
).toEqual({
|
||||
// eslint-disable-next-line sort-keys
|
||||
parents: 0, interior: { here: null }
|
||||
});
|
||||
|
||||
expect(
|
||||
// @ts-expect-error We don't have getters for this field
|
||||
@@ -105,7 +114,11 @@ describe('SignerPayload', (): void => {
|
||||
});
|
||||
|
||||
it('can be used as a feed to ExtrinsicPayload', (): void => {
|
||||
const signer = new SignerPayload(registry, { ...TEST, assetId: 123 }).toPayload();
|
||||
const signer = new SignerPayload(registry, {
|
||||
...TEST,
|
||||
// eslint-disable-next-line sort-keys
|
||||
assetId: { parents: 0, interior: { x2: [{ palletInstance: 50 }, { generalIndex: 123 }] } }
|
||||
}).toPayload();
|
||||
const payload = registry.createType('ExtrinsicPayload', signer, { version: signer.version });
|
||||
|
||||
expect(payload.era.toHex()).toEqual(TEST.era);
|
||||
@@ -114,6 +127,10 @@ describe('SignerPayload', (): void => {
|
||||
expect(payload.nonce.eq(TEST.nonce)).toBe(true);
|
||||
expect(payload.tip.eq(TEST.tip)).toBe(true);
|
||||
// @ts-expect-error assetId is of unknown type, so we don't know about "isSome"
|
||||
expect(payload.inner?.get('assetId')?.isSome && payload.inner?.get('assetId')?.eq(123)).toBe(true);
|
||||
expect(payload.inner?.get('assetId')?.isSome && payload.inner?.get('assetId')
|
||||
?.eq(registry.createType('MultiLocation', {
|
||||
// eslint-disable-next-line sort-keys
|
||||
parents: 0, interior: { X2: [{ palletInstance: 50 }, { generalIndex: 123 }] }
|
||||
}))).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -8,7 +8,7 @@ export const statemint: ExtDef = {
|
||||
extrinsic: {
|
||||
tip: 'Compact<Balance>',
|
||||
// eslint-disable-next-line sort-keys
|
||||
assetId: 'Option<AssetId>'
|
||||
assetId: 'TAssetConversion'
|
||||
},
|
||||
payload: {}
|
||||
}
|
||||
|
||||
@@ -14,13 +14,15 @@ const CheckMortality: ExtInfo = {
|
||||
}
|
||||
};
|
||||
|
||||
export const substrate: ExtDef = {
|
||||
ChargeTransactionPayment: {
|
||||
extrinsic: {
|
||||
tip: 'Compact<Balance>'
|
||||
},
|
||||
payload: {}
|
||||
const ChargeTransactionPayment: ExtInfo = {
|
||||
extrinsic: {
|
||||
tip: 'Compact<Balance>'
|
||||
},
|
||||
payload: {}
|
||||
};
|
||||
|
||||
export const substrate: ExtDef = {
|
||||
ChargeTransactionPayment,
|
||||
CheckBlockGasLimit: emptyCheck,
|
||||
CheckEra: CheckMortality,
|
||||
CheckGenesis: {
|
||||
@@ -57,5 +59,6 @@ export const substrate: ExtDef = {
|
||||
},
|
||||
CheckWeight: emptyCheck,
|
||||
LockStakingStatus: emptyCheck,
|
||||
SkipCheckIfFeeless: ChargeTransactionPayment,
|
||||
ValidateEquivocationReport: emptyCheck
|
||||
};
|
||||
|
||||
@@ -15,22 +15,33 @@ const metadata = new Metadata(registry, metadataStatic);
|
||||
registry.setMetadata(metadata);
|
||||
|
||||
describe('Call', (): void => {
|
||||
// balances.forceSetBalance(0x, 0)
|
||||
const FSBU8 = new Uint8Array([
|
||||
// index
|
||||
6, 8,
|
||||
// id lookup
|
||||
0,
|
||||
// public
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
// value
|
||||
0
|
||||
]);
|
||||
|
||||
it('handles decoding correctly (bare)', (): void => {
|
||||
expect(
|
||||
new Call(registry, {
|
||||
args: ['0x0000000000000000000000000000000000000000000000000000000000000000', 0, 0],
|
||||
callIndex: [6, 1] // balances.setBalance
|
||||
args: ['0x0000000000000000000000000000000000000000000000000000000000000000', 0],
|
||||
callIndex: [6, 8]
|
||||
}).toU8a()
|
||||
).toEqual(
|
||||
new Uint8Array([6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
|
||||
);
|
||||
).toEqual(FSBU8);
|
||||
});
|
||||
|
||||
it('handles creation from a hex value properly', (): void => {
|
||||
expect(
|
||||
new Call(registry, '0x06010000000000000000000000000000000000000000000000000000000000000000').toU8a()
|
||||
).toEqual(
|
||||
new Uint8Array([6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
|
||||
); // balances.setBalance
|
||||
new Call(registry, '0x0608000000000000000000000000000000000000000000000000000000000000000000').toU8a()
|
||||
).toEqual(FSBU8);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -44,7 +44,7 @@ describe('LookupSource', (): void => {
|
||||
testDecode(
|
||||
'AccountIndex (mixed prefixes)',
|
||||
registry.createType('IndicesLookupSource', '118r'),
|
||||
// NOTE Expected adress here is encoded with prefix 42, input above with 1
|
||||
// NOTE Expected address here is encoded with prefix 42, input above with 1
|
||||
'25GUyv'
|
||||
);
|
||||
testDecode(
|
||||
|
||||
@@ -11,5 +11,7 @@ import { runtime } from './runtime.js';
|
||||
export default {
|
||||
rpc: {},
|
||||
runtime,
|
||||
types: {}
|
||||
types: {
|
||||
TAssetConversion: 'Option<MultiLocation>'
|
||||
}
|
||||
} as Definitions;
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Option } from '@polkadot/types-codec';
|
||||
import type { MultiLocation } from '@polkadot/types/interfaces/xcm';
|
||||
|
||||
/** @name TAssetConversion */
|
||||
export interface TAssetConversion extends Option<MultiLocation> {}
|
||||
|
||||
export type PHANTOM_ASSETCONVERSION = 'assetConversion';
|
||||
|
||||
@@ -32,6 +32,12 @@ export default {
|
||||
commitment: 'BeefyCommitment',
|
||||
signatures: 'Vec<Option<EcdsaSignature>>'
|
||||
},
|
||||
BeefyVersionedFinalityProof: {
|
||||
_enum: {
|
||||
V0: 'Null',
|
||||
V1: 'BeefySignedCommitment'
|
||||
}
|
||||
},
|
||||
BeefyNextAuthoritySet: {
|
||||
id: 'u64',
|
||||
len: 'u32',
|
||||
|
||||
@@ -10,13 +10,13 @@ export const rpc: DefinitionsRpc = {
|
||||
type: 'H256'
|
||||
},
|
||||
subscribeJustifications: {
|
||||
description: 'Returns the block most recently finalized by BEEFY, alongside side its justification.',
|
||||
description: 'Returns the block most recently finalized by BEEFY, alongside its justification.',
|
||||
params: [],
|
||||
pubsub: [
|
||||
'justifications',
|
||||
'subscribeJustifications',
|
||||
'unsubscribeJustifications'
|
||||
],
|
||||
type: 'BeefySignedCommitment'
|
||||
type: 'BeefyVersionedFinalityProof'
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Bytes, Option, Struct, U8aFixed, Vec, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { Bytes, Enum, Option, Struct, U8aFixed, Vec, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||
import type { EcdsaSignature, Signature } from '@polkadot/types/interfaces/extrinsics';
|
||||
@@ -49,6 +49,14 @@ export interface BeefySignedCommitment extends Struct {
|
||||
readonly signatures: Vec<Option<EcdsaSignature>>;
|
||||
}
|
||||
|
||||
/** @name BeefyVersionedFinalityProof */
|
||||
export interface BeefyVersionedFinalityProof extends Enum {
|
||||
readonly isV0: boolean;
|
||||
readonly isV1: boolean;
|
||||
readonly asV1: BeefySignedCommitment;
|
||||
readonly type: 'V0' | 'V1';
|
||||
}
|
||||
|
||||
/** @name BeefyVoteMessage */
|
||||
export interface BeefyVoteMessage extends Struct {
|
||||
readonly commitment: BeefyCommitment;
|
||||
|
||||
@@ -26,12 +26,17 @@ describe('decorateEvents', (): void => {
|
||||
expect(
|
||||
events['staking']['Rewarded'].meta.toJSON()
|
||||
).toEqual({
|
||||
args: ['AccountId32', 'u128'],
|
||||
args: [
|
||||
'AccountId32',
|
||||
'{"_enum":{"Staked":"Null","Stash":"Null","Controller":"Null","Account":"AccountId32","None":"Null"}}',
|
||||
'u128'
|
||||
],
|
||||
docs: [
|
||||
'The nominator has been rewarded by this amount.'
|
||||
'The nominator has been rewarded by this amount to this destination.'
|
||||
],
|
||||
fields: [
|
||||
{ docs: [], name: 'stash', type: 0, typeName: 'T::AccountId' },
|
||||
{ docs: [], name: 'dest', type: 50, typeName: 'RewardDestination<T::AccountId>' },
|
||||
{ docs: [], name: 'amount', type: 6, typeName: 'BalanceOf<T>' }
|
||||
],
|
||||
index: 1,
|
||||
|
||||
@@ -36,5 +36,9 @@ export const substrate: Record<string, Creator> = {
|
||||
heapPages: createSubstrateFn('heapPages', ':heappages', {
|
||||
docs: 'Number of wasm linear memory pages required for execution of the runtime.',
|
||||
type: 'u64'
|
||||
}),
|
||||
intrablockEntropy: createSubstrateFn('intrablockEntropy', ':intrablock_entropy', {
|
||||
docs: 'Current intra-block entropy (a universally unique `[u8; 32]` value) is stored here.',
|
||||
type: '[u8; 32]'
|
||||
})
|
||||
};
|
||||
|
||||
@@ -5,6 +5,8 @@ import type { PortableType } from '../../../interfaces/index.js';
|
||||
import type { StorageEntry } from '../../../primitive/types.js';
|
||||
import type { Registry } from '../../../types/index.js';
|
||||
|
||||
import { getTypeDef } from '@polkadot/types-create';
|
||||
|
||||
import { createFunction } from './createFunction.js';
|
||||
|
||||
export interface ManualMetadata {
|
||||
@@ -18,8 +20,8 @@ interface ManualDefinition {
|
||||
section: string;
|
||||
}
|
||||
|
||||
function findSiPrimitive (registry: Registry, _prim: string): PortableType | undefined {
|
||||
const prim = _prim.toLowerCase();
|
||||
function findSiPrimitive (registry: Registry, type: string): PortableType | undefined {
|
||||
const prim = type.toLowerCase();
|
||||
|
||||
return registry.lookup.types.find((t) =>
|
||||
(
|
||||
@@ -32,27 +34,49 @@ function findSiPrimitive (registry: Registry, _prim: string): PortableType | und
|
||||
);
|
||||
}
|
||||
|
||||
function findSiType (registry: Registry, orig: string): PortableType | undefined {
|
||||
let portable = findSiPrimitive(registry, orig);
|
||||
function findSiType (registry: Registry, type: string): PortableType | undefined {
|
||||
let portable = findSiPrimitive(registry, type);
|
||||
|
||||
if (!portable && orig === 'Bytes') {
|
||||
// some types are either Sequence or Arrays, cater for these
|
||||
// specifically (these all come from the base substrate known keys)
|
||||
if (!portable && (type === 'Bytes' || type.startsWith('[u8;'))) {
|
||||
const u8 = findSiPrimitive(registry, 'u8');
|
||||
|
||||
if (u8) {
|
||||
portable = registry.lookup.types.find((t) =>
|
||||
(
|
||||
t.type.def.isSequence &&
|
||||
t.type.def.asSequence.type.eq(u8.id)
|
||||
) || (
|
||||
t.type.def.isHistoricMetaCompat &&
|
||||
t.type.def.asHistoricMetaCompat.eq(orig)
|
||||
)
|
||||
);
|
||||
if (type === 'Bytes') {
|
||||
portable = registry.lookup.types.find((t) =>
|
||||
(
|
||||
t.type.def.isSequence &&
|
||||
t.type.def.asSequence.type.eq(u8.id)
|
||||
) || (
|
||||
t.type.def.isHistoricMetaCompat &&
|
||||
t.type.def.asHistoricMetaCompat.eq(type)
|
||||
)
|
||||
);
|
||||
} else {
|
||||
const td = getTypeDef(type);
|
||||
|
||||
portable = registry.lookup.types.find((t) =>
|
||||
(
|
||||
t.type.def.isArray &&
|
||||
t.type.def.asArray.eq({
|
||||
len: td.length,
|
||||
type: u8.id
|
||||
})
|
||||
) || (
|
||||
t.type.def.isHistoricMetaCompat &&
|
||||
t.type.def.asHistoricMetaCompat.eq(type)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!portable) {
|
||||
console.warn(`Unable to map ${orig} to a lookup index`);
|
||||
// Not fatal, however if this happens the storage key using this
|
||||
// type will not return valid values, rather it will most probably
|
||||
// be decoded incorrectly
|
||||
console.warn(`Unable to map ${type} to a lookup index`);
|
||||
}
|
||||
|
||||
return portable;
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '10.10.1' };
|
||||
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '10.11.2' };
|
||||
|
||||
@@ -163,7 +163,7 @@ export interface SignatureOptions {
|
||||
signedExtensions?: string[];
|
||||
signer?: Signer;
|
||||
tip?: AnyNumber;
|
||||
assetId?: AnyNumber;
|
||||
assetId?: AnyNumber | object;
|
||||
}
|
||||
|
||||
interface ExtrinsicSignatureBase {
|
||||
@@ -184,7 +184,7 @@ export interface ExtrinsicPayloadValue {
|
||||
specVersion: AnyNumber;
|
||||
tip: AnyNumber;
|
||||
transactionVersion: AnyNumber;
|
||||
assetId?: AnyNumber;
|
||||
assetId?: AnyNumber | object;
|
||||
}
|
||||
|
||||
export interface IExtrinsicSignature extends ExtrinsicSignatureBase, Codec {
|
||||
|
||||
Reference in New Issue
Block a user