// 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: { generateProof: { description: 'Generate MMR proof for given leaf index.', params: [ { name: 'leafIndex', type: 'u64' }, { name: 'at', type: 'BlockHash', isHistoric: true, isOptional: true } ], type: 'MmrLeafProof' } }, types: { MmrLeafProof: { blockHash: 'BlockHash', leaf: 'Bytes', proof: 'Bytes' } } } as Definitions;