Add Forcing enum (staking) (#1300)
This commit is contained in:
@@ -19,7 +19,7 @@ import { AssetOptions, Owner, PermissionLatest, PermissionVersions, PermissionsV
|
||||
import { AuthorityWeight, NextAuthority, PendingPause, PendingResume, StoredPendingChange, StoredState } from './interfaces/grandpa';
|
||||
import { AuthIndex, AuthoritySignature, Heartbeat, OpaqueMultiaddr, OpaqueNetworkState, OpaquePeerId } from './interfaces/imOnline';
|
||||
import { Keys, SessionIndex, SessionKeysPolkadot, SessionKeysSubstrate } from './interfaces/session';
|
||||
import { EraIndex, EraRewards, Exposure, IndividualExposure, MomentOf, RewardDestination, StakingLedger, UnlockChunk, ValidatorPrefs } from './interfaces/staking';
|
||||
import { EraIndex, EraRewards, Exposure, Forcing, IndividualExposure, MomentOf, RewardDestination, StakingLedger, UnlockChunk, ValidatorPrefs } from './interfaces/staking';
|
||||
import { DigestOf, Event, EventId, EventIndex, EventRecord, EventRecord0to76, Key, Phase } from './interfaces/system';
|
||||
import { TreasuryProposal } from './interfaces/treasury';
|
||||
import { BlockAttestations, IncludedBlocks, MoreAttestations } from './interfaces/attestations';
|
||||
@@ -472,6 +472,9 @@ export interface InterfaceRegistry {
|
||||
Exposure: Exposure;
|
||||
'Option<Exposure>': Option<Exposure>;
|
||||
'Vec<Exposure>': Vec<Exposure>;
|
||||
Forcing: Forcing;
|
||||
'Option<Forcing>': Option<Forcing>;
|
||||
'Vec<Forcing>': Vec<Forcing>;
|
||||
IndividualExposure: IndividualExposure;
|
||||
'Option<IndividualExposure>': Option<IndividualExposure>;
|
||||
'Vec<IndividualExposure>': Vec<IndividualExposure>;
|
||||
|
||||
@@ -14,6 +14,13 @@ export default {
|
||||
own: 'Compact<Balance>',
|
||||
others: 'Vec<IndividualExposure>'
|
||||
},
|
||||
Forcing: {
|
||||
_enum: [
|
||||
'NotForcing',
|
||||
'ForceNew',
|
||||
'ForceNone'
|
||||
]
|
||||
},
|
||||
IndividualExposure: {
|
||||
who: 'AccountId',
|
||||
value: 'Compact<Balance>'
|
||||
|
||||
@@ -26,6 +26,16 @@ export interface Exposure extends Struct {
|
||||
readonly others: Vec<IndividualExposure>;
|
||||
}
|
||||
|
||||
/** Enum */
|
||||
export interface Forcing extends Enum {
|
||||
/** 0:: NotForcing */
|
||||
readonly isNotForcing: boolean;
|
||||
/** 1:: ForceNew */
|
||||
readonly isForceNew: boolean;
|
||||
/** 2:: ForceNone */
|
||||
readonly isForceNone: boolean;
|
||||
}
|
||||
|
||||
/** Struct */
|
||||
export interface IndividualExposure extends Struct {
|
||||
/** AccountId */
|
||||
|
||||
Reference in New Issue
Block a user