Support mmr_generateBatchProof RPC (#4831)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
Changes:
|
||||
|
||||
- Adjust extrinsic inspect for signed/unsigned
|
||||
- Add support for `mmr_generateBatchProof` RPC
|
||||
|
||||
|
||||
## 8.4.2 May 15, 2022
|
||||
|
||||
@@ -8,6 +8,22 @@ import type { Definitions } from '../../types';
|
||||
|
||||
export default {
|
||||
rpc: {
|
||||
generateBatchProof: {
|
||||
description: 'Generate MMR proof for the given leaf indices.',
|
||||
params: [
|
||||
{
|
||||
name: 'leafIndices',
|
||||
type: 'Vec<u64>'
|
||||
},
|
||||
{
|
||||
name: 'at',
|
||||
type: 'BlockHash',
|
||||
isHistoric: true,
|
||||
isOptional: true
|
||||
}
|
||||
],
|
||||
type: 'MmrLeafProof'
|
||||
},
|
||||
generateProof: {
|
||||
description: 'Generate MMR proof for given leaf index.',
|
||||
params: [
|
||||
@@ -22,10 +38,15 @@ export default {
|
||||
isOptional: true
|
||||
}
|
||||
],
|
||||
type: 'MmrLeafProof'
|
||||
type: 'MmrLeafBatchProof'
|
||||
}
|
||||
},
|
||||
types: {
|
||||
MmrLeafBatchProof: {
|
||||
blockHash: 'BlockHash',
|
||||
leaves: 'Bytes',
|
||||
proof: 'Bytes'
|
||||
},
|
||||
MmrLeafProof: {
|
||||
blockHash: 'BlockHash',
|
||||
leaf: 'Bytes',
|
||||
|
||||
Reference in New Issue
Block a user