@polkadot/rpc-augment 8.4.3-0 → 8.4.3-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@ import type { CreatedBlock } from '@polkadot/types/interfaces/engine';
14
14
  import type { EthAccount, EthCallRequest, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth';
15
15
  import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
16
16
  import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from '@polkadot/types/interfaces/grandpa';
17
- import type { MmrLeafProof } from '@polkadot/types/interfaces/mmr';
17
+ import type { MmrLeafBatchProof, MmrLeafProof } from '@polkadot/types/interfaces/mmr';
18
18
  import type { StorageKind } from '@polkadot/types/interfaces/offchain';
19
19
  import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
20
20
  import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
@@ -412,10 +412,14 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
412
412
  subscribeJustifications: AugmentedRpc<() => Observable<JustificationNotification>>;
413
413
  };
414
414
  mmr: {
415
+ /**
416
+ * Generate MMR proof for the given leaf indices.
417
+ **/
418
+ generateBatchProof: AugmentedRpc<(leafIndices: Vec<u64> | (u64 | AnyNumber | Uint8Array)[], at?: BlockHash | string | Uint8Array) => Observable<MmrLeafProof>>;
415
419
  /**
416
420
  * Generate MMR proof for given leaf index.
417
421
  **/
418
- generateProof: AugmentedRpc<(leafIndex: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<MmrLeafProof>>;
422
+ generateProof: AugmentedRpc<(leafIndex: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<MmrLeafBatchProof>>;
419
423
  };
420
424
  net: {
421
425
  /**
@@ -11,6 +11,6 @@ const packageInfo = {
11
11
  name: '@polkadot/rpc-augment',
12
12
  path: typeof __dirname === 'string' ? __dirname : 'auto',
13
13
  type: 'cjs',
14
- version: '8.4.3-0'
14
+ version: '8.4.3-3'
15
15
  };
16
16
  exports.packageInfo = packageInfo;
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./cjs/detectPackage.js"
21
21
  ],
22
22
  "type": "module",
23
- "version": "8.4.3-0",
23
+ "version": "8.4.3-3",
24
24
  "main": "./cjs/index.js",
25
25
  "module": "./index.js",
26
26
  "types": "./index.d.ts",
@@ -71,9 +71,9 @@
71
71
  },
72
72
  "dependencies": {
73
73
  "@babel/runtime": "^7.17.9",
74
- "@polkadot/rpc-core": "8.4.3-0",
75
- "@polkadot/types": "8.4.3-0",
76
- "@polkadot/types-codec": "8.4.3-0",
74
+ "@polkadot/rpc-core": "8.4.3-3",
75
+ "@polkadot/types": "8.4.3-3",
76
+ "@polkadot/types-codec": "8.4.3-3",
77
77
  "@polkadot/util": "^9.2.1"
78
78
  }
79
79
  }
package/packageInfo.js CHANGED
@@ -5,5 +5,5 @@ export const packageInfo = {
5
5
  name: '@polkadot/rpc-augment',
6
6
  path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
7
7
  type: 'esm',
8
- version: '8.4.3-0'
8
+ version: '8.4.3-3'
9
9
  };