Update to latest substrate metadata (#3220)
* Update to latest substrate metadata * ExtendedBalance type
This commit is contained in:
@@ -107,12 +107,17 @@ declare module '@polkadot/api/types/consts' {
|
||||
**/
|
||||
depositPerStorageItem: BalanceOf & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum nesting level of a call/instantiate stack. A reasonable default
|
||||
* value is 100.
|
||||
* The maximum length of a contract code in bytes. This limit applies to the instrumented
|
||||
* version of the code. Therefore `instantiate_with_code` can fail even when supplying
|
||||
* a wasm binary below this maximum size.
|
||||
**/
|
||||
maxCodeSize: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum nesting level of a call/instantiate stack.
|
||||
**/
|
||||
maxDepth: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum size of a storage value in bytes. A reasonable default is 16 KiB.
|
||||
* The maximum size of a storage value and event payload in bytes.
|
||||
**/
|
||||
maxValueSize: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -179,6 +184,22 @@ declare module '@polkadot/api/types/consts' {
|
||||
**/
|
||||
votingPeriod: BlockNumber & AugmentedConst<ApiType>;
|
||||
};
|
||||
electionProviderMultiPhase: {
|
||||
[key: string]: Codec;
|
||||
/**
|
||||
* Duration of the signed phase.
|
||||
**/
|
||||
signedPhase: BlockNumber & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The minimum amount of improvement to the solution score that defines a solution as
|
||||
* "better" (in any phase).
|
||||
**/
|
||||
solutionImprovementThreshold: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Duration of the unsigned phase.
|
||||
**/
|
||||
unsignedPhase: BlockNumber & AugmentedConst<ApiType>;
|
||||
};
|
||||
elections: {
|
||||
[key: string]: Codec;
|
||||
candidacyBond: BalanceOf & AugmentedConst<ApiType>;
|
||||
|
||||
@@ -191,7 +191,7 @@ declare module '@polkadot/api/types/errors' {
|
||||
/**
|
||||
* A contract could not be evicted because it has enough balance to pay rent.
|
||||
*
|
||||
* This can be returned from [`Module::claim_surcharge`] because the target
|
||||
* This can be returned from [`Pallet::claim_surcharge`] because the target
|
||||
* contract has enough balance to pay for its rent.
|
||||
**/
|
||||
ContractNotEvictable: AugmentedError<ApiType>;
|
||||
@@ -206,7 +206,7 @@ declare module '@polkadot/api/types/errors' {
|
||||
/**
|
||||
* Removal of a contract failed because the deletion queue is full.
|
||||
*
|
||||
* This can happen when either calling [`Module::claim_surcharge`] or `seal_terminate`.
|
||||
* This can happen when either calling [`Pallet::claim_surcharge`] or `seal_terminate`.
|
||||
* The queue is filled by deleting contracts and emptied by a fixed amount each block.
|
||||
* Trying again during another block is the only way to resolve this issue.
|
||||
**/
|
||||
@@ -499,6 +499,21 @@ declare module '@polkadot/api/types/errors' {
|
||||
**/
|
||||
WrongUpperBound: AugmentedError<ApiType>;
|
||||
};
|
||||
electionProviderMultiPhase: {
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Submission was too early.
|
||||
**/
|
||||
PreDispatchEarlySubmission: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Submission was too weak, score-wise.
|
||||
**/
|
||||
PreDispatchWeakSubmission: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Wrong number of winners presented.
|
||||
**/
|
||||
PreDispatchWrongWinnerCount: AugmentedError<ApiType>;
|
||||
};
|
||||
elections: {
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -691,6 +706,10 @@ declare module '@polkadot/api/types/errors' {
|
||||
* The data to be stored is already stored.
|
||||
**/
|
||||
AlreadyStored: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The maximum weight information provided was too low.
|
||||
**/
|
||||
MaxWeightTooLow: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Threshold must be 2 or greater.
|
||||
**/
|
||||
@@ -731,10 +750,6 @@ declare module '@polkadot/api/types/errors' {
|
||||
* A timepoint was given, yet no multisig operation is underway.
|
||||
**/
|
||||
UnexpectedTimepoint: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The maximum weight information provided was too low.
|
||||
**/
|
||||
WeightTooLow: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A different timepoint was given to the multisig operation that is underway.
|
||||
**/
|
||||
|
||||
@@ -345,6 +345,37 @@ declare module '@polkadot/api/types/events' {
|
||||
**/
|
||||
Vetoed: AugmentedEvent<ApiType, [AccountId, Hash, BlockNumber]>;
|
||||
};
|
||||
electionProviderMultiPhase: {
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
/**
|
||||
* The election has been finalized, with `Some` of the given computation, or else if the
|
||||
* election failed, `None`.
|
||||
**/
|
||||
ElectionFinalized: AugmentedEvent<ApiType, [Option<ElectionCompute>]>;
|
||||
/**
|
||||
* An account has been rewarded for their signed submission being finalized.
|
||||
**/
|
||||
Rewarded: AugmentedEvent<ApiType, [AccountId]>;
|
||||
/**
|
||||
* The signed phase of the given round has started.
|
||||
**/
|
||||
SignedPhaseStarted: AugmentedEvent<ApiType, [u32]>;
|
||||
/**
|
||||
* An account has been slashed for submitting an invalid signed submission.
|
||||
**/
|
||||
Slashed: AugmentedEvent<ApiType, [AccountId]>;
|
||||
/**
|
||||
* A solution was stored with the given compute.
|
||||
*
|
||||
* If the solution is signed, this means that it hasn't yet been processed. If the
|
||||
* solution is unsigned, this means that it has also been processed.
|
||||
**/
|
||||
SolutionStored: AugmentedEvent<ApiType, [ElectionCompute]>;
|
||||
/**
|
||||
* The unsigned phase of the given round has started.
|
||||
**/
|
||||
UnsignedPhaseStarted: AugmentedEvent<ApiType, [u32]>;
|
||||
};
|
||||
elections: {
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
/**
|
||||
|
||||
@@ -23,7 +23,7 @@ import type { AccountId, AccountIndex, AssetId, Balance, BalanceOf, BlockNumber,
|
||||
import type { Scheduled, TaskAddress } from '@polkadot/types/interfaces/scheduler';
|
||||
import type { Keys, SessionIndex } from '@polkadot/types/interfaces/session';
|
||||
import type { Bid, BidKind, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society';
|
||||
import type { ActiveEraInfo, ElectionResult, ElectionScore, ElectionStatus, EraIndex, EraRewardPoints, Exposure, Forcing, Nominations, RewardDestination, SeatHolder, SlashingSpans, SpanIndex, SpanRecord, StakingLedger, UnappliedSlash, ValidatorPrefs, Voter } from '@polkadot/types/interfaces/staking';
|
||||
import type { ActiveEraInfo, ElectionResult, ElectionScore, ElectionStatus, EraIndex, EraRewardPoints, Exposure, Forcing, Nominations, ReadySolution, RewardDestination, RoundSnapshot, SeatHolder, SlashingSpans, SolutionOrSnapshotSize, SpanIndex, SpanRecord, StakingLedger, UnappliedSlash, ValidatorPrefs, Voter } from '@polkadot/types/interfaces/staking';
|
||||
import type { AccountInfo, ConsumedWeight, DigestOf, EventIndex, EventRecord, LastRuntimeUpgradeInfo, Phase } from '@polkadot/types/interfaces/system';
|
||||
import type { Bounty, BountyIndex, OpenTip, TreasuryProposal } from '@polkadot/types/interfaces/treasury';
|
||||
import type { Multiplier } from '@polkadot/types/interfaces/txpayment';
|
||||
@@ -323,6 +323,44 @@ declare module '@polkadot/api/types/storage' {
|
||||
**/
|
||||
votingOf: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<Voting>, [AccountId]> & QueryableStorageEntry<ApiType, [AccountId]>;
|
||||
};
|
||||
electionProviderMultiPhase: {
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
/**
|
||||
* Current phase.
|
||||
**/
|
||||
currentPhase: AugmentedQuery<ApiType, () => Observable<Phase>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Desired number of targets to elect for this round.
|
||||
*
|
||||
* Only exists when [`Snapshot`] is present.
|
||||
**/
|
||||
desiredTargets: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Current best solution, signed or unsigned, queued to be returned upon `elect`.
|
||||
**/
|
||||
queuedSolution: AugmentedQuery<ApiType, () => Observable<Option<ReadySolution>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Internal counter for the number of rounds.
|
||||
*
|
||||
* This is useful for de-duplication of transactions submitted to the pool, and general
|
||||
* diagnostics of the pallet.
|
||||
*
|
||||
* This is merely incremented once per every time that an upstream `elect` is called.
|
||||
**/
|
||||
round: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Snapshot data of the round.
|
||||
*
|
||||
* This is created at the beginning of the signed phase and cleared upon calling `elect`.
|
||||
**/
|
||||
snapshot: AugmentedQuery<ApiType, () => Observable<Option<RoundSnapshot>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The metadata of the [`RoundSnapshot`]
|
||||
*
|
||||
* Only exists when [`Snapshot`] is present.
|
||||
**/
|
||||
snapshotMetadata: AugmentedQuery<ApiType, () => Observable<Option<SolutionOrSnapshotSize>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
};
|
||||
elections: {
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
/**
|
||||
@@ -723,6 +761,12 @@ declare module '@polkadot/api/types/storage' {
|
||||
* set, it might be active or not.
|
||||
**/
|
||||
currentEra: AugmentedQuery<ApiType, () => Observable<Option<EraIndex>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The last planned session scheduled by the session pallet.
|
||||
*
|
||||
* This is basically in sync with the call to [`SessionManager::new_session`].
|
||||
**/
|
||||
currentPlannedSession: AugmentedQuery<ApiType, () => Observable<SessionIndex>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The earliest era for which we have a pending, unapplied slash.
|
||||
**/
|
||||
@@ -730,6 +774,8 @@ declare module '@polkadot/api/types/storage' {
|
||||
/**
|
||||
* Flag to control the execution of the offchain election. When `Open(_)`, we accept
|
||||
* solutions to be submitted.
|
||||
*
|
||||
* TWO_PHASE_NOTE: should be removed once we switch to multi-phase.
|
||||
**/
|
||||
eraElectionStatus: AugmentedQuery<ApiType, () => Observable<ElectionStatus>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
@@ -809,6 +855,8 @@ declare module '@polkadot/api/types/storage' {
|
||||
/**
|
||||
* True if the current **planned** session is final. Note that this does not take era
|
||||
* forcing into account.
|
||||
*
|
||||
* TWO_PHASE_NOTE: should be removed once we switch to multi-phase.
|
||||
**/
|
||||
isCurrentSessionFinal: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
@@ -835,10 +883,14 @@ declare module '@polkadot/api/types/storage' {
|
||||
* The next validator set. At the end of an era, if this is available (potentially from the
|
||||
* result of an offchain worker), it is immediately used. Otherwise, the on-chain election
|
||||
* is executed.
|
||||
*
|
||||
* TWO_PHASE_NOTE: should be removed once we switch to multi-phase.
|
||||
**/
|
||||
queuedElected: AugmentedQuery<ApiType, () => Observable<Option<ElectionResult>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The score of the current [`QueuedElected`].
|
||||
*
|
||||
* TWO_PHASE_NOTE: should be removed once we switch to multi-phase.
|
||||
**/
|
||||
queuedScore: AugmentedQuery<ApiType, () => Observable<Option<ElectionScore>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
@@ -854,11 +906,15 @@ declare module '@polkadot/api/types/storage' {
|
||||
/**
|
||||
* Snapshot of nominators at the beginning of the current election window. This should only
|
||||
* have a value when [`EraElectionStatus`] == `ElectionStatus::Open(_)`.
|
||||
*
|
||||
* TWO_PHASE_NOTE: should be removed once we switch to multi-phase.
|
||||
**/
|
||||
snapshotNominators: AugmentedQuery<ApiType, () => Observable<Option<Vec<AccountId>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Snapshot of validators at the beginning of the current election window. This should only
|
||||
* have a value when [`EraElectionStatus`] == `ElectionStatus::Open(_)`.
|
||||
*
|
||||
* TWO_PHASE_NOTE: should be removed once we switch to multi-phase.
|
||||
**/
|
||||
snapshotValidators: AugmentedQuery<ApiType, () => Observable<Option<Vec<AccountId>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { AnyNumber, ITuple } from '@polkadot/types/types';
|
||||
import type { TAssetBalance } from '@polkadot/types/interfaces/assets';
|
||||
import type { BabeEquivocationProof } from '@polkadot/types/interfaces/babe';
|
||||
import type { MemberCount, ProposalIndex } from '@polkadot/types/interfaces/collective';
|
||||
import type { CodeHash, Gas, Schedule } from '@polkadot/types/interfaces/contracts';
|
||||
import type { CodeHash, Schedule } from '@polkadot/types/interfaces/contracts';
|
||||
import type { AccountVote, Conviction, PropIndex, Proposal, ReferendumIndex } from '@polkadot/types/interfaces/democracy';
|
||||
import type { Renouncing } from '@polkadot/types/interfaces/elections';
|
||||
import type { Extrinsic, Signature } from '@polkadot/types/interfaces/extrinsics';
|
||||
@@ -18,7 +18,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 { CompactAssignments, ElectionScore, ElectionSize, EraIndex, RewardDestination, ValidatorIndex, ValidatorPrefs } from '@polkadot/types/interfaces/staking';
|
||||
import type { CompactAssignments, ElectionScore, ElectionSize, EraIndex, RawSolution, RewardDestination, SolutionOrSnapshotSize, ValidatorIndex, ValidatorPrefs } from '@polkadot/types/interfaces/staking';
|
||||
import type { Key } from '@polkadot/types/interfaces/system';
|
||||
import type { BountyIndex } from '@polkadot/types/interfaces/treasury';
|
||||
import type { Timepoint } from '@polkadot/types/interfaces/utility';
|
||||
@@ -538,7 +538,7 @@ declare module '@polkadot/api/types/submittable' {
|
||||
* * If no account exists and the call value is not less than `existential_deposit`,
|
||||
* a regular account will be created and any value will be transferred.
|
||||
**/
|
||||
call: AugmentedSubmittable<(dest: LookupSource | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<BalanceOf> | AnyNumber | Uint8Array, gasLimit: Compact<Gas> | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource, Compact<BalanceOf>, Compact<Gas>, Bytes]>;
|
||||
call: AugmentedSubmittable<(dest: LookupSource | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<BalanceOf> | AnyNumber | Uint8Array, gasLimit: Compact<Weight> | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource, Compact<BalanceOf>, Compact<Weight>, Bytes]>;
|
||||
/**
|
||||
* Allows block producers to claim a small reward for evicting a contract. If a block
|
||||
* producer fails to do so, a regular users will be allowed to claim the reward.
|
||||
@@ -558,7 +558,7 @@ declare module '@polkadot/api/types/submittable' {
|
||||
* code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
|
||||
* must be supplied.
|
||||
**/
|
||||
instantiate: AugmentedSubmittable<(endowment: Compact<BalanceOf> | AnyNumber | Uint8Array, gasLimit: Compact<Gas> | AnyNumber | Uint8Array, codeHash: CodeHash | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BalanceOf>, Compact<Gas>, CodeHash, Bytes, Bytes]>;
|
||||
instantiate: AugmentedSubmittable<(endowment: Compact<BalanceOf> | AnyNumber | Uint8Array, gasLimit: Compact<Weight> | AnyNumber | Uint8Array, codeHash: CodeHash | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BalanceOf>, Compact<Weight>, CodeHash, Bytes, Bytes]>;
|
||||
/**
|
||||
* Instantiates a new contract from the supplied `code` optionally transferring
|
||||
* some balance.
|
||||
@@ -582,7 +582,7 @@ declare module '@polkadot/api/types/submittable' {
|
||||
* - The `endowment` is transferred to the new account.
|
||||
* - The `deploy` function is executed in the context of the newly-created account.
|
||||
**/
|
||||
instantiateWithCode: AugmentedSubmittable<(endowment: Compact<BalanceOf> | AnyNumber | Uint8Array, gasLimit: Compact<Gas> | AnyNumber | Uint8Array, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BalanceOf>, Compact<Gas>, Bytes, Bytes, Bytes]>;
|
||||
instantiateWithCode: AugmentedSubmittable<(endowment: Compact<BalanceOf> | AnyNumber | Uint8Array, gasLimit: Compact<Weight> | AnyNumber | Uint8Array, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BalanceOf>, Compact<Weight>, Bytes, Bytes, Bytes]>;
|
||||
/**
|
||||
* Updates the schedule for metering contracts.
|
||||
*
|
||||
@@ -1062,6 +1062,26 @@ declare module '@polkadot/api/types/submittable' {
|
||||
**/
|
||||
vote: AugmentedSubmittable<(refIndex: Compact<ReferendumIndex> | AnyNumber | Uint8Array, vote: AccountVote | { Standard: any } | { Split: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<ReferendumIndex>, AccountVote]>;
|
||||
};
|
||||
electionProviderMultiPhase: {
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
/**
|
||||
* Submit a solution for the unsigned phase.
|
||||
*
|
||||
* The dispatch origin fo this call must be __none__.
|
||||
*
|
||||
* This submission is checked on the fly. Moreover, this unsigned solution is only
|
||||
* validated when submitted to the pool from the **local** node. Effectively, this means
|
||||
* that only active validators can submit this transaction when authoring a block (similar
|
||||
* to an inherent).
|
||||
*
|
||||
* To prevent any incorrect solution (and thus wasted time/weight), this transaction will
|
||||
* panic if the solution submitted by the validator is invalid in any way, effectively
|
||||
* putting their authoring reward at risk.
|
||||
*
|
||||
* No deposit or reward is associated with this submission.
|
||||
**/
|
||||
submitUnsigned: AugmentedSubmittable<(solution: RawSolution | { compact?: any; score?: any; round?: any } | string | Uint8Array, witness: SolutionOrSnapshotSize | { voters?: any; targets?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [RawSolution, SolutionOrSnapshotSize]>;
|
||||
};
|
||||
elections: {
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
/**
|
||||
|
||||
@@ -474,7 +474,7 @@
|
||||
{
|
||||
"name": "Version",
|
||||
"type": "RuntimeVersion",
|
||||
"value": "0x106e6f6465387375627374726174652d6e6f64650a000000080100000000000034df6acb689907609b0300000037e397fc7c91f5e40100000040fe3ad401f8959a04000000d2bc9897eed08f1502000000f78b278be53f454c02000000ed99c5acb25eedf502000000cbca25e39f14238702000000687ad44ad37f03c201000000bc9d89904f5b923f0100000068b66ba122c93fa70100000037c8bb1350a9a2a80100000091d5df18b0d2cf5801000000ab3c0572291feb8b0100000002000000",
|
||||
"value": "0x106e6f6465387375627374726174652d6e6f64650a000000090100000000000034df6acb689907609b0300000037e397fc7c91f5e40100000040fe3ad401f8959a04000000d2bc9897eed08f1502000000f78b278be53f454c02000000ed99c5acb25eedf502000000cbca25e39f14238702000000687ad44ad37f03c201000000bc9d89904f5b923f0100000068b66ba122c93fa70100000037c8bb1350a9a2a80100000091d5df18b0d2cf5801000000ab3c0572291feb8b0100000002000000",
|
||||
"documentation": [
|
||||
" Get the chain's current version."
|
||||
]
|
||||
@@ -1697,6 +1697,230 @@
|
||||
"errors": [],
|
||||
"index": 7
|
||||
},
|
||||
{
|
||||
"name": "ElectionProviderMultiPhase",
|
||||
"storage": {
|
||||
"prefix": "ElectionProviderMultiPhase",
|
||||
"items": [
|
||||
{
|
||||
"name": "Round",
|
||||
"modifier": "Default",
|
||||
"type": {
|
||||
"Plain": "u32"
|
||||
},
|
||||
"fallback": "0x01000000",
|
||||
"documentation": [
|
||||
" Internal counter for the number of rounds.",
|
||||
"",
|
||||
" This is useful for de-duplication of transactions submitted to the pool, and general",
|
||||
" diagnostics of the pallet.",
|
||||
"",
|
||||
" This is merely incremented once per every time that an upstream `elect` is called."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "CurrentPhase",
|
||||
"modifier": "Default",
|
||||
"type": {
|
||||
"Plain": "Phase"
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" Current phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "QueuedSolution",
|
||||
"modifier": "Optional",
|
||||
"type": {
|
||||
"Plain": "ReadySolution"
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" Current best solution, signed or unsigned, queued to be returned upon `elect`."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Snapshot",
|
||||
"modifier": "Optional",
|
||||
"type": {
|
||||
"Plain": "RoundSnapshot"
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" Snapshot data of the round.",
|
||||
"",
|
||||
" This is created at the beginning of the signed phase and cleared upon calling `elect`."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "DesiredTargets",
|
||||
"modifier": "Optional",
|
||||
"type": {
|
||||
"Plain": "u32"
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" Desired number of targets to elect for this round.",
|
||||
"",
|
||||
" Only exists when [`Snapshot`] is present."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SnapshotMetadata",
|
||||
"modifier": "Optional",
|
||||
"type": {
|
||||
"Plain": "SolutionOrSnapshotSize"
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" The metadata of the [`RoundSnapshot`]",
|
||||
"",
|
||||
" Only exists when [`Snapshot`] is present."
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"calls": [
|
||||
{
|
||||
"name": "submit_unsigned",
|
||||
"args": [
|
||||
{
|
||||
"name": "solution",
|
||||
"type": "RawSolution"
|
||||
},
|
||||
{
|
||||
"name": "witness",
|
||||
"type": "SolutionOrSnapshotSize"
|
||||
}
|
||||
],
|
||||
"documentation": [
|
||||
" Submit a solution for the unsigned phase.",
|
||||
"",
|
||||
" The dispatch origin fo this call must be __none__.",
|
||||
"",
|
||||
" This submission is checked on the fly. Moreover, this unsigned solution is only",
|
||||
" validated when submitted to the pool from the **local** node. Effectively, this means",
|
||||
" that only active validators can submit this transaction when authoring a block (similar",
|
||||
" to an inherent).",
|
||||
"",
|
||||
" To prevent any incorrect solution (and thus wasted time/weight), this transaction will",
|
||||
" panic if the solution submitted by the validator is invalid in any way, effectively",
|
||||
" putting their authoring reward at risk.",
|
||||
"",
|
||||
" No deposit or reward is associated with this submission."
|
||||
]
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
{
|
||||
"name": "SolutionStored",
|
||||
"args": [
|
||||
"ElectionCompute"
|
||||
],
|
||||
"documentation": [
|
||||
" A solution was stored with the given compute.",
|
||||
"",
|
||||
" If the solution is signed, this means that it hasn't yet been processed. If the",
|
||||
" solution is unsigned, this means that it has also been processed."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ElectionFinalized",
|
||||
"args": [
|
||||
"Option<ElectionCompute>"
|
||||
],
|
||||
"documentation": [
|
||||
" The election has been finalized, with `Some` of the given computation, or else if the",
|
||||
" election failed, `None`."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Rewarded",
|
||||
"args": [
|
||||
"AccountId"
|
||||
],
|
||||
"documentation": [
|
||||
" An account has been rewarded for their signed submission being finalized."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Slashed",
|
||||
"args": [
|
||||
"AccountId"
|
||||
],
|
||||
"documentation": [
|
||||
" An account has been slashed for submitting an invalid signed submission."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SignedPhaseStarted",
|
||||
"args": [
|
||||
"u32"
|
||||
],
|
||||
"documentation": [
|
||||
" The signed phase of the given round has started."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "UnsignedPhaseStarted",
|
||||
"args": [
|
||||
"u32"
|
||||
],
|
||||
"documentation": [
|
||||
" The unsigned phase of the given round has started."
|
||||
]
|
||||
}
|
||||
],
|
||||
"constants": [
|
||||
{
|
||||
"name": "UnsignedPhase",
|
||||
"type": "BlockNumber",
|
||||
"value": "0x32000000",
|
||||
"documentation": [
|
||||
" Duration of the unsigned phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SignedPhase",
|
||||
"type": "BlockNumber",
|
||||
"value": "0x32000000",
|
||||
"documentation": [
|
||||
" Duration of the signed phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SolutionImprovementThreshold",
|
||||
"type": "Perbill",
|
||||
"value": "0x20a10700",
|
||||
"documentation": [
|
||||
" The minimum amount of improvement to the solution score that defines a solution as",
|
||||
" \"better\" (in any phase)."
|
||||
]
|
||||
}
|
||||
],
|
||||
"errors": [
|
||||
{
|
||||
"name": "PreDispatchEarlySubmission",
|
||||
"documentation": [
|
||||
" Submission was too early."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "PreDispatchWrongWinnerCount",
|
||||
"documentation": [
|
||||
" Wrong number of winners presented."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "PreDispatchWeakSubmission",
|
||||
"documentation": [
|
||||
" Submission was too weak, score-wise."
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 8
|
||||
},
|
||||
{
|
||||
"name": "Staking",
|
||||
"storage": {
|
||||
@@ -2148,6 +2372,19 @@
|
||||
" The earliest era for which we have a pending, unapplied slash."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "CurrentPlannedSession",
|
||||
"modifier": "Default",
|
||||
"type": {
|
||||
"Plain": "SessionIndex"
|
||||
},
|
||||
"fallback": "0x00000000",
|
||||
"documentation": [
|
||||
" The last planned session scheduled by the session pallet.",
|
||||
"",
|
||||
" This is basically in sync with the call to [`SessionManager::new_session`]."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SnapshotValidators",
|
||||
"modifier": "Optional",
|
||||
@@ -2157,7 +2394,9 @@
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" Snapshot of validators at the beginning of the current election window. This should only",
|
||||
" have a value when [`EraElectionStatus`] == `ElectionStatus::Open(_)`."
|
||||
" have a value when [`EraElectionStatus`] == `ElectionStatus::Open(_)`.",
|
||||
"",
|
||||
" TWO_PHASE_NOTE: should be removed once we switch to multi-phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -2169,7 +2408,9 @@
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" Snapshot of nominators at the beginning of the current election window. This should only",
|
||||
" have a value when [`EraElectionStatus`] == `ElectionStatus::Open(_)`."
|
||||
" have a value when [`EraElectionStatus`] == `ElectionStatus::Open(_)`.",
|
||||
"",
|
||||
" TWO_PHASE_NOTE: should be removed once we switch to multi-phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -2182,7 +2423,9 @@
|
||||
"documentation": [
|
||||
" The next validator set. At the end of an era, if this is available (potentially from the",
|
||||
" result of an offchain worker), it is immediately used. Otherwise, the on-chain election",
|
||||
" is executed."
|
||||
" is executed.",
|
||||
"",
|
||||
" TWO_PHASE_NOTE: should be removed once we switch to multi-phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -2193,7 +2436,9 @@
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" The score of the current [`QueuedElected`]."
|
||||
" The score of the current [`QueuedElected`].",
|
||||
"",
|
||||
" TWO_PHASE_NOTE: should be removed once we switch to multi-phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -2205,7 +2450,9 @@
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" Flag to control the execution of the offchain election. When `Open(_)`, we accept",
|
||||
" solutions to be submitted."
|
||||
" solutions to be submitted.",
|
||||
"",
|
||||
" TWO_PHASE_NOTE: should be removed once we switch to multi-phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -2217,7 +2464,9 @@
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" True if the current **planned** session is final. Note that this does not take era",
|
||||
" forcing into account."
|
||||
" forcing into account.",
|
||||
"",
|
||||
" TWO_PHASE_NOTE: should be removed once we switch to multi-phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -3363,7 +3612,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 8
|
||||
"index": 9
|
||||
},
|
||||
{
|
||||
"name": "Session",
|
||||
@@ -3557,7 +3806,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 9
|
||||
"index": 10
|
||||
},
|
||||
{
|
||||
"name": "Democracy",
|
||||
@@ -4806,7 +5055,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 10
|
||||
"index": 11
|
||||
},
|
||||
{
|
||||
"name": "Council",
|
||||
@@ -5265,7 +5514,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 11
|
||||
"index": 12
|
||||
},
|
||||
{
|
||||
"name": "TechnicalCommittee",
|
||||
@@ -5724,7 +5973,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 12
|
||||
"index": 13
|
||||
},
|
||||
{
|
||||
"name": "Elections",
|
||||
@@ -6183,7 +6432,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 13
|
||||
"index": 14
|
||||
},
|
||||
{
|
||||
"name": "TechnicalMembership",
|
||||
@@ -6366,7 +6615,7 @@
|
||||
],
|
||||
"constants": [],
|
||||
"errors": [],
|
||||
"index": 14
|
||||
"index": 15
|
||||
},
|
||||
{
|
||||
"name": "Grandpa",
|
||||
@@ -6589,7 +6838,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 15
|
||||
"index": 16
|
||||
},
|
||||
{
|
||||
"name": "Treasury",
|
||||
@@ -6829,7 +7078,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 16
|
||||
"index": 17
|
||||
},
|
||||
{
|
||||
"name": "Contracts",
|
||||
@@ -6842,7 +7091,7 @@
|
||||
"type": {
|
||||
"Plain": "Schedule"
|
||||
},
|
||||
"fallback": "0x0000000000040000000002000000010000800000001000000000100000000100002000000000000800150600004c6b02004c8103009e1800000b1d0000160d0000651800006d2b00008a000000f5700100fdf602008e070000440600006e070000030600004f180000b528000091070000b60da70827080000590800006a0a0000ef070000560800004a0800008e080000f509000061090000dd090000a10a00009c090000e409000091090000650900001e0a0000120a0000ae09000099090000060a00006b2000000b1d000051200000221d000094090000ad090000b6090000160a0000660a0000fd090000260a0000440a0000d41a2a0000000000a0c729000000000092122900000000001ab5580000000000ba1c290000000000e000290000000000b0ef280000000000ee325c0000000000dec1280000000000ca07290000000000c07d4e00000000009c77140000000000303a7200000000000b01000000000000f0ab450000000000ff0200000000000060a21c270000000030078d31000000002635af09000000000ae164000000000038b18e0000000000b6b1cc0700000000890900000000000040036c00000000008ad6e21100000000de020000000000006e67cc080000000078f6110200000000e605000000000000acb1b50a00000000b24419090000000092579f08000000004702000000000000240300000000000016eaeb220000000055020000000000003503000000000000db0a000000000000f4802600000000006a100000000000006a9a280000000000220d0000000000004e9c2400000000001c0600000000000026832400000000001b06000000000000",
|
||||
"fallback": "0x0000000000040000000002000000010000800000001000000000100000000100002000000078060000a5600200a1740300271600000d1c0000e20c00006e160000ff280000a00000008b780100e4f80200b70600002c06000027070000a705000074170000ca2700002807000002ea8f08ef070000fd0700003c0a0000630800007f070000c7070000fe0700008909000022090000ea080000c30900002709000059070000d508000082080000b60900007a090000c90800009b080000bb080000a51f0000b51c00009a1f0000c21c00008c0800006b080000ea0800004009000092090000fc080000ae090000c2090000ae37290000000000e636290000000000be5a280000000000d479570000000000bc25280000000000a285280000000000008c28000000000052385c00000000003a07280000000000942a280000000000541d4d00000000002603130000000000b08a6f00000000000b01000000000000a053480000000000fd020000000000009862332700000000a32000000000000000e3bd3100000000902200000000000056120000000000006872ad0900000000de326200000000007cfe8e00000000008211ce07000000009309000000000000ac096d0000000000e43f161100000000da020000000000005e74cf0800000000e07b0b0200000000f005000000000000deb1c40a00000000f24a370900000000ff0e000000000000228bf9080000000049020000000000002a030000000000004c971c2300000000892100000000000067020000000000005703000000000000e60b000000000000aac22400000000006210000000000000f434270000000000200d00000000000094672200000000001806000000000000f86c2200000000001806000000000000",
|
||||
"documentation": [
|
||||
" Current cost schedule for contracts."
|
||||
]
|
||||
@@ -6952,7 +7201,7 @@
|
||||
},
|
||||
{
|
||||
"name": "gas_limit",
|
||||
"type": "Compact<Gas>"
|
||||
"type": "Compact<Weight>"
|
||||
},
|
||||
{
|
||||
"name": "data",
|
||||
@@ -6978,7 +7227,7 @@
|
||||
},
|
||||
{
|
||||
"name": "gas_limit",
|
||||
"type": "Compact<Gas>"
|
||||
"type": "Compact<Weight>"
|
||||
},
|
||||
{
|
||||
"name": "code",
|
||||
@@ -7026,7 +7275,7 @@
|
||||
},
|
||||
{
|
||||
"name": "gas_limit",
|
||||
"type": "Compact<Gas>"
|
||||
"type": "Compact<Weight>"
|
||||
},
|
||||
{
|
||||
"name": "code_hash",
|
||||
@@ -7272,8 +7521,7 @@
|
||||
"type": "u32",
|
||||
"value": "0x20000000",
|
||||
"documentation": [
|
||||
" The maximum nesting level of a call/instantiate stack. A reasonable default",
|
||||
" value is 100."
|
||||
" The maximum nesting level of a call/instantiate stack."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -7281,13 +7529,13 @@
|
||||
"type": "u32",
|
||||
"value": "0x00400000",
|
||||
"documentation": [
|
||||
" The maximum size of a storage value in bytes. A reasonable default is 16 KiB."
|
||||
" The maximum size of a storage value and event payload in bytes."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "DeletionQueueDepth",
|
||||
"type": "u32",
|
||||
"value": "0xf2000000",
|
||||
"value": "0x1b010000",
|
||||
"documentation": [
|
||||
" The maximum number of tries that can be queued for deletion."
|
||||
]
|
||||
@@ -7299,6 +7547,16 @@
|
||||
"documentation": [
|
||||
" The maximum amount of weight that can be consumed per block for lazy trie removal."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "MaxCodeSize",
|
||||
"type": "u32",
|
||||
"value": "0x00000200",
|
||||
"documentation": [
|
||||
" The maximum length of a contract code in bytes. This limit applies to the instrumented",
|
||||
" version of the code. Therefore `instantiate_with_code` can fail even when supplying",
|
||||
" a wasm binary below this maximum size."
|
||||
]
|
||||
}
|
||||
],
|
||||
"errors": [
|
||||
@@ -7470,7 +7728,7 @@
|
||||
"documentation": [
|
||||
" Removal of a contract failed because the deletion queue is full.",
|
||||
"",
|
||||
" This can happen when either calling [`Module::claim_surcharge`] or `seal_terminate`.",
|
||||
" This can happen when either calling [`Pallet::claim_surcharge`] or `seal_terminate`.",
|
||||
" The queue is filled by deleting contracts and emptied by a fixed amount each block.",
|
||||
" Trying again during another block is the only way to resolve this issue."
|
||||
]
|
||||
@@ -7480,7 +7738,7 @@
|
||||
"documentation": [
|
||||
" A contract could not be evicted because it has enough balance to pay rent.",
|
||||
"",
|
||||
" This can be returned from [`Module::claim_surcharge`] because the target",
|
||||
" This can be returned from [`Pallet::claim_surcharge`] because the target",
|
||||
" contract has enough balance to pay for its rent."
|
||||
]
|
||||
},
|
||||
@@ -7500,7 +7758,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 17
|
||||
"index": 18
|
||||
},
|
||||
{
|
||||
"name": "Sudo",
|
||||
@@ -7652,7 +7910,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 18
|
||||
"index": 19
|
||||
},
|
||||
{
|
||||
"name": "ImOnline",
|
||||
@@ -7792,7 +8050,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 19
|
||||
"index": 20
|
||||
},
|
||||
{
|
||||
"name": "AuthorityDiscovery",
|
||||
@@ -7801,7 +8059,7 @@
|
||||
"events": null,
|
||||
"constants": [],
|
||||
"errors": [],
|
||||
"index": 20
|
||||
"index": 21
|
||||
},
|
||||
{
|
||||
"name": "Offences",
|
||||
@@ -7895,7 +8153,7 @@
|
||||
],
|
||||
"constants": [],
|
||||
"errors": [],
|
||||
"index": 21
|
||||
"index": 22
|
||||
},
|
||||
{
|
||||
"name": "Historical",
|
||||
@@ -7904,7 +8162,7 @@
|
||||
"events": null,
|
||||
"constants": [],
|
||||
"errors": [],
|
||||
"index": 22
|
||||
"index": 23
|
||||
},
|
||||
{
|
||||
"name": "RandomnessCollectiveFlip",
|
||||
@@ -7930,7 +8188,7 @@
|
||||
"events": null,
|
||||
"constants": [],
|
||||
"errors": [],
|
||||
"index": 23
|
||||
"index": 24
|
||||
},
|
||||
{
|
||||
"name": "Identity",
|
||||
@@ -8670,7 +8928,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 24
|
||||
"index": 25
|
||||
},
|
||||
{
|
||||
"name": "Society",
|
||||
@@ -9652,7 +9910,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 25
|
||||
"index": 26
|
||||
},
|
||||
{
|
||||
"name": "Recovery",
|
||||
@@ -10206,7 +10464,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 26
|
||||
"index": 27
|
||||
},
|
||||
{
|
||||
"name": "Vesting",
|
||||
@@ -10398,7 +10656,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 27
|
||||
"index": 28
|
||||
},
|
||||
{
|
||||
"name": "Scheduler",
|
||||
@@ -10690,7 +10948,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 28
|
||||
"index": 29
|
||||
},
|
||||
{
|
||||
"name": "Proxy",
|
||||
@@ -11208,7 +11466,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 29
|
||||
"index": 30
|
||||
},
|
||||
{
|
||||
"name": "Multisig",
|
||||
@@ -11622,7 +11880,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "WeightTooLow",
|
||||
"name": "MaxWeightTooLow",
|
||||
"documentation": [
|
||||
" The maximum weight information provided was too low."
|
||||
]
|
||||
@@ -11634,7 +11892,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 30
|
||||
"index": 31
|
||||
},
|
||||
{
|
||||
"name": "Bounties",
|
||||
@@ -12094,7 +12352,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 31
|
||||
"index": 32
|
||||
},
|
||||
{
|
||||
"name": "Tips",
|
||||
@@ -12467,7 +12725,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 32
|
||||
"index": 33
|
||||
},
|
||||
{
|
||||
"name": "Assets",
|
||||
@@ -13280,7 +13538,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 33
|
||||
"index": 34
|
||||
},
|
||||
{
|
||||
"name": "Mmr",
|
||||
@@ -13334,7 +13592,7 @@
|
||||
"events": null,
|
||||
"constants": [],
|
||||
"errors": [],
|
||||
"index": 34
|
||||
"index": 35
|
||||
},
|
||||
{
|
||||
"name": "Lottery",
|
||||
@@ -13556,7 +13814,7 @@
|
||||
}
|
||||
],
|
||||
"errors": [],
|
||||
"index": 35
|
||||
"index": 36
|
||||
}
|
||||
],
|
||||
"extrinsic": {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -43,7 +43,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 { FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, SessionKeys7, SessionKeys8, SessionKeys9, ValidatorCount } from '@polkadot/types/interfaces/session';
|
||||
import type { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society';
|
||||
import type { ActiveEraInfo, CompactAssignments, CompactAssignmentsTo257, CompactScore, CompactScoreCompact, ElectionCompute, ElectionResult, ElectionScore, ElectionSize, ElectionStatus, EraIndex, EraPoints, EraRewardPoints, EraRewards, Exposure, Forcing, IndividualExposure, KeyType, MomentOf, Nominations, NominatorIndex, NominatorIndexCompact, OffchainAccuracy, OffchainAccuracyCompact, PhragmenScore, Points, RewardDestination, RewardDestinationTo257, RewardPoint, SeatHolder, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorIndexCompact, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196, ValidatorPrefsWithBlocked, ValidatorPrefsWithCommission, Voter } from '@polkadot/types/interfaces/staking';
|
||||
import type { ActiveEraInfo, CompactAssignments, CompactAssignmentsTo257, CompactScore, CompactScoreCompact, ElectionCompute, ElectionResult, ElectionScore, ElectionSize, ElectionStatus, EraIndex, EraPoints, EraRewardPoints, EraRewards, Exposure, ExtendedBalance, Forcing, IndividualExposure, KeyType, MomentOf, Nominations, NominatorIndex, NominatorIndexCompact, OffchainAccuracy, OffchainAccuracyCompact, PhragmenScore, Points, RawSolution, ReadySolution, RewardDestination, RewardDestinationTo257, RewardPoint, RoundSnapshot, SeatHolder, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SolutionOrSnapshotSize, SolutionSupport, SolutionSupports, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorIndexCompact, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196, ValidatorPrefsWithBlocked, ValidatorPrefsWithCommission, VoteWeight, Voter } from '@polkadot/types/interfaces/staking';
|
||||
import type { ApiId, KeyValueOption, ReadProof, RuntimeVersion, RuntimeVersionApi, StorageChangeSet } from '@polkadot/types/interfaces/state';
|
||||
import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support';
|
||||
import type { AccountInfo, AccountInfoWithProviders, AccountInfoWithRefCount, ApplyExtrinsicResult, 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, TransactionValidityError, UnknownTransaction, WeightPerClass } from '@polkadot/types/interfaces/system';
|
||||
@@ -73,6 +73,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
'Compact<CoreIndex>': Compact<CoreIndex>;
|
||||
'Compact<EraIndex>': Compact<EraIndex>;
|
||||
'Compact<EventIndex>': Compact<EventIndex>;
|
||||
'Compact<ExtendedBalance>': Compact<ExtendedBalance>;
|
||||
'Compact<FixedU128>': Compact<FixedU128>;
|
||||
'Compact<FixedU64>': Compact<FixedU64>;
|
||||
'Compact<FundIndex>': Compact<FundIndex>;
|
||||
@@ -135,6 +136,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
'Compact<ValidatorCount>': Compact<ValidatorCount>;
|
||||
'Compact<ValidatorIndex>': Compact<ValidatorIndex>;
|
||||
'Compact<VoteIndex>': Compact<VoteIndex>;
|
||||
'Compact<VoteWeight>': Compact<VoteWeight>;
|
||||
'Compact<Weight>': Compact<Weight>;
|
||||
'Option<AbridgedCandidateReceipt>': Option<AbridgedCandidateReceipt>;
|
||||
'Option<AbridgedHostConfiguration>': Option<AbridgedHostConfiguration>;
|
||||
@@ -381,6 +383,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
'Option<ExitRevert>': Option<ExitRevert>;
|
||||
'Option<ExitSucceed>': Option<ExitSucceed>;
|
||||
'Option<Exposure>': Option<Exposure>;
|
||||
'Option<ExtendedBalance>': Option<ExtendedBalance>;
|
||||
'Option<Extrinsic>': Option<Extrinsic>;
|
||||
'Option<ExtrinsicEra>': Option<ExtrinsicEra>;
|
||||
'Option<ExtrinsicMetadataLatest>': Option<ExtrinsicMetadataLatest>;
|
||||
@@ -647,8 +650,10 @@ declare module '@polkadot/types/types/registry' {
|
||||
'Option<RawBabePreDigestSecondaryVRF>': Option<RawBabePreDigestSecondaryVRF>;
|
||||
'Option<RawBabePreDigestTo159>': Option<RawBabePreDigestTo159>;
|
||||
'Option<RawOrigin>': Option<RawOrigin>;
|
||||
'Option<RawSolution>': Option<RawSolution>;
|
||||
'Option<RawVRFOutput>': Option<RawVRFOutput>;
|
||||
'Option<ReadProof>': Option<ReadProof>;
|
||||
'Option<ReadySolution>': Option<ReadySolution>;
|
||||
'Option<Reasons>': Option<Reasons>;
|
||||
'Option<RecoveryConfig>': Option<RecoveryConfig>;
|
||||
'Option<RefCount>': Option<RefCount>;
|
||||
@@ -678,6 +683,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
'Option<RewardDestination>': Option<RewardDestination>;
|
||||
'Option<RewardDestinationTo257>': Option<RewardDestinationTo257>;
|
||||
'Option<RewardPoint>': Option<RewardPoint>;
|
||||
'Option<RoundSnapshot>': Option<RoundSnapshot>;
|
||||
'Option<RoundState>': Option<RoundState>;
|
||||
'Option<RpcMethods>': Option<RpcMethods>;
|
||||
'Option<RuntimeDbWeight>': Option<RuntimeDbWeight>;
|
||||
@@ -737,6 +743,9 @@ declare module '@polkadot/types/types/registry' {
|
||||
'Option<SlotRange>': Option<SlotRange>;
|
||||
'Option<SocietyJudgement>': Option<SocietyJudgement>;
|
||||
'Option<SocietyVote>': Option<SocietyVote>;
|
||||
'Option<SolutionOrSnapshotSize>': Option<SolutionOrSnapshotSize>;
|
||||
'Option<SolutionSupport>': Option<SolutionSupport>;
|
||||
'Option<SolutionSupports>': Option<SolutionSupports>;
|
||||
'Option<SpanIndex>': Option<SpanIndex>;
|
||||
'Option<SpanRecord>': Option<SpanRecord>;
|
||||
'Option<Sr25519Signature>': Option<Sr25519Signature>;
|
||||
@@ -847,6 +856,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
'Option<Votes>': Option<Votes>;
|
||||
'Option<VotesTo230>': Option<VotesTo230>;
|
||||
'Option<VoteThreshold>': Option<VoteThreshold>;
|
||||
'Option<VoteWeight>': Option<VoteWeight>;
|
||||
'Option<Voting>': Option<Voting>;
|
||||
'Option<VotingDelegating>': Option<VotingDelegating>;
|
||||
'Option<VotingDirect>': Option<VotingDirect>;
|
||||
@@ -1113,6 +1123,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
'Vec<ExitRevert>': Vec<ExitRevert>;
|
||||
'Vec<ExitSucceed>': Vec<ExitSucceed>;
|
||||
'Vec<Exposure>': Vec<Exposure>;
|
||||
'Vec<ExtendedBalance>': Vec<ExtendedBalance>;
|
||||
'Vec<Extrinsic>': Vec<Extrinsic>;
|
||||
'Vec<ExtrinsicEra>': Vec<ExtrinsicEra>;
|
||||
'Vec<ExtrinsicMetadataLatest>': Vec<ExtrinsicMetadataLatest>;
|
||||
@@ -1379,8 +1390,10 @@ declare module '@polkadot/types/types/registry' {
|
||||
'Vec<RawBabePreDigestSecondaryVRF>': Vec<RawBabePreDigestSecondaryVRF>;
|
||||
'Vec<RawBabePreDigestTo159>': Vec<RawBabePreDigestTo159>;
|
||||
'Vec<RawOrigin>': Vec<RawOrigin>;
|
||||
'Vec<RawSolution>': Vec<RawSolution>;
|
||||
'Vec<RawVRFOutput>': Vec<RawVRFOutput>;
|
||||
'Vec<ReadProof>': Vec<ReadProof>;
|
||||
'Vec<ReadySolution>': Vec<ReadySolution>;
|
||||
'Vec<Reasons>': Vec<Reasons>;
|
||||
'Vec<RecoveryConfig>': Vec<RecoveryConfig>;
|
||||
'Vec<RefCount>': Vec<RefCount>;
|
||||
@@ -1410,6 +1423,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
'Vec<RewardDestination>': Vec<RewardDestination>;
|
||||
'Vec<RewardDestinationTo257>': Vec<RewardDestinationTo257>;
|
||||
'Vec<RewardPoint>': Vec<RewardPoint>;
|
||||
'Vec<RoundSnapshot>': Vec<RoundSnapshot>;
|
||||
'Vec<RoundState>': Vec<RoundState>;
|
||||
'Vec<RpcMethods>': Vec<RpcMethods>;
|
||||
'Vec<RuntimeDbWeight>': Vec<RuntimeDbWeight>;
|
||||
@@ -1469,6 +1483,9 @@ declare module '@polkadot/types/types/registry' {
|
||||
'Vec<SlotRange>': Vec<SlotRange>;
|
||||
'Vec<SocietyJudgement>': Vec<SocietyJudgement>;
|
||||
'Vec<SocietyVote>': Vec<SocietyVote>;
|
||||
'Vec<SolutionOrSnapshotSize>': Vec<SolutionOrSnapshotSize>;
|
||||
'Vec<SolutionSupport>': Vec<SolutionSupport>;
|
||||
'Vec<SolutionSupports>': Vec<SolutionSupports>;
|
||||
'Vec<SpanIndex>': Vec<SpanIndex>;
|
||||
'Vec<SpanRecord>': Vec<SpanRecord>;
|
||||
'Vec<Sr25519Signature>': Vec<Sr25519Signature>;
|
||||
@@ -1579,6 +1596,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
'Vec<Votes>': Vec<Votes>;
|
||||
'Vec<VotesTo230>': Vec<VotesTo230>;
|
||||
'Vec<VoteThreshold>': Vec<VoteThreshold>;
|
||||
'Vec<VoteWeight>': Vec<VoteWeight>;
|
||||
'Vec<Voting>': Vec<Voting>;
|
||||
'Vec<VotingDelegating>': Vec<VotingDelegating>;
|
||||
'Vec<VotingDirect>': Vec<VotingDirect>;
|
||||
@@ -1845,6 +1863,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
ExitRevert: ExitRevert;
|
||||
ExitSucceed: ExitSucceed;
|
||||
Exposure: Exposure;
|
||||
ExtendedBalance: ExtendedBalance;
|
||||
Extrinsic: Extrinsic;
|
||||
ExtrinsicEra: ExtrinsicEra;
|
||||
ExtrinsicMetadataLatest: ExtrinsicMetadataLatest;
|
||||
@@ -2111,8 +2130,10 @@ declare module '@polkadot/types/types/registry' {
|
||||
RawBabePreDigestSecondaryVRF: RawBabePreDigestSecondaryVRF;
|
||||
RawBabePreDigestTo159: RawBabePreDigestTo159;
|
||||
RawOrigin: RawOrigin;
|
||||
RawSolution: RawSolution;
|
||||
RawVRFOutput: RawVRFOutput;
|
||||
ReadProof: ReadProof;
|
||||
ReadySolution: ReadySolution;
|
||||
Reasons: Reasons;
|
||||
RecoveryConfig: RecoveryConfig;
|
||||
RefCount: RefCount;
|
||||
@@ -2142,6 +2163,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
RewardDestination: RewardDestination;
|
||||
RewardDestinationTo257: RewardDestinationTo257;
|
||||
RewardPoint: RewardPoint;
|
||||
RoundSnapshot: RoundSnapshot;
|
||||
RoundState: RoundState;
|
||||
RpcMethods: RpcMethods;
|
||||
RuntimeDbWeight: RuntimeDbWeight;
|
||||
@@ -2201,6 +2223,9 @@ declare module '@polkadot/types/types/registry' {
|
||||
SlotRange: SlotRange;
|
||||
SocietyJudgement: SocietyJudgement;
|
||||
SocietyVote: SocietyVote;
|
||||
SolutionOrSnapshotSize: SolutionOrSnapshotSize;
|
||||
SolutionSupport: SolutionSupport;
|
||||
SolutionSupports: SolutionSupports;
|
||||
SpanIndex: SpanIndex;
|
||||
SpanRecord: SpanRecord;
|
||||
Sr25519Signature: Sr25519Signature;
|
||||
@@ -2311,6 +2336,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
Votes: Votes;
|
||||
VotesTo230: VotesTo230;
|
||||
VoteThreshold: VoteThreshold;
|
||||
VoteWeight: VoteWeight;
|
||||
Voting: Voting;
|
||||
VotingDelegating: VotingDelegating;
|
||||
VotingDirect: VotingDirect;
|
||||
|
||||
@@ -73,16 +73,41 @@ const phragmen = {
|
||||
Open: 'BlockNumber'
|
||||
}
|
||||
},
|
||||
ExtendedBalance: 'u128',
|
||||
RawSolution: {
|
||||
compact: 'CompactAssignments',
|
||||
score: 'ElectionScore',
|
||||
round: 'u32'
|
||||
},
|
||||
ReadySolution: {
|
||||
supports: 'SolutionSupports',
|
||||
score: 'ElectionScore',
|
||||
compute: 'ElectionCompute'
|
||||
},
|
||||
RoundSnapshot: {
|
||||
voters: 'Vec<(AccountId, VoteWeight, Vec<AccountId>)>',
|
||||
targets: 'Vec<AccountId>'
|
||||
},
|
||||
SeatHolder: {
|
||||
who: 'AccountId',
|
||||
stake: 'Balance',
|
||||
deposit: 'Balance'
|
||||
},
|
||||
SolutionOrSnapshotSize: {
|
||||
voters: 'Compact<u32>',
|
||||
targets: 'Compact<u32>'
|
||||
},
|
||||
SolutionSupport: {
|
||||
total: 'ExtendedBalance',
|
||||
voters: 'Vec<(AccountId, ExtendedBalance)>'
|
||||
},
|
||||
SolutionSupports: 'Vec<(AccountId, SolutionSupport)>',
|
||||
Voter: {
|
||||
votes: 'Vec<AccountId>',
|
||||
stake: 'Balance',
|
||||
deposit: 'Balance'
|
||||
}
|
||||
},
|
||||
VoteWeight: 'u64'
|
||||
};
|
||||
|
||||
export default {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
import type { BTreeMap, Compact, Enum, Option, Struct, Vec, bool, u128, u16, u32 } from '@polkadot/types';
|
||||
import type { BTreeMap, Compact, Enum, Option, Struct, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types';
|
||||
import type { ITuple } from '@polkadot/types/types';
|
||||
import type { AccountId, Balance, BlockNumber, Moment, PerU16, Perbill } from '@polkadot/types/interfaces/runtime';
|
||||
|
||||
@@ -116,6 +116,9 @@ export interface Exposure extends Struct {
|
||||
readonly others: Vec<IndividualExposure>;
|
||||
}
|
||||
|
||||
/** @name ExtendedBalance */
|
||||
export interface ExtendedBalance extends u128 {}
|
||||
|
||||
/** @name Forcing */
|
||||
export interface Forcing extends Enum {
|
||||
readonly isNotForcing: boolean;
|
||||
@@ -161,6 +164,20 @@ export interface PhragmenScore extends Vec<u128> {}
|
||||
/** @name Points */
|
||||
export interface Points extends u32 {}
|
||||
|
||||
/** @name RawSolution */
|
||||
export interface RawSolution extends Struct {
|
||||
readonly compact: CompactAssignments;
|
||||
readonly score: ElectionScore;
|
||||
readonly round: u32;
|
||||
}
|
||||
|
||||
/** @name ReadySolution */
|
||||
export interface ReadySolution extends Struct {
|
||||
readonly supports: SolutionSupports;
|
||||
readonly score: ElectionScore;
|
||||
readonly compute: ElectionCompute;
|
||||
}
|
||||
|
||||
/** @name RewardDestination */
|
||||
export interface RewardDestination extends Enum {
|
||||
readonly isStaked: boolean;
|
||||
@@ -180,6 +197,12 @@ export interface RewardDestinationTo257 extends Enum {
|
||||
/** @name RewardPoint */
|
||||
export interface RewardPoint extends u32 {}
|
||||
|
||||
/** @name RoundSnapshot */
|
||||
export interface RoundSnapshot extends Struct {
|
||||
readonly voters: Vec<ITuple<[AccountId, VoteWeight, Vec<AccountId>]>>;
|
||||
readonly targets: Vec<AccountId>;
|
||||
}
|
||||
|
||||
/** @name SeatHolder */
|
||||
export interface SeatHolder extends Struct {
|
||||
readonly who: AccountId;
|
||||
@@ -209,6 +232,21 @@ export interface SlashJournalEntry extends Struct {
|
||||
readonly ownSlash: Balance;
|
||||
}
|
||||
|
||||
/** @name SolutionOrSnapshotSize */
|
||||
export interface SolutionOrSnapshotSize extends Struct {
|
||||
readonly voters: Compact<u32>;
|
||||
readonly targets: Compact<u32>;
|
||||
}
|
||||
|
||||
/** @name SolutionSupport */
|
||||
export interface SolutionSupport extends Struct {
|
||||
readonly total: ExtendedBalance;
|
||||
readonly voters: Vec<ITuple<[AccountId, ExtendedBalance]>>;
|
||||
}
|
||||
|
||||
/** @name SolutionSupports */
|
||||
export interface SolutionSupports extends Vec<ITuple<[AccountId, SolutionSupport]>> {}
|
||||
|
||||
/** @name SpanIndex */
|
||||
export interface SpanIndex extends u32 {}
|
||||
|
||||
@@ -300,4 +338,7 @@ export interface Voter extends Struct {
|
||||
readonly deposit: Balance;
|
||||
}
|
||||
|
||||
/** @name VoteWeight */
|
||||
export interface VoteWeight extends u64 {}
|
||||
|
||||
export type PHANTOM_STAKING = 'staking';
|
||||
|
||||
Reference in New Issue
Block a user