diff --git a/package.json b/package.json index 51cf1ecd27..6a85318886 100644 --- a/package.json +++ b/package.json @@ -35,5 +35,5 @@ "@types/jest": "^26.0.24", "copyfiles": "^2.4.1" }, - "version": "5.2.2-8" + "version": "5.2.2-9" } diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index d02426df00..20dfd9b837 100644 --- a/packages/api-contract/package.json +++ b/packages/api-contract/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-contract", - "version": "5.2.2-8", + "version": "5.2.2-9", "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.8", - "@polkadot/api": "5.2.2-8", - "@polkadot/types": "5.2.2-8", + "@polkadot/api": "5.2.2-9", + "@polkadot/types": "5.2.2-9", "@polkadot/util": "^7.0.3", "rxjs": "^7.2.0" } diff --git a/packages/api-contract/src/packageInfo.ts b/packages/api-contract/src/packageInfo.ts index 11afc1cc95..c841ebc83c 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: '5.2.2-8' }; +export const packageInfo = { name: '@polkadot/api-contract', version: '5.2.2-9' }; diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index 996e12259f..0401193e68 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "5.2.2-8", + "version": "5.2.2-9", "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.8", - "@polkadot/api": "5.2.2-8", - "@polkadot/rpc-core": "5.2.2-8", - "@polkadot/types": "5.2.2-8", + "@polkadot/api": "5.2.2-9", + "@polkadot/rpc-core": "5.2.2-9", + "@polkadot/types": "5.2.2-9", "@polkadot/util": "^7.0.3", "@polkadot/util-crypto": "^7.0.3", "rxjs": "^7.2.0" }, "devDependencies": { "@polkadot/keyring": "^7.0.3", - "@polkadot/rpc-provider": "5.2.2-8" + "@polkadot/rpc-provider": "5.2.2-9" } } diff --git a/packages/api-derive/src/packageInfo.ts b/packages/api-derive/src/packageInfo.ts index 54c489450f..f153460608 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: '5.2.2-8' }; +export const packageInfo = { name: '@polkadot/api-derive', version: '5.2.2-9' }; diff --git a/packages/api/package.json b/packages/api/package.json index c68434db65..c66b64c4dd 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "5.2.2-8", + "version": "5.2.2-9", "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.8", - "@polkadot/api-derive": "5.2.2-8", + "@polkadot/api-derive": "5.2.2-9", "@polkadot/keyring": "^7.0.3", - "@polkadot/rpc-core": "5.2.2-8", - "@polkadot/rpc-provider": "5.2.2-8", - "@polkadot/types": "5.2.2-8", - "@polkadot/types-known": "5.2.2-8", + "@polkadot/rpc-core": "5.2.2-9", + "@polkadot/rpc-provider": "5.2.2-9", + "@polkadot/types": "5.2.2-9", + "@polkadot/types-known": "5.2.2-9", "@polkadot/util": "^7.0.3", "@polkadot/util-crypto": "^7.0.3", "eventemitter3": "^4.0.7", diff --git a/packages/api/src/augment/consts.ts b/packages/api/src/augment/consts.ts index ad9b77d6a2..f6ec5924ef 100644 --- a/packages/api/src/augment/consts.ts +++ b/packages/api/src/augment/consts.ts @@ -1,19 +1,59 @@ // Auto-generated via `yarn polkadot-types-from-chain`, do not edit /* eslint-disable */ -import type { Vec, u16, u32, u64 } from '@polkadot/types'; +import type { Vec, bool, u16, u32, u64 } from '@polkadot/types'; import type { Codec } from '@polkadot/types/types'; import type { Schedule } from '@polkadot/types/interfaces/contracts'; -import type { Balance, BalanceOf, BlockNumber, LockIdentifier, Moment, PalletId, Perbill, Percent, Permill, RuntimeDbWeight, Weight } from '@polkadot/types/interfaces/runtime'; +import type { Balance, BalanceOf, BlockNumber, LockIdentifier, Moment, PalletId, Perbill, Percent, Permill, RuntimeDbWeight, TransactionPriority, Weight } from '@polkadot/types/interfaces/runtime'; import type { SessionIndex } from '@polkadot/types/interfaces/session'; import type { EraIndex } from '@polkadot/types/interfaces/staking'; import type { RuntimeVersion } from '@polkadot/types/interfaces/state'; import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support'; import type { BlockLength, BlockWeights } from '@polkadot/types/interfaces/system'; +import type { DepositBalanceOf } from '@polkadot/types/interfaces/uniques'; import type { ApiTypes } from '@polkadot/api/types'; declare module '@polkadot/api/types/consts' { export interface AugmentedConsts { + assets: { + /** + * The amount of funds that must be reserved when creating a new approval. + **/ + approvalDeposit: DepositBalanceOf & AugmentedConst; + /** + * The basic amount of funds that must be reserved for an asset. + **/ + assetDeposit: DepositBalanceOf & AugmentedConst; + /** + * The basic amount of funds that must be reserved when adding metadata to your asset. + **/ + metadataDepositBase: DepositBalanceOf & AugmentedConst; + /** + * The additional funds that must be reserved for the number of bytes you store in your + * metadata. + **/ + metadataDepositPerByte: DepositBalanceOf & AugmentedConst; + /** + * The maximum length of a name or symbol stored on-chain. + **/ + stringLimit: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + authorship: { + /** + * The number of blocks back we should accept uncles. + * This means that we will deal with uncle-parents that are + * `UncleGenerations + 1` before `now`. + **/ + uncleGenerations: BlockNumber & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; babe: { /** * The amount of time, in slots, that each epoch should last. @@ -39,6 +79,15 @@ declare module '@polkadot/api/types/consts' { * The minimum amount required to keep an account open. **/ existentialDeposit: Balance & AugmentedConst; + /** + * The maximum number of locks that should exist on an account. + * Not strictly enforced, but used for weight estimation. + **/ + maxLocks: u32 & AugmentedConst; + /** + * The maximum number of named reserves that can exist on an account. + **/ + maxReserves: u32 & AugmentedConst; /** * Generic const **/ @@ -163,10 +212,20 @@ declare module '@polkadot/api/types/consts' { * Minimum voting period allowed for a fast-track referendum. **/ fastTrackVotingPeriod: BlockNumber & AugmentedConst; + /** + * Indicator for whether an emergency origin is even allowed to happen. Some chains may want + * to set this permanently to `false`, others may want to condition it on things such as + * an upgrade having happened recently. + **/ + instantAllowed: bool & AugmentedConst; /** * How often (in blocks) new public referenda are launched. **/ launchPeriod: BlockNumber & AugmentedConst; + /** + * The maximum number of public proposals that can exist at any time. + **/ + maxProposals: u32 & AugmentedConst; /** * The maximum number of votes for an account. * @@ -192,6 +251,29 @@ declare module '@polkadot/api/types/consts' { [key: string]: Codec; }; electionProviderMultiPhase: { + /** + * Maximum number of iteration of balancing that will be executed in the embedded miner of + * the pallet. + **/ + minerMaxIterations: u32 & AugmentedConst; + /** + * Maximum length (bytes) that the mined solution should consume. + * + * The miner will ensure that the total length of the unsigned solution will not exceed + * this value. + **/ + minerMaxLength: u32 & AugmentedConst; + /** + * Maximum weight that the miner should consume. + * + * The miner will ensure that the total weight of the unsigned solution will not exceed + * this value, based on [`WeightInfo::submit_unsigned`]. + **/ + minerMaxWeight: Weight & AugmentedConst; + /** + * The priority of the unsigned transaction submitted in the unsigned-phase + **/ + minerTxPriority: TransactionPriority & AugmentedConst; /** * The repeat threshold of the offchain worker. * @@ -295,6 +377,11 @@ declare module '@polkadot/api/types/consts' { * Must be no greater than `MaxQueueLen`. **/ fifoQueueLen: u32 & AugmentedConst; + /** + * The issuance to ignore. This is subtracted from the `Currency`'s `total_issuance` to get + * the issuance by which we inflate or deflate the gilt. + **/ + ignoredIssuance: BalanceOf & AugmentedConst; /** * The number of blocks between consecutive attempts to issue more gilts in an effort to * get to the target amount to be frozen. @@ -371,6 +458,19 @@ declare module '@polkadot/api/types/consts' { **/ [key: string]: Codec; }; + imOnline: { + /** + * A configuration for base priority of unsigned transactions. + * + * This is exposed so that it can be tuned for particular runtime, when + * multiple pallets send unsigned transactions. + **/ + unsignedPriority: TransactionPriority & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; indices: { /** * The deposit needed for reserving an index. @@ -386,6 +486,12 @@ declare module '@polkadot/api/types/consts' { * The max number of calls available in a single lottery. **/ maxCalls: u32 & AugmentedConst; + /** + * Number of time we should try to generate a random number that has no modulo bias. + * The larger this number, the more potential computation is used for picking the winner, + * but also the more likely that the chosen winner is done fairly. + **/ + maxGenerateRandom: u32 & AugmentedConst; /** * The Lottery's pallet id **/ @@ -495,6 +601,22 @@ declare module '@polkadot/api/types/consts' { **/ [key: string]: Codec; }; + scheduler: { + /** + * The maximum weight that may be scheduled per block for any dispatchables of less priority + * than `schedule::HARD_DEADLINE`. + **/ + maximumWeight: Weight & AugmentedConst; + /** + * The maximum number of scheduled calls in the queue for a single block. + * Not strictly enforced, but used for weight estimation. + **/ + maxScheduledPerBlock: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; society: { /** * The minimum amount of a deposit required for a bid to be made. @@ -657,7 +779,11 @@ declare module '@polkadot/api/types/consts' { **/ burn: Permill & AugmentedConst; /** - * The treasury's module id, used for deriving its sovereign account ID. + * The maximum number of approvals that can wait in the spending queue. + **/ + maxApprovals: u32 & AugmentedConst; + /** + * The treasury's pallet id, used for deriving its sovereign account ID. **/ palletId: PalletId & AugmentedConst; /** @@ -678,6 +804,45 @@ declare module '@polkadot/api/types/consts' { **/ [key: string]: Codec; }; + uniques: { + /** + * The basic amount of funds that must be reserved when adding an attribute to an asset. + **/ + attributeDepositBase: DepositBalanceOf & AugmentedConst; + /** + * The basic amount of funds that must be reserved for an asset class. + **/ + classDeposit: DepositBalanceOf & AugmentedConst; + /** + * The additional funds that must be reserved for the number of bytes store in metadata, + * either "normal" metadata or attribute metadata. + **/ + depositPerByte: DepositBalanceOf & AugmentedConst; + /** + * The basic amount of funds that must be reserved for an asset instance. + **/ + instanceDeposit: DepositBalanceOf & AugmentedConst; + /** + * The maximum length of an attribute key. + **/ + keyLimit: u32 & AugmentedConst; + /** + * The basic amount of funds that must be reserved when adding metadata to your asset. + **/ + metadataDepositBase: DepositBalanceOf & AugmentedConst; + /** + * The maximum length of data stored on-chain. + **/ + stringLimit: u32 & AugmentedConst; + /** + * The maximum length of an attribute value. + **/ + valueLimit: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; vesting: { /** * The minimum amount transferred to call `vested_transfer`. diff --git a/packages/api/src/augment/events.ts b/packages/api/src/augment/events.ts index bf7327f7ef..89e1eba9b5 100644 --- a/packages/api/src/augment/events.ts +++ b/packages/api/src/augment/events.ts @@ -314,9 +314,9 @@ declare module '@polkadot/api/types/events' { **/ Delegated: AugmentedEvent; /** - * A proposal has been enacted. \[ref_index, is_ok\] + * A proposal has been enacted. \[ref_index, result\] **/ - Executed: AugmentedEvent; + Executed: AugmentedEvent; /** * An external proposal has been tabled. **/ @@ -819,7 +819,7 @@ declare module '@polkadot/api/types/events' { * the remainder from the maximum amount of reward. * \[era_index, validator_payout, remainder\] **/ - EraPayout: AugmentedEvent; + EraPaid: AugmentedEvent; /** * A nominator has been kicked from a validator. \[nominator, stash\] **/ @@ -830,18 +830,22 @@ declare module '@polkadot/api/types/events' { **/ OldSlashingReportDiscarded: AugmentedEvent; /** - * The staker has been rewarded by this amount. \[stash, amount\] + * The stakers' rewards are getting paid. \[era_index, validator_stash\] **/ - Reward: AugmentedEvent; + PayoutStarted: AugmentedEvent; + /** + * The nominator has been rewarded by this amount. \[stash, amount\] + **/ + Rewarded: AugmentedEvent; /** * One validator (and its nominators) has been slashed by the given amount. * \[validator, amount\] **/ - Slash: AugmentedEvent; + Slashed: AugmentedEvent; /** * A new set of stakers was elected. **/ - StakingElection: AugmentedEvent; + StakersElected: AugmentedEvent; /** * The election failed. No new era is planned. **/ @@ -1172,6 +1176,10 @@ declare module '@polkadot/api/types/events' { * well as the error. \[index, error\] **/ BatchInterrupted: AugmentedEvent; + /** + * A single item within a Batch of dispatches has completed with no error. + **/ + ItemCompleted: AugmentedEvent; /** * Generic event **/ diff --git a/packages/api/src/augment/query.ts b/packages/api/src/augment/query.ts index 81ae824dd1..08ca83ba2f 100644 --- a/packages/api/src/augment/query.ts +++ b/packages/api/src/augment/query.ts @@ -939,7 +939,7 @@ declare module '@polkadot/api/types/storage' { /** * The last planned session scheduled by the session pallet. * - * This is basically in sync with the call to [`SessionManager::new_session`]. + * This is basically in sync with the call to [`pallet_session::SessionManager::new_session`]. **/ currentPlannedSession: AugmentedQuery Observable, []> & QueryableStorageEntry; /** diff --git a/packages/api/src/augment/tx.ts b/packages/api/src/augment/tx.ts index e5d0785530..0ae0c13950 100644 --- a/packages/api/src/augment/tx.ts +++ b/packages/api/src/augment/tx.ts @@ -1352,8 +1352,9 @@ declare module '@polkadot/api/types/submittable' { * origin is removed as a runner-up. * - `origin` is a current member. In this case, the deposit is unreserved and origin is * removed as a member, consequently not being a candidate for the next round anymore. - * Similar to [`remove_members`], if replacement runners exists, they are immediately - * used. If the prime is renouncing, then no prime will exist until the next round. + * Similar to [`remove_member`](Self::remove_member), if replacement runners exists, + * they are immediately used. If the prime is renouncing, then no prime will exist until + * the next round. * * The dispatch origin of this call must be signed, and have one of the above roles. * @@ -2556,7 +2557,7 @@ declare module '@polkadot/api/types/submittable' { * Schedule a named task after a delay. * * # - * Same as [`schedule_named`]. + * Same as [`schedule_named`](Self::schedule_named). * # **/ scheduleNamedAfter: AugmentedSubmittable<(id: Bytes | string | Uint8Array, after: BlockNumber | AnyNumber | Uint8Array, maybePeriodic: Option | null | object | string | Uint8Array, priority: Priority | AnyNumber | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic, [Bytes, BlockNumber, Option, Priority, Call]>; @@ -2954,8 +2955,8 @@ declare module '@polkadot/api/types/submittable' { * 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. + * Unlike [`bond`](Self::bond) or [`unbond`](Self::unbond) this function does not impose any limitation + * on the amount that can be added. * * Emits `Bonded`. * @@ -3017,7 +3018,6 @@ declare module '@polkadot/api/types/submittable' { * * This can be helpful if bond requirements are updated, and we need to remove old users * who do not satisfy these requirements. - * **/ chillOther: AugmentedSubmittable<(controller: AccountId | string | Uint8Array) => SubmittableExtrinsic, [AccountId]>; /** @@ -3093,7 +3093,7 @@ declare module '@polkadot/api/types/submittable' { * The dispatch origin must be Root. * * # - * Same as [`set_validator_count`]. + * Same as [`Self::set_validator_count`]. * # **/ increaseValidatorCount: AugmentedSubmittable<(additional: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; @@ -3185,7 +3185,7 @@ declare module '@polkadot/api/types/submittable' { * The dispatch origin must be Root. * * # - * Same as [`set_validator_count`]. + * Same as [`Self::set_validator_count`]. * # **/ scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Percent]>; diff --git a/packages/api/src/packageInfo.ts b/packages/api/src/packageInfo.ts index ddb375309c..f48dd2b51c 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: '5.2.2-8' }; +export const packageInfo = { name: '@polkadot/api', version: '5.2.2-9' }; diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index fcf95136bf..3e0b6a86e6 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "5.2.2-8", + "version": "5.2.2-9", "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.8", - "@polkadot/rpc-provider": "5.2.2-8", - "@polkadot/types": "5.2.2-8", + "@polkadot/rpc-provider": "5.2.2-9", + "@polkadot/types": "5.2.2-9", "@polkadot/util": "^7.0.3", "rxjs": "^7.2.0" }, diff --git a/packages/rpc-core/src/packageInfo.ts b/packages/rpc-core/src/packageInfo.ts index 8b5182d3d5..de409bb166 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: '5.2.2-8' }; +export const packageInfo = { name: '@polkadot/rpc-core', version: '5.2.2-9' }; diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index b035687ca3..e360243bd7 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "5.2.2-8", + "version": "5.2.2-9", "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.8", - "@polkadot/types": "5.2.2-8", + "@polkadot/types": "5.2.2-9", "@polkadot/util": "^7.0.3", "@polkadot/util-crypto": "^7.0.3", "@polkadot/x-fetch": "^7.0.3", @@ -30,7 +30,7 @@ }, "devDependencies": { "@polkadot/keyring": "^7.0.3", - "@polkadot/types": "5.2.2-8", + "@polkadot/types": "5.2.2-9", "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 cd57ce84d6..cc2e7f881a 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: '5.2.2-8' }; +export const packageInfo = { name: '@polkadot/rpc-provider', version: '5.2.2-9' }; diff --git a/packages/typegen/package.json b/packages/typegen/package.json index a8f1d17792..0e0fbc3238 100644 --- a/packages/typegen/package.json +++ b/packages/typegen/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/typegen", - "version": "5.2.2-8", + "version": "5.2.2-9", "type": "module", "description": "Type generation scripts", "main": "index.js", @@ -29,9 +29,9 @@ "@babel/core": "^7.14.8", "@babel/register": "^7.14.5", "@babel/runtime": "^7.14.8", - "@polkadot/api": "5.2.2-8", - "@polkadot/rpc-provider": "5.2.2-8", - "@polkadot/types": "5.2.2-8", + "@polkadot/api": "5.2.2-9", + "@polkadot/rpc-provider": "5.2.2-9", + "@polkadot/types": "5.2.2-9", "@polkadot/util": "^7.0.3", "handlebars": "^4.7.7", "websocket": "^1.0.34", diff --git a/packages/typegen/src/packageInfo.ts b/packages/typegen/src/packageInfo.ts index 184891011b..c53bfec891 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: '5.2.2-8' }; +export const packageInfo = { name: '@polkadot/typegen', version: '5.2.2-9' }; diff --git a/packages/types-known/package.json b/packages/types-known/package.json index fcaa16fcb5..d3e1559d50 100644 --- a/packages/types-known/package.json +++ b/packages/types-known/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types-known", - "version": "5.2.2-8", + "version": "5.2.2-9", "type": "module", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", @@ -21,7 +21,7 @@ "dependencies": { "@babel/runtime": "^7.14.8", "@polkadot/networks": "^7.0.3", - "@polkadot/types": "5.2.2-8", + "@polkadot/types": "5.2.2-9", "@polkadot/util": "^7.0.3" } } diff --git a/packages/types-known/src/packageInfo.ts b/packages/types-known/src/packageInfo.ts index c3323b5120..adbaabca1d 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: '5.2.2-8' }; +export const packageInfo = { name: '@polkadot/types-known', version: '5.2.2-9' }; diff --git a/packages/types/package.json b/packages/types/package.json index 0bf2e6cb26..83940b1630 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "5.2.2-8", + "version": "5.2.2-9", "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 2cb0e91763..cd420f3283 100644 --- a/packages/types/src/augment/registry.ts +++ b/packages/types/src/augment/registry.ts @@ -48,7 +48,7 @@ import type { Si0Field, Si0LookupTypeId, Si0Path, Si0Type, Si0TypeDef, Si0TypeDe 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, Supports, 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, SignedSubmissionTo276, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SolutionOrSnapshotSize, SolutionSupport, SolutionSupports, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, SubmissionIndicesOf, Supports, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorIndexCompact, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196, ValidatorPrefsWithBlocked, ValidatorPrefsWithCommission, VoteWeight, Voter } from '@polkadot/types/interfaces/staking'; import type { ApiId, BlockTrace, BlockTraceEvent, BlockTraceEventData, BlockTraceSpan, KeyValueOption, 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'; @@ -882,6 +882,7 @@ declare module '@polkadot/types/types/registry' { 'Option': Option; 'Option': Option; 'Option': Option; + 'Option': Option; 'Option': Option; 'Option': Option; 'Option': Option; @@ -1805,6 +1806,7 @@ declare module '@polkadot/types/types/registry' { 'Vec': Vec; 'Vec': Vec; 'Vec': Vec; + 'Vec': Vec; 'Vec': Vec; 'Vec': Vec; 'Vec': Vec; @@ -2728,6 +2730,7 @@ declare module '@polkadot/types/types/registry' { SignedExtensionMetadataV14: SignedExtensionMetadataV14; SignedSubmission: SignedSubmission; SignedSubmissionOf: SignedSubmissionOf; + SignedSubmissionTo276: SignedSubmissionTo276; SignerPayload: SignerPayload; SigningContext: SigningContext; SiLookupTypeId: SiLookupTypeId; diff --git a/packages/types/src/interfaces/staking/types.ts b/packages/types/src/interfaces/staking/types.ts index f6d42a6378..ef5f6443eb 100644 --- a/packages/types/src/interfaces/staking/types.ts +++ b/packages/types/src/interfaces/staking/types.ts @@ -265,11 +265,19 @@ export interface SignedSubmission extends Struct { readonly who: AccountId; readonly deposit: Balance; readonly solution: RawSolution; + readonly reward: Balance; } /** @name SignedSubmissionOf */ export interface SignedSubmissionOf extends SignedSubmission {} +/** @name SignedSubmissionTo276 */ +export interface SignedSubmissionTo276 extends Struct { + readonly who: AccountId; + readonly deposit: Balance; + readonly solution: RawSolution; +} + /** @name SlashingSpans */ export interface SlashingSpans extends Struct { readonly spanIndex: SpanIndex; diff --git a/packages/types/src/packageInfo.ts b/packages/types/src/packageInfo.ts index b82f06770e..a96052f6f3 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: '5.2.2-8' }; +export const packageInfo = { name: '@polkadot/types', version: '5.2.2-9' }; diff --git a/yarn.lock b/yarn.lock index fb756c2ab0..1b179a00b9 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.8 - "@polkadot/api": 5.2.2-8 - "@polkadot/types": 5.2.2-8 + "@polkadot/api": 5.2.2-9 + "@polkadot/types": 5.2.2-9 "@polkadot/util": ^7.0.3 rxjs: ^7.2.0 languageName: unknown linkType: soft -"@polkadot/api-derive@5.2.2-8, @polkadot/api-derive@workspace:packages/api-derive": +"@polkadot/api-derive@5.2.2-9, @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.8 - "@polkadot/api": 5.2.2-8 + "@polkadot/api": 5.2.2-9 "@polkadot/keyring": ^7.0.3 - "@polkadot/rpc-core": 5.2.2-8 - "@polkadot/rpc-provider": 5.2.2-8 - "@polkadot/types": 5.2.2-8 + "@polkadot/rpc-core": 5.2.2-9 + "@polkadot/rpc-provider": 5.2.2-9 + "@polkadot/types": 5.2.2-9 "@polkadot/util": ^7.0.3 "@polkadot/util-crypto": ^7.0.3 rxjs: ^7.2.0 languageName: unknown linkType: soft -"@polkadot/api@5.2.2-8, @polkadot/api@workspace:packages/api": +"@polkadot/api@5.2.2-9, @polkadot/api@workspace:packages/api": version: 0.0.0-use.local resolution: "@polkadot/api@workspace:packages/api" dependencies: "@babel/runtime": ^7.14.8 - "@polkadot/api-derive": 5.2.2-8 + "@polkadot/api-derive": 5.2.2-9 "@polkadot/keyring": ^7.0.3 - "@polkadot/rpc-core": 5.2.2-8 - "@polkadot/rpc-provider": 5.2.2-8 - "@polkadot/types": 5.2.2-8 - "@polkadot/types-known": 5.2.2-8 + "@polkadot/rpc-core": 5.2.2-9 + "@polkadot/rpc-provider": 5.2.2-9 + "@polkadot/types": 5.2.2-9 + "@polkadot/types-known": 5.2.2-9 "@polkadot/util": ^7.0.3 "@polkadot/util-crypto": ^7.0.3 eventemitter3: ^4.0.7 @@ -2024,26 +2024,26 @@ __metadata: languageName: node linkType: hard -"@polkadot/rpc-core@5.2.2-8, @polkadot/rpc-core@workspace:packages/rpc-core": +"@polkadot/rpc-core@5.2.2-9, @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.8 "@polkadot/keyring": ^7.0.3 - "@polkadot/rpc-provider": 5.2.2-8 - "@polkadot/types": 5.2.2-8 + "@polkadot/rpc-provider": 5.2.2-9 + "@polkadot/types": 5.2.2-9 "@polkadot/util": ^7.0.3 rxjs: ^7.2.0 languageName: unknown linkType: soft -"@polkadot/rpc-provider@5.2.2-8, @polkadot/rpc-provider@workspace:packages/rpc-provider": +"@polkadot/rpc-provider@5.2.2-9, @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.8 "@polkadot/keyring": ^7.0.3 - "@polkadot/types": 5.2.2-8 + "@polkadot/types": 5.2.2-9 "@polkadot/util": ^7.0.3 "@polkadot/util-crypto": ^7.0.3 "@polkadot/x-fetch": ^7.0.3 @@ -2071,9 +2071,9 @@ __metadata: "@babel/core": ^7.14.8 "@babel/register": ^7.14.5 "@babel/runtime": ^7.14.8 - "@polkadot/api": 5.2.2-8 - "@polkadot/rpc-provider": 5.2.2-8 - "@polkadot/types": 5.2.2-8 + "@polkadot/api": 5.2.2-9 + "@polkadot/rpc-provider": 5.2.2-9 + "@polkadot/types": 5.2.2-9 "@polkadot/util": ^7.0.3 "@types/websocket": ^1.0.3 "@types/yargs": ^17.0.2 @@ -2089,18 +2089,18 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/types-known@5.2.2-8, @polkadot/types-known@workspace:packages/types-known": +"@polkadot/types-known@5.2.2-9, @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.8 "@polkadot/networks": ^7.0.3 - "@polkadot/types": 5.2.2-8 + "@polkadot/types": 5.2.2-9 "@polkadot/util": ^7.0.3 languageName: unknown linkType: soft -"@polkadot/types@5.2.2-8, @polkadot/types@workspace:packages/types": +"@polkadot/types@5.2.2-9, @polkadot/types@workspace:packages/types": version: 0.0.0-use.local resolution: "@polkadot/types@workspace:packages/types" dependencies: