UNPKG

@polkadot/types

Version:
99 lines (98 loc) 2.56 kB
const BEEFY_V3 = { beefy_genesis: { description: 'Return the block number where BEEFY consensus is enabled/started', params: [], type: 'Option<BlockNumber>' }, generate_key_ownership_proof: { description: 'Generates a proof of key ownership for the given authority in the given set.', params: [ { name: 'setId', type: 'ValidatorSetId' }, { name: 'authorityId', type: 'AuthorityId' } ], type: 'Option<OpaqueKeyOwnershipProof>' }, validator_set: { description: 'Return the current active BEEFY validator set', params: [], type: 'Option<ValidatorSet>' } }; const BEEFY_V1_V3 = { ...BEEFY_V3, submit_report_equivocation_unsigned_extrinsic: { description: 'Submits an unsigned extrinsic to report an equivocation.', params: [ { name: 'equivocationProof', type: 'BeefyEquivocationProof' }, { name: 'keyOwnerProof', type: 'OpaqueKeyOwnershipProof' } ], type: 'Option<Null>' } }; const BEEFY_V4 = { ...BEEFY_V3, submit_report_double_voting_unsigned_extrinsic: { description: 'Submits an unsigned extrinsic to report a double voting equivocation.', params: [ { name: 'equivocationProof', type: 'SpConsensusBeefyDoubleVotingProof' }, { name: 'keyOwnerProof', type: 'OpaqueKeyOwnershipProof' } ], type: 'Option<Null>' } }; const BEEFY_MMR_V1 = { authority_set_proof: { description: 'Return the currently active BEEFY authority set proof.', params: [], type: 'BeefyAuthoritySet' }, next_authority_set_proof: { description: 'Return the next/queued BEEFY authority set proof.', params: [], type: 'BeefyNextAuthoritySet' } }; export const runtime = { BeefyApi: [ { methods: BEEFY_V4, version: 4 }, { methods: BEEFY_V1_V3, version: 3 }, { methods: BEEFY_V1_V3, version: 2 }, { methods: BEEFY_V1_V3, version: 1 } ], BeefyMmrApi: [ { methods: BEEFY_MMR_V1, version: 1 } ] };