import { ITuple } from '@chainx-v2/types/types'; import { BTreeMap, Compact, Enum, Option, Struct, Vec } from '@chainx-v2/types/codec'; import { bool, u128, u16, u32 } from '@chainx-v2/types/primitive'; import { AccountId, Balance, BlockNumber, Moment, Perbill } from '@chainx-v2/types/interfaces/runtime'; /** @name ActiveEraInfo */ export interface ActiveEraInfo extends Struct { readonly index: EraIndex; readonly start: Option; } /** @name CompactAssignments */ export interface CompactAssignments 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 CompactScore */ export interface CompactScore extends ITuple<[ValidatorIndex, OffchainAccuracy]> { } /** @name ElectionCompute */ export interface ElectionCompute extends Enum { readonly isOnChain: boolean; readonly isSigned: boolean; readonly isAuthority: boolean; } /** @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; } /** @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 Forcing */ export interface Forcing extends Enum { readonly isNotForcing: boolean; readonly isForceNew: boolean; readonly isForceNone: boolean; readonly isForceAlways: boolean; } /** @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 OffchainAccuracy */ export interface OffchainAccuracy extends PerU16 { } /** @name PerU16 */ export interface PerU16 extends u16 { } /** @name PhragmenScore */ export interface PhragmenScore extends Vec { } /** @name Points */ export interface Points extends u32 { } /** @name RewardDestination */ export interface RewardDestination extends Enum { readonly isStaked: boolean; readonly isStash: boolean; readonly isController: boolean; } /** @name RewardPoint */ export interface RewardPoint extends u32 { } /** @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 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 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 ValidatorPrefs */ export interface ValidatorPrefs extends Struct { readonly commission: Compact; } /** @name ValidatorPrefsTo145 */ export interface ValidatorPrefsTo145 extends Struct { readonly unstakeThreshold: Compact; readonly validatorPayment: Compact; } /** @name ValidatorPrefsTo196 */ export interface ValidatorPrefsTo196 extends Struct { readonly validatorPayment: Compact; } export declare type PHANTOM_STAKING = 'staking';