// Copyright 2017-2021 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 // order important in structs... :) /* eslint-disable sort-keys */ import type { Definitions } from '../../types'; export default { rpc: { epochAuthorship: { description: 'Returns data about which slots (primary or secondary) can be claimed in the current epoch with the keys in the keystore', params: [], type: 'HashMap' } }, types: { AllowedSlots: { _enum: ['PrimarySlots', 'PrimaryAndSecondaryPlainSlots', 'PrimaryAndSecondaryVRFSlots'] }, BabeAuthorityWeight: 'u64', BabeEpochConfiguration: { c: '(u64, u64)', allowedSlots: 'AllowedSlots' }, BabeBlockWeight: 'u32', BabeEquivocationProof: { offender: 'AuthorityId', slotNumber: 'SlotNumber', firstHeader: 'Header', secondHeader: 'Header' }, BabeWeight: 'u64', MaybeRandomness: 'Option', MaybeVrf: 'Option', EpochAuthorship: { primary: 'Vec', secondary: 'Vec', secondary_vrf: 'Vec' }, NextConfigDescriptor: { _enum: { V0: 'Null', V1: 'NextConfigDescriptorV1' } }, NextConfigDescriptorV1: { c: '(u64, u64)', allowedSlots: 'AllowedSlots' }, Randomness: 'Hash', RawBabePreDigest: { _enum: { Phantom: 'Null', // index starts at 1... empty slot at 0 Primary: 'RawBabePreDigestPrimary', SecondaryPlain: 'RawBabePreDigestSecondaryPlain', SecondaryVRF: 'RawBabePreDigestSecondaryVRF' } }, RawBabePreDigestPrimary: { authorityIndex: 'u32', // AuthorityIndex (also in aura) slotNumber: 'SlotNumber', vrfOutput: 'VrfOutput', vrfProof: 'VrfProof' }, RawBabePreDigestSecondaryPlain: { authorityIndex: 'u32', // AuthorityIndex (also in aura) slotNumber: 'SlotNumber' }, RawBabePreDigestSecondaryVRF: { authorityIndex: 'u32', slotNumber: 'SlotNumber', vrfOutput: 'VrfOutput', vrfProof: 'VrfProof' }, RawBabePreDigestTo159: { _enum: { Primary: 'RawBabePreDigestPrimaryTo159', Secondary: 'RawBabePreDigestSecondaryTo159' } }, RawBabePreDigestPrimaryTo159: { authorityIndex: 'u32', slotNumber: 'SlotNumber', weight: 'BabeBlockWeight', vrfOutput: 'VrfOutput', vrfProof: 'VrfProof' }, RawBabePreDigestSecondaryTo159: { authorityIndex: 'u32', slotNumber: 'SlotNumber', weight: 'BabeBlockWeight' }, // a cross old/new compatible version of the digest, that is _only_ useful // for partial parsing and extraction of the author. This assumes that all // entries has the authorityIndex in the first position - and that it is all // we are interested in RawBabePreDigestCompat: { _enum: { Zero: 'u32', One: 'u32', Two: 'u32', Three: 'u32' } }, SlotNumber: 'u64', VrfData: '[u8; 32]', VrfOutput: '[u8; 32]', VrfProof: '[u8; 64]' } } as Definitions;