Update of Babe Pre Digest from master (#1416)

This commit is contained in:
Jaco Greeff
2019-09-24 17:50:08 +02:00
committed by GitHub
parent 498e3a1481
commit 692c208b20
2 changed files with 12 additions and 9 deletions
@@ -11,15 +11,16 @@ export default {
BabeWeight: 'u64',
RawBabePreDigest: {
_enum: {
Phantom: 'Null', // index starts at 1... empty slot at 0
Primary: 'RawBabePreDigestPrimary',
Secondary: 'RawBabePreDigestSecondary'
}
},
RawBabePreDigestPrimary: {
vrfOutput: 'VrfData',
vrfProof: 'VrfProof',
authorityIndex: 'u32', // AuthorityIndex (also in aura)
slotNumber: 'SlotNumber'
slotNumber: 'SlotNumber',
vrfOutput: 'VrfData',
vrfProof: 'VrfProof'
},
RawBabePreDigestSecondary: {
authorityIndex: 'u32', // AuthorityIndex (also in aura)
+8 -6
View File
@@ -19,11 +19,13 @@ export interface MaybeVrf extends Option<VrfData> {}
/** Enum */
export interface RawBabePreDigest extends Enum {
/** 0:: Primary(RawBabePreDigestPrimary) */
/** 0:: Phantom */
readonly isPhantom: boolean;
/** 1:: Primary(RawBabePreDigestPrimary) */
readonly isPrimary: boolean;
/** RawBabePreDigestPrimary */
readonly asPrimary: RawBabePreDigestPrimary;
/** 1:: Secondary(RawBabePreDigestSecondary) */
/** 2:: Secondary(RawBabePreDigestSecondary) */
readonly isSecondary: boolean;
/** RawBabePreDigestSecondary */
readonly asSecondary: RawBabePreDigestSecondary;
@@ -43,14 +45,14 @@ export interface RawBabePreDigest0to159 extends Enum {
/** Struct */
export interface RawBabePreDigestPrimary extends Struct {
/** VrfData */
readonly vrfOutput: VrfData;
/** VrfProof */
readonly vrfProof: VrfProof;
/** u32 */
readonly authorityIndex: u32;
/** SlotNumber */
readonly slotNumber: SlotNumber;
/** VrfData */
readonly vrfOutput: VrfData;
/** VrfProof */
readonly vrfProof: VrfProof;
}
/** Struct */