import type { BTreeMap, Compact, Enum, Option, Struct, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec'; import type { ITuple } from '@polkadot/types-codec/types'; import type { AccountId, Balance, BlockNumber, Moment, PerU16, Perbill } from '@polkadot/types/interfaces/runtime'; /** @name ActiveEraInfo */ export interface ActiveEraInfo extends Struct { readonly index: EraIndex; readonly start: Option; } /** @name CompactAssignments */ export interface CompactAssignments extends CompactAssignmentsWith16 { } /** @name CompactAssignmentsTo257 */ export interface CompactAssignmentsTo257 extends Struct { readonly votes1: Vec, ValidatorIndex]>>; readonly votes2: Vec, ValidatorIndex]>>; readonly votes3: Vec, ValidatorIndex]>>; readonly votes4: Vec, ValidatorIndex]>>; readonly votes5: Vec, ValidatorIndex]>>; readonly votes6: Vec, ValidatorIndex]>>; readonly votes7: Vec, ValidatorIndex]>>; readonly votes8: Vec, ValidatorIndex]>>; readonly votes9: Vec, ValidatorIndex]>>; readonly votes10: Vec, ValidatorIndex]>>; readonly votes11: Vec, ValidatorIndex]>>; readonly votes12: Vec, ValidatorIndex]>>; readonly votes13: Vec, ValidatorIndex]>>; readonly votes14: Vec, ValidatorIndex]>>; readonly votes15: Vec, ValidatorIndex]>>; readonly votes16: Vec, ValidatorIndex]>>; } /** @name CompactAssignmentsTo265 */ export interface CompactAssignmentsTo265 extends CompactAssignmentsWith16 { } /** @name CompactAssignmentsWith16 */ export interface CompactAssignmentsWith16 extends Struct { readonly votes1: Vec>; readonly votes2: Vec>; readonly votes3: Vec, ValidatorIndexCompact]>>; readonly votes4: Vec, ValidatorIndexCompact]>>; readonly votes5: Vec, ValidatorIndexCompact]>>; readonly votes6: Vec, ValidatorIndexCompact]>>; readonly votes7: Vec, ValidatorIndexCompact]>>; readonly votes8: Vec, ValidatorIndexCompact]>>; readonly votes9: Vec, ValidatorIndexCompact]>>; readonly votes10: Vec, ValidatorIndexCompact]>>; readonly votes11: Vec, ValidatorIndexCompact]>>; readonly votes12: Vec, ValidatorIndexCompact]>>; readonly votes13: Vec, ValidatorIndexCompact]>>; readonly votes14: Vec, ValidatorIndexCompact]>>; readonly votes15: Vec, ValidatorIndexCompact]>>; readonly votes16: Vec, ValidatorIndexCompact]>>; } /** @name CompactAssignmentsWith24 */ export interface CompactAssignmentsWith24 extends Struct { readonly votes1: Vec>; readonly votes2: Vec>; readonly votes3: Vec, ValidatorIndexCompact]>>; readonly votes4: Vec, ValidatorIndexCompact]>>; readonly votes5: Vec, ValidatorIndexCompact]>>; readonly votes6: Vec, ValidatorIndexCompact]>>; readonly votes7: Vec, ValidatorIndexCompact]>>; readonly votes8: Vec, ValidatorIndexCompact]>>; readonly votes9: Vec, ValidatorIndexCompact]>>; readonly votes10: Vec, ValidatorIndexCompact]>>; readonly votes11: Vec, ValidatorIndexCompact]>>; readonly votes12: Vec, ValidatorIndexCompact]>>; readonly votes13: Vec, ValidatorIndexCompact]>>; readonly votes14: Vec, ValidatorIndexCompact]>>; readonly votes15: Vec, ValidatorIndexCompact]>>; readonly votes16: Vec, ValidatorIndexCompact]>>; readonly votes17: Vec, ValidatorIndexCompact]>>; readonly votes18: Vec, ValidatorIndexCompact]>>; readonly votes19: Vec, ValidatorIndexCompact]>>; readonly votes20: Vec, ValidatorIndexCompact]>>; readonly votes21: Vec, ValidatorIndexCompact]>>; readonly votes22: Vec, ValidatorIndexCompact]>>; readonly votes23: Vec, ValidatorIndexCompact]>>; readonly votes24: Vec, ValidatorIndexCompact]>>; } /** @name CompactScore */ export interface CompactScore extends ITuple<[ValidatorIndex, OffchainAccuracy]> { } /** @name CompactScoreCompact */ export interface CompactScoreCompact extends ITuple<[ValidatorIndexCompact, OffchainAccuracyCompact]> { } /** @name ElectionCompute */ export interface ElectionCompute extends Enum { readonly isOnChain: boolean; readonly isSigned: boolean; readonly isUnsigned: boolean; readonly type: 'OnChain' | 'Signed' | 'Unsigned'; } /** @name ElectionPhase */ export interface ElectionPhase extends Enum { readonly isOff: boolean; readonly isSigned: boolean; readonly isUnsigned: boolean; readonly asUnsigned: ITuple<[bool, BlockNumber]>; readonly isEmergency: boolean; readonly type: 'Off' | 'Signed' | 'Unsigned' | 'Emergency'; } /** @name ElectionResult */ export interface ElectionResult extends Struct { readonly compute: ElectionCompute; readonly slotStake: Balance; readonly electedStashes: Vec; readonly exposures: Vec>; } /** @name ElectionScore */ export interface ElectionScore extends Vec { } /** @name ElectionSize */ export interface ElectionSize extends Struct { readonly validators: Compact; readonly nominators: Compact; } /** @name ElectionStatus */ export interface ElectionStatus extends Enum { readonly isClose: boolean; readonly isOpen: boolean; readonly asOpen: BlockNumber; readonly type: 'Close' | 'Open'; } /** @name EraIndex */ export interface EraIndex extends u32 { } /** @name EraPoints */ export interface EraPoints extends Struct { readonly total: Points; readonly individual: Vec; } /** @name EraRewardPoints */ export interface EraRewardPoints extends Struct { readonly total: RewardPoint; readonly individual: BTreeMap; } /** @name EraRewards */ export interface EraRewards extends Struct { readonly total: u32; readonly rewards: Vec; } /** @name Exposure */ export interface Exposure extends Struct { readonly total: Compact; readonly own: Compact; readonly others: Vec; } /** @name ExtendedBalance */ export interface ExtendedBalance extends u128 { } /** @name Forcing */ export interface Forcing extends Enum { readonly isNotForcing: boolean; readonly isForceNew: boolean; readonly isForceNone: boolean; readonly isForceAlways: boolean; readonly type: 'NotForcing' | 'ForceNew' | 'ForceNone' | 'ForceAlways'; } /** @name IndividualExposure */ export interface IndividualExposure extends Struct { readonly who: AccountId; readonly value: Compact; } /** @name KeyType */ export interface KeyType extends AccountId { } /** @name MomentOf */ export interface MomentOf extends Moment { } /** @name Nominations */ export interface Nominations extends Struct { readonly targets: Vec; readonly submittedIn: EraIndex; readonly suppressed: bool; } /** @name NominatorIndex */ export interface NominatorIndex extends u32 { } /** @name NominatorIndexCompact */ export interface NominatorIndexCompact extends Compact { } /** @name OffchainAccuracy */ export interface OffchainAccuracy extends PerU16 { } /** @name OffchainAccuracyCompact */ export interface OffchainAccuracyCompact extends Compact { } /** @name PhragmenScore */ export interface PhragmenScore extends Vec { } /** @name Points */ export interface Points extends u32 { } /** @name RawSolution */ export interface RawSolution extends RawSolutionWith16 { } /** @name RawSolutionTo265 */ export interface RawSolutionTo265 extends RawSolutionWith16 { } /** @name RawSolutionWith16 */ export interface RawSolutionWith16 extends Struct { readonly compact: CompactAssignmentsWith16; readonly score: ElectionScore; readonly round: u32; } /** @name RawSolutionWith24 */ export interface RawSolutionWith24 extends Struct { readonly compact: CompactAssignmentsWith24; 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; readonly isStash: boolean; readonly isController: boolean; readonly isAccount: boolean; readonly asAccount: AccountId; readonly isNone: boolean; readonly type: 'Staked' | 'Stash' | 'Controller' | 'Account' | 'None'; } /** @name RewardPoint */ export interface RewardPoint extends u32 { } /** @name RoundSnapshot */ export interface RoundSnapshot extends Struct { readonly voters: Vec]>>; readonly targets: Vec; } /** @name SeatHolder */ export interface SeatHolder extends Struct { readonly who: AccountId; readonly stake: Balance; readonly deposit: Balance; } /** @name SignedSubmission */ 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; readonly lastStart: EraIndex; readonly lastNonzeroSlash: EraIndex; readonly prior: Vec; } /** @name SlashingSpansTo204 */ export interface SlashingSpansTo204 extends Struct { readonly spanIndex: SpanIndex; readonly lastStart: EraIndex; readonly prior: Vec; } /** @name SlashJournalEntry */ export interface SlashJournalEntry extends Struct { readonly who: AccountId; readonly amount: Balance; readonly ownSlash: Balance; } /** @name SolutionOrSnapshotSize */ export interface SolutionOrSnapshotSize extends Struct { readonly voters: Compact; readonly targets: Compact; } /** @name SolutionSupport */ export interface SolutionSupport extends Struct { readonly total: ExtendedBalance; readonly voters: Vec>; } /** @name SolutionSupports */ export interface SolutionSupports extends Vec> { } /** @name SpanIndex */ export interface SpanIndex extends u32 { } /** @name SpanRecord */ export interface SpanRecord extends Struct { readonly slashed: Balance; readonly paidOut: Balance; } /** @name StakingLedger */ export interface StakingLedger extends Struct { readonly stash: AccountId; readonly total: Compact; readonly active: Compact; readonly unlocking: Vec; readonly claimedRewards: Vec; } /** @name StakingLedgerTo223 */ export interface StakingLedgerTo223 extends Struct { readonly stash: AccountId; readonly total: Compact; readonly active: Compact; readonly unlocking: Vec; } /** @name StakingLedgerTo240 */ export interface StakingLedgerTo240 extends Struct { readonly stash: AccountId; readonly total: Compact; readonly active: Compact; readonly unlocking: Vec; readonly lastReward: Option; } /** @name SubmissionIndicesOf */ export interface SubmissionIndicesOf extends BTreeMap { } /** @name Supports */ export interface Supports extends SolutionSupports { } /** @name UnappliedSlash */ export interface UnappliedSlash extends Struct { readonly validator: AccountId; readonly own: Balance; readonly others: Vec; readonly reporters: Vec; readonly payout: Balance; } /** @name UnappliedSlashOther */ export interface UnappliedSlashOther extends ITuple<[AccountId, Balance]> { } /** @name UnlockChunk */ export interface UnlockChunk extends Struct { readonly value: Compact; readonly era: Compact; } /** @name ValidatorIndex */ export interface ValidatorIndex extends u16 { } /** @name ValidatorIndexCompact */ export interface ValidatorIndexCompact extends Compact { } /** @name ValidatorPrefs */ export interface ValidatorPrefs extends ValidatorPrefsWithBlocked { } /** @name ValidatorPrefsTo145 */ export interface ValidatorPrefsTo145 extends Struct { readonly unstakeThreshold: Compact; readonly validatorPayment: Compact; } /** @name ValidatorPrefsTo196 */ export interface ValidatorPrefsTo196 extends Struct { readonly validatorPayment: Compact; } /** @name ValidatorPrefsWithBlocked */ export interface ValidatorPrefsWithBlocked extends Struct { readonly commission: Compact; readonly blocked: bool; } /** @name ValidatorPrefsWithCommission */ export interface ValidatorPrefsWithCommission extends Struct { readonly commission: Compact; } /** @name Voter */ export interface Voter extends Struct { readonly votes: Vec; readonly stake: Balance; readonly deposit: Balance; } /** @name VoteWeight */ export interface VoteWeight extends u64 { } export type PHANTOM_STAKING = 'staking';