From 4aafeed0264297a87a137c7374b4206acebb9402 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Sun, 11 Jul 2021 05:44:10 +0000 Subject: [PATCH] [CI Skip] release/beta 4.17.2-20 skip-checks: true --- package.json | 2 +- packages/api-contract/package.json | 6 +- packages/api-contract/src/packageInfo.ts | 2 +- packages/api-derive/package.json | 10 +- packages/api-derive/src/packageInfo.ts | 2 +- packages/api/package.json | 12 +-- packages/api/src/augment/events.ts | 5 + packages/api/src/augment/query.ts | 7 +- packages/api/src/augment/tx.ts | 101 ++---------------- packages/api/src/packageInfo.ts | 2 +- packages/rpc-core/package.json | 6 +- packages/rpc-core/src/packageInfo.ts | 2 +- packages/rpc-provider/package.json | 6 +- packages/rpc-provider/src/packageInfo.ts | 2 +- packages/typegen/package.json | 8 +- packages/typegen/src/packageInfo.ts | 2 +- packages/types-known/package.json | 4 +- packages/types-known/src/packageInfo.ts | 2 +- packages/types/package.json | 2 +- packages/types/src/augment/registry.ts | 5 +- .../types/src/interfaces/staking/types.ts | 3 + packages/types/src/packageInfo.ts | 2 +- yarn.lock | 48 ++++----- 23 files changed, 85 insertions(+), 156 deletions(-) diff --git a/package.json b/package.json index 553845f431..b186a3f17d 100644 --- a/package.json +++ b/package.json @@ -35,5 +35,5 @@ "@types/jest": "^26.0.23", "copyfiles": "^2.4.1" }, - "version": "4.17.2-19" + "version": "4.17.2-20" } diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index 9aedbd6869..4da7b5144b 100644 --- a/packages/api-contract/package.json +++ b/packages/api-contract/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-contract", - "version": "4.17.2-19", + "version": "4.17.2-20", "type": "module", "description": "Interfaces for interacting with contracts and contract ABIs", "main": "index.js", @@ -20,8 +20,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme", "dependencies": { "@babel/runtime": "^7.14.6", - "@polkadot/api": "4.17.2-19", - "@polkadot/types": "4.17.2-19", + "@polkadot/api": "4.17.2-20", + "@polkadot/types": "4.17.2-20", "@polkadot/util": "^6.11.2-16", "rxjs": "^7.2.0" } diff --git a/packages/api-contract/src/packageInfo.ts b/packages/api-contract/src/packageInfo.ts index af98b22831..6bca5b9eb5 100644 --- a/packages/api-contract/src/packageInfo.ts +++ b/packages/api-contract/src/packageInfo.ts @@ -3,4 +3,4 @@ // Auto-generated by @polkadot/dev, do not edit -export const packageInfo = { name: '@polkadot/api-contract', version: '4.17.2-19' }; +export const packageInfo = { name: '@polkadot/api-contract', version: '4.17.2-20' }; diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index 0678352af4..3ff5eb3d46 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "4.17.2-19", + "version": "4.17.2-20", "type": "module", "description": "Common functions used across Polkadot, derived from RPC calls and storage queries.", "main": "index.js", @@ -20,15 +20,15 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme", "dependencies": { "@babel/runtime": "^7.14.6", - "@polkadot/api": "4.17.2-19", - "@polkadot/rpc-core": "4.17.2-19", - "@polkadot/types": "4.17.2-19", + "@polkadot/api": "4.17.2-20", + "@polkadot/rpc-core": "4.17.2-20", + "@polkadot/types": "4.17.2-20", "@polkadot/util": "^6.11.2-16", "@polkadot/util-crypto": "^6.11.2-16", "rxjs": "^7.2.0" }, "devDependencies": { "@polkadot/keyring": "^6.11.2-16", - "@polkadot/rpc-provider": "4.17.2-19" + "@polkadot/rpc-provider": "4.17.2-20" } } diff --git a/packages/api-derive/src/packageInfo.ts b/packages/api-derive/src/packageInfo.ts index ec415a9bef..1c3ede7743 100644 --- a/packages/api-derive/src/packageInfo.ts +++ b/packages/api-derive/src/packageInfo.ts @@ -3,4 +3,4 @@ // Auto-generated by @polkadot/dev, do not edit -export const packageInfo = { name: '@polkadot/api-derive', version: '4.17.2-19' }; +export const packageInfo = { name: '@polkadot/api-derive', version: '4.17.2-20' }; diff --git a/packages/api/package.json b/packages/api/package.json index 030bde4bff..e9df4b4cbc 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "4.17.2-19", + "version": "4.17.2-20", "type": "module", "description": "Promise and RxJS wrappers around the Polkadot JS RPC", "main": "index.js", @@ -20,12 +20,12 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme", "dependencies": { "@babel/runtime": "^7.14.6", - "@polkadot/api-derive": "4.17.2-19", + "@polkadot/api-derive": "4.17.2-20", "@polkadot/keyring": "^6.11.2-16", - "@polkadot/rpc-core": "4.17.2-19", - "@polkadot/rpc-provider": "4.17.2-19", - "@polkadot/types": "4.17.2-19", - "@polkadot/types-known": "4.17.2-19", + "@polkadot/rpc-core": "4.17.2-20", + "@polkadot/rpc-provider": "4.17.2-20", + "@polkadot/types": "4.17.2-20", + "@polkadot/types-known": "4.17.2-20", "@polkadot/util": "^6.11.2-16", "@polkadot/util-crypto": "^6.11.2-16", "eventemitter3": "^4.0.7", diff --git a/packages/api/src/augment/events.ts b/packages/api/src/augment/events.ts index f04ebd2e48..bf7327f7ef 100644 --- a/packages/api/src/augment/events.ts +++ b/packages/api/src/augment/events.ts @@ -809,6 +809,11 @@ declare module '@polkadot/api/types/events' { * it will not be emitted for staking rewards when they are added to stake. **/ Bonded: AugmentedEvent; + /** + * An account has stopped participating as either a validator or nominator. + * \[stash\] + **/ + Chilled: AugmentedEvent; /** * The era payout has been set; the first balance is the validator-payout; the second is * the remainder from the maximum amount of reward. diff --git a/packages/api/src/augment/query.ts b/packages/api/src/augment/query.ts index 681e135907..81ae824dd1 100644 --- a/packages/api/src/augment/query.ts +++ b/packages/api/src/augment/query.ts @@ -83,9 +83,10 @@ declare module '@polkadot/api/types/storage' { **/ authorities: AugmentedQuery Observable>>, []> & QueryableStorageEntry; /** - * Temporary value (cleared at block finalization) that includes the VRF output generated - * at this block. This field should always be populated during block processing unless + * This field should always be populated during block processing unless * secondary plain slots are enabled (which don't contain a VRF output). + * + * It is set in `on_initialize`, before it will contain the value from the last block. **/ authorVrfRandomness: AugmentedQuery Observable, []> & QueryableStorageEntry; /** @@ -1080,7 +1081,7 @@ declare module '@polkadot/api/types/storage' { * True if network has been upgraded to this version. * Storage version of the pallet. * - * This is set to v6.0.0 for new networks. + * This is set to v7.0.0 for new networks. **/ storageVersion: AugmentedQuery Observable, []> & QueryableStorageEntry; /** diff --git a/packages/api/src/augment/tx.ts b/packages/api/src/augment/tx.ts index 2a33a39791..a1a660c517 100644 --- a/packages/api/src/augment/tx.ts +++ b/packages/api/src/augment/tx.ts @@ -19,7 +19,7 @@ import type { AccountId, AccountIndex, AssetId, Balance, BalanceOf, BlockNumber, import type { Period, Priority } from '@polkadot/types/interfaces/scheduler'; import type { Keys } from '@polkadot/types/interfaces/session'; import type { SocietyJudgement } from '@polkadot/types/interfaces/society'; -import type { ElectionScore, EraIndex, RawSolution, ReadySolution, RewardDestination, SolutionOrSnapshotSize, ValidatorPrefs } from '@polkadot/types/interfaces/staking'; +import type { ElectionScore, EraIndex, RawSolution, RewardDestination, SolutionOrSnapshotSize, Supports, ValidatorPrefs } from '@polkadot/types/interfaces/staking'; import type { Key } from '@polkadot/types/interfaces/system'; import type { BountyIndex } from '@polkadot/types/interfaces/treasury'; import type { ClassId, DestroyWitness, InstanceId } from '@polkadot/types/interfaces/uniques'; @@ -1256,7 +1256,7 @@ declare module '@polkadot/api/types/submittable' { * feasibility check itself can in principle cause the election process to fail (due to * memory/weight constrains). **/ - setEmergencyElectionResult: AugmentedSubmittable<(solution: ReadySolution | { supports?: any; score?: any; compute?: any } | string | Uint8Array) => SubmittableExtrinsic, [ReadySolution]>; + setEmergencyElectionResult: AugmentedSubmittable<(supports: Supports) => SubmittableExtrinsic, [Supports]>; /** * Set a new value for `MinimumUntrustedScore`. * @@ -2936,7 +2936,6 @@ declare module '@polkadot/api/types/submittable' { * The dispatch origin for this call must be _Signed_ by the stash account. * * Emits `Bonded`. - * * # * - Independent of the arguments. Moderate complexity. * - O(1). @@ -2945,10 +2944,6 @@ declare module '@polkadot/api/types/submittable' { * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned * unless the `origin` falls below _existential deposit_ and gets removed as dust. * ------------------ - * Weight: O(1) - * DB Weight: - * - Read: Bonded, Ledger, [Origin Account], Current Era, History Depth, Locks - * - Write: Bonded, Payee, [Origin Account], Locks, Ledger * # **/ bond: AugmentedSubmittable<(controller: LookupSource | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact | AnyNumber | Uint8Array, payee: RewardDestination | { Staked: any } | { Stash: any } | { Controller: any } | { Account: any } | { None: any } | string | Uint8Array) => SubmittableExtrinsic, [LookupSource, Compact, RewardDestination]>; @@ -2956,23 +2951,17 @@ declare module '@polkadot/api/types/submittable' { * Add some extra amount that have appeared in the stash `free_balance` into the balance up * for staking. * + * The dispatch origin for this call must be _Signed_ by the stash, not the controller. + * * Use this if there are additional funds in your stash account that you wish to bond. * Unlike [`bond`] or [`unbond`] this function does not impose any limitation on the amount * that can be added. * - * The dispatch origin for this call must be _Signed_ by the stash, not the controller and - * it can be only called when [`EraElectionStatus`] is `Closed`. - * * Emits `Bonded`. * * # * - Independent of the arguments. Insignificant complexity. * - O(1). - * - One DB entry. - * ------------ - * DB Weight: - * - Read: Era Election Status, Bonded, Ledger, [Origin Account], Locks - * - Write: [Origin Account], Locks, Ledger * # **/ bondExtra: AugmentedSubmittable<(maxAdditional: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; @@ -2998,17 +2987,11 @@ declare module '@polkadot/api/types/submittable' { * Effects will be felt at the beginning of the next era. * * The dispatch origin for this call must be _Signed_ by the controller, not the stash. - * And, it can be only called when [`EraElectionStatus`] is `Closed`. * * # * - Independent of the arguments. Insignificant complexity. * - Contains one read. * - Writes are limited to the `origin` account key. - * -------- - * Weight: O(1) - * DB Weight: - * - Read: EraElectionStatus, Ledger - * - Write: Validators, Nominators * # **/ chill: AugmentedSubmittable<() => SubmittableExtrinsic, []>; @@ -3120,8 +3103,6 @@ declare module '@polkadot/api/types/submittable' { * Effects will be felt at the beginning of the next era. * * The dispatch origin for this call must be _Signed_ by the controller, not the stash. - * And, it can be only called when [`EraElectionStatus`] is `Closed`. The controller - * account should represent a validator. * * - `who`: A list of nominator stash accounts who are nominating this validator which * should no longer be nominating this validator. @@ -3133,22 +3114,14 @@ declare module '@polkadot/api/types/submittable' { /** * Declare the desire to nominate `targets` for the origin controller. * - * Effects will be felt at the beginning of the next era. This can only be called when - * [`EraElectionStatus`] is `Closed`. + * Effects will be felt at the beginning of the next era. * * The dispatch origin for this call must be _Signed_ by the controller, not the stash. - * And, it can be only called when [`EraElectionStatus`] is `Closed`. * * # * - The transaction's complexity is proportional to the size of `targets` (N) * which is capped at CompactAssignments::LIMIT (MAX_NOMINATIONS). * - Both the reads and writes follow a similar pattern. - * --------- - * Weight: O(N) - * where N is the number of targets - * DB Weight: - * - Reads: Era Election Status, Ledger, Current Era - * - Writes: Validators, Nominators * # **/ nominate: AugmentedSubmittable<(targets: Vec | (LookupSource | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; @@ -3162,8 +3135,6 @@ declare module '@polkadot/api/types/submittable' { * The origin of this call must be _Signed_. Any account can call this function, even if * it is not one of the stakers. * - * This can only be called when [`EraElectionStatus`] is `Closed`. - * * # * - Time complexity: at most O(MaxNominatorRewardedPerValidator). * - Contains a limited number of reads and writes. @@ -3172,11 +3143,6 @@ declare module '@polkadot/api/types/submittable' { * Weight: * - Reward Destination Staked: O(N) * - Reward Destination Controller (Creating): O(N) - * DB Weight: - * - Read: EraElectionStatus, CurrentEra, HistoryDepth, ErasValidatorReward, - * ErasStakersClipped, ErasRewardPoints, ErasValidatorPrefs (8 items) - * - Read Each: Bonded, Ledger, Payee, Locks, System Account (5 items) - * - Write Each: System Account, Locks, Ledger (3 items) * * NOTE: weights are assuming that payouts are made to alive stash account (Staked). * Paying even a dead controller is cheaper weight-wise. We don't do any refunds here. @@ -3204,17 +3170,12 @@ declare module '@polkadot/api/types/submittable' { /** * Rebond a portion of the stash scheduled to be unlocked. * - * The dispatch origin must be signed by the controller, and it can be only called when - * [`EraElectionStatus`] is `Closed`. + * The dispatch origin must be signed by the controller. * * # * - Time complexity: O(L), where L is unlocking chunks * - Bounded by `MAX_UNLOCKING_CHUNKS`. * - Storage changes: Can't increase storage, only decrease it. - * --------------- - * - DB Weight: - * - Reads: EraElectionStatus, Ledger, Locks, [Origin Account] - * - Writes: [Origin Account], Locks, Ledger * # **/ rebond: AugmentedSubmittable<(value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; @@ -3333,6 +3294,8 @@ declare module '@polkadot/api/types/submittable' { * period ends. If this leaves an amount actively bonded less than * T::Currency::minimum_balance(), then it is increased to the full amount. * + * The dispatch origin for this call must be _Signed_ by the controller, not the stash. + * * Once the unlock period is done, you can call `withdraw_unbonded` to actually move * the funds out of management ready for transfer. * @@ -3343,27 +3306,9 @@ declare module '@polkadot/api/types/submittable' { * If a user encounters the `InsufficientBond` error when calling this extrinsic, * they should call `chill` first in order to free up their bonded funds. * - * The dispatch origin for this call must be _Signed_ by the controller, not the stash. - * And, it can be only called when [`EraElectionStatus`] is `Closed`. - * * Emits `Unbonded`. * * See also [`Call::withdraw_unbonded`]. - * - * # - * - Independent of the arguments. Limited but potentially exploitable complexity. - * - Contains a limited number of reads. - * - Each call (requires the remainder of the bonded balance to be above `minimum_balance`) - * will cause a new entry to be inserted into a vector (`Ledger.unlocking`) kept in storage. - * The only way to clean the aforementioned storage item is also user-controlled via - * `withdraw_unbonded`. - * - One DB entry. - * ---------- - * Weight: O(1) - * DB Weight: - * - Read: EraElectionStatus, Ledger, CurrentEra, Locks, BalanceOf Stash, - * - Write: Locks, Ledger, BalanceOf Stash, - * **/ unbond: AugmentedSubmittable<(value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; /** @@ -3372,18 +3317,6 @@ declare module '@polkadot/api/types/submittable' { * Effects will be felt at the beginning of the next era. * * The dispatch origin for this call must be _Signed_ by the controller, not the stash. - * And, it can be only called when [`EraElectionStatus`] is `Closed`. - * - * # - * - Independent of the arguments. Insignificant complexity. - * - Contains a limited number of reads. - * - Writes are limited to the `origin` account key. - * ----------- - * Weight: O(1) - * DB Weight: - * - Read: Era Election Status, Ledger - * - Write: Nominators, Validators - * # **/ validate: AugmentedSubmittable<(prefs: ValidatorPrefs | { commission?: any; blocked?: any } | string | Uint8Array) => SubmittableExtrinsic, [ValidatorPrefs]>; /** @@ -3392,30 +3325,14 @@ declare module '@polkadot/api/types/submittable' { * This essentially frees up that balance to be used by the stash account to do * whatever it wants. * - * The dispatch origin for this call must be _Signed_ by the controller, not the stash. - * And, it can be only called when [`EraElectionStatus`] is `Closed`. + * The dispatch origin for this call must be _Signed_ by the controller. * * Emits `Withdrawn`. * * See also [`Call::unbond`]. * * # - * - Could be dependent on the `origin` argument and how much `unlocking` chunks exist. - * It implies `consolidate_unlocked` which loops over `Ledger.unlocking`, which is - * indirectly user-controlled. See [`unbond`] for more detail. - * - Contains a limited number of reads, yet the size of which could be large based on `ledger`. - * - Writes are limited to the `origin` account key. - * --------------- * Complexity O(S) where S is the number of slashing spans to remove - * Update: - * - Reads: EraElectionStatus, Ledger, Current Era, Locks, [Origin Account] - * - Writes: [Origin Account], Locks, Ledger - * Kill: - * - Reads: EraElectionStatus, Ledger, Current Era, Bonded, Slashing Spans, [Origin - * Account], Locks, BalanceOf stash - * - Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, - * [Origin Account], Locks, BalanceOf stash. - * - Writes Each: SpanSlash * S * NOTE: Weight annotation is the kill scenario, we refund otherwise. * # **/ diff --git a/packages/api/src/packageInfo.ts b/packages/api/src/packageInfo.ts index 05cddf982a..bbbfb4250a 100644 --- a/packages/api/src/packageInfo.ts +++ b/packages/api/src/packageInfo.ts @@ -3,4 +3,4 @@ // Auto-generated by @polkadot/dev, do not edit -export const packageInfo = { name: '@polkadot/api', version: '4.17.2-19' }; +export const packageInfo = { name: '@polkadot/api', version: '4.17.2-20' }; diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 47a43b4ade..d1b957117d 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "4.17.2-19", + "version": "4.17.2-20", "type": "module", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", @@ -20,8 +20,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme", "dependencies": { "@babel/runtime": "^7.14.6", - "@polkadot/rpc-provider": "4.17.2-19", - "@polkadot/types": "4.17.2-19", + "@polkadot/rpc-provider": "4.17.2-20", + "@polkadot/types": "4.17.2-20", "@polkadot/util": "^6.11.2-16", "rxjs": "^7.2.0" }, diff --git a/packages/rpc-core/src/packageInfo.ts b/packages/rpc-core/src/packageInfo.ts index 7337e5289a..9e688d084f 100644 --- a/packages/rpc-core/src/packageInfo.ts +++ b/packages/rpc-core/src/packageInfo.ts @@ -3,4 +3,4 @@ // Auto-generated by @polkadot/dev, do not edit -export const packageInfo = { name: '@polkadot/rpc-core', version: '4.17.2-19' }; +export const packageInfo = { name: '@polkadot/rpc-core', version: '4.17.2-20' }; diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index 4e4e0ace8e..256268e31d 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "4.17.2-19", + "version": "4.17.2-20", "type": "module", "description": "Transport providers for the API", "main": "index.js", @@ -20,7 +20,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme", "dependencies": { "@babel/runtime": "^7.14.6", - "@polkadot/types": "4.17.2-19", + "@polkadot/types": "4.17.2-20", "@polkadot/util": "^6.11.2-16", "@polkadot/util-crypto": "^6.11.2-16", "@polkadot/x-fetch": "^6.11.2-16", @@ -30,7 +30,7 @@ }, "devDependencies": { "@polkadot/keyring": "^6.11.2-16", - "@polkadot/types": "4.17.2-19", + "@polkadot/types": "4.17.2-20", "mock-socket": "^9.0.3", "nock": "^13.1.1" } diff --git a/packages/rpc-provider/src/packageInfo.ts b/packages/rpc-provider/src/packageInfo.ts index 71001a5f41..aa97883b8a 100644 --- a/packages/rpc-provider/src/packageInfo.ts +++ b/packages/rpc-provider/src/packageInfo.ts @@ -3,4 +3,4 @@ // Auto-generated by @polkadot/dev, do not edit -export const packageInfo = { name: '@polkadot/rpc-provider', version: '4.17.2-19' }; +export const packageInfo = { name: '@polkadot/rpc-provider', version: '4.17.2-20' }; diff --git a/packages/typegen/package.json b/packages/typegen/package.json index c6afddd0a4..4850b91396 100644 --- a/packages/typegen/package.json +++ b/packages/typegen/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/typegen", - "version": "4.17.2-19", + "version": "4.17.2-20", "type": "module", "description": "Type generation scripts", "main": "index.js", @@ -29,9 +29,9 @@ "@babel/core": "^7.14.6", "@babel/register": "^7.14.5", "@babel/runtime": "^7.14.6", - "@polkadot/api": "4.17.2-19", - "@polkadot/rpc-provider": "4.17.2-19", - "@polkadot/types": "4.17.2-19", + "@polkadot/api": "4.17.2-20", + "@polkadot/rpc-provider": "4.17.2-20", + "@polkadot/types": "4.17.2-20", "@polkadot/util": "^6.11.2-16", "handlebars": "^4.7.7", "websocket": "^1.0.34", diff --git a/packages/typegen/src/packageInfo.ts b/packages/typegen/src/packageInfo.ts index 19ccbae6c5..23ea419af4 100644 --- a/packages/typegen/src/packageInfo.ts +++ b/packages/typegen/src/packageInfo.ts @@ -3,4 +3,4 @@ // Auto-generated by @polkadot/dev, do not edit -export const packageInfo = { name: '@polkadot/typegen', version: '4.17.2-19' }; +export const packageInfo = { name: '@polkadot/typegen', version: '4.17.2-20' }; diff --git a/packages/types-known/package.json b/packages/types-known/package.json index c066aa1661..d6ced435ec 100644 --- a/packages/types-known/package.json +++ b/packages/types-known/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types-known", - "version": "4.17.2-19", + "version": "4.17.2-20", "type": "module", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", @@ -21,7 +21,7 @@ "dependencies": { "@babel/runtime": "^7.14.6", "@polkadot/networks": "^6.11.2-16", - "@polkadot/types": "4.17.2-19", + "@polkadot/types": "4.17.2-20", "@polkadot/util": "^6.11.2-16" } } diff --git a/packages/types-known/src/packageInfo.ts b/packages/types-known/src/packageInfo.ts index a3bd576cea..224adc13df 100644 --- a/packages/types-known/src/packageInfo.ts +++ b/packages/types-known/src/packageInfo.ts @@ -3,4 +3,4 @@ // Auto-generated by @polkadot/dev, do not edit -export const packageInfo = { name: '@polkadot/types-known', version: '4.17.2-19' }; +export const packageInfo = { name: '@polkadot/types-known', version: '4.17.2-20' }; diff --git a/packages/types/package.json b/packages/types/package.json index af4e698a30..7f41353635 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "4.17.2-19", + "version": "4.17.2-20", "type": "module", "description": "Implementation of the Parity codec", "main": "index.js", diff --git a/packages/types/src/augment/registry.ts b/packages/types/src/augment/registry.ts index 1d37b6a352..cca13fe71e 100644 --- a/packages/types/src/augment/registry.ts +++ b/packages/types/src/augment/registry.ts @@ -48,7 +48,7 @@ import type { SiField, SiLookupTypeId, SiPath, SiType, SiTypeDef, SiTypeDefArray import type { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, ScheduledTo254, TaskAddress } from '@polkadot/types/interfaces/scheduler'; import type { BeefyKey, FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys10, SessionKeys10B, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, SessionKeys6B, SessionKeys7, SessionKeys7B, SessionKeys8, SessionKeys8B, SessionKeys9, SessionKeys9B, ValidatorCount } from '@polkadot/types/interfaces/session'; import type { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society'; -import type { ActiveEraInfo, CompactAssignments, CompactAssignmentsTo257, CompactAssignmentsTo265, CompactAssignmentsWith16, CompactAssignmentsWith24, CompactScore, CompactScoreCompact, ElectionCompute, ElectionPhase, ElectionResult, ElectionScore, ElectionSize, ElectionStatus, EraIndex, EraPoints, EraRewardPoints, EraRewards, Exposure, ExtendedBalance, Forcing, IndividualExposure, KeyType, MomentOf, Nominations, NominatorIndex, NominatorIndexCompact, OffchainAccuracy, OffchainAccuracyCompact, PhragmenScore, Points, RawSolution, RawSolutionTo265, RawSolutionWith16, RawSolutionWith24, ReadySolution, RewardDestination, RewardPoint, RoundSnapshot, SeatHolder, SignedSubmission, SignedSubmissionOf, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SolutionOrSnapshotSize, SolutionSupport, SolutionSupports, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, SubmissionIndicesOf, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorIndexCompact, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196, ValidatorPrefsWithBlocked, ValidatorPrefsWithCommission, VoteWeight, Voter } from '@polkadot/types/interfaces/staking'; +import type { ActiveEraInfo, CompactAssignments, CompactAssignmentsTo257, CompactAssignmentsTo265, CompactAssignmentsWith16, CompactAssignmentsWith24, CompactScore, CompactScoreCompact, ElectionCompute, ElectionPhase, ElectionResult, ElectionScore, ElectionSize, ElectionStatus, EraIndex, EraPoints, EraRewardPoints, EraRewards, Exposure, ExtendedBalance, Forcing, IndividualExposure, KeyType, MomentOf, Nominations, NominatorIndex, NominatorIndexCompact, OffchainAccuracy, OffchainAccuracyCompact, PhragmenScore, Points, RawSolution, RawSolutionTo265, RawSolutionWith16, RawSolutionWith24, ReadySolution, RewardDestination, RewardPoint, RoundSnapshot, SeatHolder, SignedSubmission, SignedSubmissionOf, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SolutionOrSnapshotSize, SolutionSupport, SolutionSupports, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, SubmissionIndicesOf, Supports, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorIndexCompact, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196, ValidatorPrefsWithBlocked, ValidatorPrefsWithCommission, VoteWeight, Voter } from '@polkadot/types/interfaces/staking'; import type { ApiId, BlockTrace, BlockTraceEvent, BlockTraceEventData, BlockTraceSpan, KeyValueOption, ReadProof, RuntimeVersion, RuntimeVersionApi, RuntimeVersionPartial, StorageChangeSet, TraceBlockResponse, TraceError } from '@polkadot/types/interfaces/state'; import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support'; import type { AccountInfo, AccountInfoWithDualRefCount, AccountInfoWithProviders, AccountInfoWithRefCount, AccountInfoWithRefCountU8, AccountInfoWithTripleRefCount, ApplyExtrinsicResult, ArithmeticError, BlockLength, BlockWeights, ChainProperties, ChainType, ConsumedWeight, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, DispatchResult, DispatchResultOf, DispatchResultTo198, Event, EventId, EventIndex, EventRecord, Health, InvalidTransaction, Key, LastRuntimeUpgradeInfo, NetworkState, NetworkStatePeerset, NetworkStatePeersetInfo, NodeRole, NotConnectedPeer, Peer, PeerEndpoint, PeerEndpointAddr, PeerInfo, PeerPing, PerDispatchClassU32, PerDispatchClassWeight, PerDispatchClassWeightsPerClass, Phase, RawOrigin, RefCount, RefCountTo259, SyncState, SystemOrigin, TokenError, TransactionValidityError, UnknownTransaction, WeightPerClass } from '@polkadot/types/interfaces/system'; @@ -920,6 +920,7 @@ declare module '@polkadot/types/types/registry' { 'Option': Option; 'Option': Option; 'Option': Option; + 'Option': Option; 'Option': Option; 'Option': Option; 'Option': Option; @@ -1802,6 +1803,7 @@ declare module '@polkadot/types/types/registry' { 'Vec': Vec; 'Vec': Vec; 'Vec': Vec; + 'Vec': Vec; 'Vec': Vec; 'Vec': Vec; 'Vec': Vec; @@ -2684,6 +2686,7 @@ declare module '@polkadot/types/types/registry' { StrikeCount: StrikeCount; SubId: SubId; SubmissionIndicesOf: SubmissionIndicesOf; + Supports: Supports; SyncState: SyncState; SystemInherentData: SystemInherentData; SystemOrigin: SystemOrigin; diff --git a/packages/types/src/interfaces/staking/types.ts b/packages/types/src/interfaces/staking/types.ts index 00e255fdb3..f6d42a6378 100644 --- a/packages/types/src/interfaces/staking/types.ts +++ b/packages/types/src/interfaces/staking/types.ts @@ -345,6 +345,9 @@ export interface StakingLedgerTo240 extends Struct { /** @name SubmissionIndicesOf */ export interface SubmissionIndicesOf extends BTreeMap {} +/** @name Supports */ +export interface Supports extends SolutionSupports {} + /** @name UnappliedSlash */ export interface UnappliedSlash extends Struct { readonly validator: AccountId; diff --git a/packages/types/src/packageInfo.ts b/packages/types/src/packageInfo.ts index 12db664468..687ac47cf0 100644 --- a/packages/types/src/packageInfo.ts +++ b/packages/types/src/packageInfo.ts @@ -3,4 +3,4 @@ // Auto-generated by @polkadot/dev, do not edit -export const packageInfo = { name: '@polkadot/types', version: '4.17.2-19' }; +export const packageInfo = { name: '@polkadot/types', version: '4.17.2-20' }; diff --git a/yarn.lock b/yarn.lock index 0c4cd0c1a7..f8f1a31968 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1867,40 +1867,40 @@ __metadata: resolution: "@polkadot/api-contract@workspace:packages/api-contract" dependencies: "@babel/runtime": ^7.14.6 - "@polkadot/api": 4.17.2-19 - "@polkadot/types": 4.17.2-19 + "@polkadot/api": 4.17.2-20 + "@polkadot/types": 4.17.2-20 "@polkadot/util": ^6.11.2-16 rxjs: ^7.2.0 languageName: unknown linkType: soft -"@polkadot/api-derive@4.17.2-19, @polkadot/api-derive@workspace:packages/api-derive": +"@polkadot/api-derive@4.17.2-20, @polkadot/api-derive@workspace:packages/api-derive": version: 0.0.0-use.local resolution: "@polkadot/api-derive@workspace:packages/api-derive" dependencies: "@babel/runtime": ^7.14.6 - "@polkadot/api": 4.17.2-19 + "@polkadot/api": 4.17.2-20 "@polkadot/keyring": ^6.11.2-16 - "@polkadot/rpc-core": 4.17.2-19 - "@polkadot/rpc-provider": 4.17.2-19 - "@polkadot/types": 4.17.2-19 + "@polkadot/rpc-core": 4.17.2-20 + "@polkadot/rpc-provider": 4.17.2-20 + "@polkadot/types": 4.17.2-20 "@polkadot/util": ^6.11.2-16 "@polkadot/util-crypto": ^6.11.2-16 rxjs: ^7.2.0 languageName: unknown linkType: soft -"@polkadot/api@4.17.2-19, @polkadot/api@workspace:packages/api": +"@polkadot/api@4.17.2-20, @polkadot/api@workspace:packages/api": version: 0.0.0-use.local resolution: "@polkadot/api@workspace:packages/api" dependencies: "@babel/runtime": ^7.14.6 - "@polkadot/api-derive": 4.17.2-19 + "@polkadot/api-derive": 4.17.2-20 "@polkadot/keyring": ^6.11.2-16 - "@polkadot/rpc-core": 4.17.2-19 - "@polkadot/rpc-provider": 4.17.2-19 - "@polkadot/types": 4.17.2-19 - "@polkadot/types-known": 4.17.2-19 + "@polkadot/rpc-core": 4.17.2-20 + "@polkadot/rpc-provider": 4.17.2-20 + "@polkadot/types": 4.17.2-20 + "@polkadot/types-known": 4.17.2-20 "@polkadot/util": ^6.11.2-16 "@polkadot/util-crypto": ^6.11.2-16 eventemitter3: ^4.0.7 @@ -2024,26 +2024,26 @@ __metadata: languageName: node linkType: hard -"@polkadot/rpc-core@4.17.2-19, @polkadot/rpc-core@workspace:packages/rpc-core": +"@polkadot/rpc-core@4.17.2-20, @polkadot/rpc-core@workspace:packages/rpc-core": version: 0.0.0-use.local resolution: "@polkadot/rpc-core@workspace:packages/rpc-core" dependencies: "@babel/runtime": ^7.14.6 "@polkadot/keyring": ^6.11.2-16 - "@polkadot/rpc-provider": 4.17.2-19 - "@polkadot/types": 4.17.2-19 + "@polkadot/rpc-provider": 4.17.2-20 + "@polkadot/types": 4.17.2-20 "@polkadot/util": ^6.11.2-16 rxjs: ^7.2.0 languageName: unknown linkType: soft -"@polkadot/rpc-provider@4.17.2-19, @polkadot/rpc-provider@workspace:packages/rpc-provider": +"@polkadot/rpc-provider@4.17.2-20, @polkadot/rpc-provider@workspace:packages/rpc-provider": version: 0.0.0-use.local resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider" dependencies: "@babel/runtime": ^7.14.6 "@polkadot/keyring": ^6.11.2-16 - "@polkadot/types": 4.17.2-19 + "@polkadot/types": 4.17.2-20 "@polkadot/util": ^6.11.2-16 "@polkadot/util-crypto": ^6.11.2-16 "@polkadot/x-fetch": ^6.11.2-16 @@ -2071,9 +2071,9 @@ __metadata: "@babel/core": ^7.14.6 "@babel/register": ^7.14.5 "@babel/runtime": ^7.14.6 - "@polkadot/api": 4.17.2-19 - "@polkadot/rpc-provider": 4.17.2-19 - "@polkadot/types": 4.17.2-19 + "@polkadot/api": 4.17.2-20 + "@polkadot/rpc-provider": 4.17.2-20 + "@polkadot/types": 4.17.2-20 "@polkadot/util": ^6.11.2-16 "@types/websocket": ^1.0.3 "@types/yargs": ^17.0.2 @@ -2089,18 +2089,18 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/types-known@4.17.2-19, @polkadot/types-known@workspace:packages/types-known": +"@polkadot/types-known@4.17.2-20, @polkadot/types-known@workspace:packages/types-known": version: 0.0.0-use.local resolution: "@polkadot/types-known@workspace:packages/types-known" dependencies: "@babel/runtime": ^7.14.6 "@polkadot/networks": ^6.11.2-16 - "@polkadot/types": 4.17.2-19 + "@polkadot/types": 4.17.2-20 "@polkadot/util": ^6.11.2-16 languageName: unknown linkType: soft -"@polkadot/types@4.17.2-19, @polkadot/types@workspace:packages/types": +"@polkadot/types@4.17.2-20, @polkadot/types@workspace:packages/types": version: 0.0.0-use.local resolution: "@polkadot/types@workspace:packages/types" dependencies: