Update of Babe Pre Digest from master (#1416)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user