@@ -22,7 +22,7 @@ import type { CreatedBlock } from '@polkadot/types/interfaces/engine';
2222import type { EthAccount , EthCallRequest , EthFeeHistory , EthFilter , EthFilterChanges , EthLog , EthReceipt , EthRichBlock , EthSubKind , EthSubParams , EthSyncStatus , EthTransaction , EthTransactionRequest , EthWork } from '@polkadot/types/interfaces/eth' ;
2323import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics' ;
2424import type { EncodedFinalityProofs , JustificationNotification , ReportedRoundStates } from '@polkadot/types/interfaces/grandpa' ;
25- import type { MmrLeafBatchProof , MmrLeafProof } from '@polkadot/types/interfaces/mmr' ;
25+ import type { MmrHash , MmrLeafBatchProof } from '@polkadot/types/interfaces/mmr' ;
2626import type { StorageKind } from '@polkadot/types/interfaces/offchain' ;
2727import type { FeeDetails , RuntimeDispatchInfoV1 } from '@polkadot/types/interfaces/payment' ;
2828import type { RpcMethods } from '@polkadot/types/interfaces/rpc' ;
@@ -373,13 +373,21 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
373373 } ;
374374 mmr : {
375375 /**
376- * Generate MMR proof for the given leaf indices .
376+ * Generate MMR proof for the given block numbers .
377377 **/
378- generateBatchProof : AugmentedRpc < ( leafIndices : Vec < u64 > | ( u64 | AnyNumber | Uint8Array ) [ ] , at ?: BlockHash | string | Uint8Array ) => Observable < MmrLeafProof > > ;
378+ generateProof : AugmentedRpc < ( blockNumbers : Vec < u64 > | ( u64 | AnyNumber | Uint8Array ) [ ] , bestKnownBlockNumber ?: u64 | AnyNumber | Uint8Array , at ?: BlockHash | string | Uint8Array ) => Observable < MmrLeafBatchProof > > ;
379379 /**
380- * Generate MMR proof for given leaf index .
380+ * Get the MMR root hash for the current best block .
381381 **/
382- generateProof : AugmentedRpc < ( leafIndex : u64 | AnyNumber | Uint8Array , at ?: BlockHash | string | Uint8Array ) => Observable < MmrLeafBatchProof > > ;
382+ root : AugmentedRpc < ( at ?: BlockHash | string | Uint8Array ) => Observable < MmrHash > > ;
383+ /**
384+ * Verify an MMR proof
385+ **/
386+ verifyProof : AugmentedRpc < ( proof : MmrLeafBatchProof | { blockHash ?: any ; leaves ?: any ; proof ?: any } | string | Uint8Array ) => Observable < bool > > ;
387+ /**
388+ * Verify an MMR proof statelessly given an mmr_root
389+ **/
390+ verifyProofStateless : AugmentedRpc < ( root : MmrHash | string | Uint8Array , proof : MmrLeafBatchProof | { blockHash ?: any ; leaves ?: any ; proof ?: any } | string | Uint8Array ) => Observable < bool > > ;
383391 } ;
384392 net : {
385393 /**
0 commit comments