Update ValidatorPrefx for 2.x (#1325)

This commit is contained in:
Jaco Greeff
2019-08-19 20:05:50 +02:00
committed by GitHub
parent 477be58184
commit 6fee15b138
4 changed files with 15 additions and 2 deletions
+4 -1
View File
@@ -19,7 +19,7 @@ import { AuthorityWeight, NextAuthority, PendingPause, PendingResume, StoredPend
import { AuthIndex, AuthoritySignature, Heartbeat, OpaqueMultiaddr, OpaqueNetworkState, OpaquePeerId } from './interfaces/imOnline';
import { Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from './interfaces/offences';
import { FullIdentification, IdentificationTuple, Keys, SessionIndex, SessionKeysPolkadot, SessionKeysSubstrate } from './interfaces/session';
import { EraIndex, EraRewards, Exposure, Forcing, IndividualExposure, MomentOf, RewardDestination, SlashJournalEntry, StakingLedger, UnlockChunk, ValidatorPrefs } from './interfaces/staking';
import { EraIndex, EraRewards, Exposure, Forcing, IndividualExposure, MomentOf, RewardDestination, SlashJournalEntry, StakingLedger, UnlockChunk, ValidatorPrefs, ValidatorPrefs0to145 } 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';
@@ -532,6 +532,9 @@ export interface InterfaceRegistry {
ValidatorPrefs: ValidatorPrefs;
'Option<ValidatorPrefs>': Option<ValidatorPrefs>;
'Vec<ValidatorPrefs>': Vec<ValidatorPrefs>;
ValidatorPrefs0to145: ValidatorPrefs0to145;
'Option<ValidatorPrefs0to145>': Option<ValidatorPrefs0to145>;
'Vec<ValidatorPrefs0to145>': Vec<ValidatorPrefs0to145>;
DigestOf: DigestOf;
'Option<DigestOf>': Option<DigestOf>;
'Vec<DigestOf>': Vec<DigestOf>;
@@ -49,6 +49,9 @@ export default {
era: 'Compact<BlockNumber>'
},
ValidatorPrefs: {
validatorPayment: 'Compact<Balance>'
},
ValidatorPrefs0to145: {
unstakeThreshold: 'Compact<u32>',
validatorPayment: 'Compact<Balance>'
}
@@ -89,6 +89,12 @@ export interface UnlockChunk extends Struct {
/** Struct */
export interface ValidatorPrefs extends Struct {
/** Compact<Balance> */
readonly validatorPayment: Compact<Balance>;
}
/** Struct */
export interface ValidatorPrefs0to145 extends Struct {
/** Compact<u32> */
readonly unstakeThreshold: Compact<u32>;
/** Compact<Balance> */