@polkadot/rpc-augment 10.1.3 → 10.2.1

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.
@@ -15,7 +15,7 @@ import type { CreatedBlock } from '@polkadot/types/interfaces/engine';
15
15
  import type { EthAccount, EthCallRequest, EthFeeHistory, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth';
16
16
  import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
17
17
  import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from '@polkadot/types/interfaces/grandpa';
18
- import type { MmrLeafBatchProof, MmrLeafProof } from '@polkadot/types/interfaces/mmr';
18
+ import type { MmrHash, MmrLeafBatchProof } from '@polkadot/types/interfaces/mmr';
19
19
  import type { StorageKind } from '@polkadot/types/interfaces/offchain';
20
20
  import type { FeeDetails, RuntimeDispatchInfoV1 } from '@polkadot/types/interfaces/payment';
21
21
  import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
@@ -427,13 +427,29 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
427
427
  };
428
428
  mmr: {
429
429
  /**
430
- * Generate MMR proof for the given leaf indices.
430
+ * Generate MMR proof for the given block numbers.
431
431
  **/
432
- generateBatchProof: AugmentedRpc<(leafIndices: Vec<u64> | (u64 | AnyNumber | Uint8Array)[], at?: BlockHash | string | Uint8Array) => Observable<MmrLeafProof>>;
432
+ generateProof: AugmentedRpc<(blockNumbers: Vec<u64> | (u64 | AnyNumber | Uint8Array)[], bestKnownBlockNumber?: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<MmrLeafBatchProof>>;
433
433
  /**
434
- * Generate MMR proof for given leaf index.
434
+ * Get the MMR root hash for the current best block.
435
435
  **/
436
- generateProof: AugmentedRpc<(leafIndex: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<MmrLeafBatchProof>>;
436
+ root: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<MmrHash>>;
437
+ /**
438
+ * Verify an MMR proof
439
+ **/
440
+ verifyProof: AugmentedRpc<(proof: MmrLeafBatchProof | {
441
+ blockHash?: any;
442
+ leaves?: any;
443
+ proof?: any;
444
+ } | string | Uint8Array) => Observable<bool>>;
445
+ /**
446
+ * Verify an MMR proof statelessly given an mmr_root
447
+ **/
448
+ verifyProofStateless: AugmentedRpc<(root: MmrHash | string | Uint8Array, proof: MmrLeafBatchProof | {
449
+ blockHash?: any;
450
+ leaves?: any;
451
+ proof?: any;
452
+ } | string | Uint8Array) => Observable<bool>>;
437
453
  };
438
454
  net: {
439
455
  /**
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@polkadot/rpc-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.1.3' };
4
+ exports.packageInfo = { name: '@polkadot/rpc-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.2.1' };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "./cjs/detectPackage.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "10.1.3",
21
+ "version": "10.2.1",
22
22
  "main": "./cjs/index.js",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts",
@@ -71,10 +71,10 @@
71
71
  }
72
72
  },
73
73
  "dependencies": {
74
- "@polkadot/rpc-core": "10.1.3",
75
- "@polkadot/types": "10.1.3",
76
- "@polkadot/types-codec": "10.1.3",
77
- "@polkadot/util": "^11.0.2",
74
+ "@polkadot/rpc-core": "10.2.1",
75
+ "@polkadot/types": "10.2.1",
76
+ "@polkadot/types-codec": "10.2.1",
77
+ "@polkadot/util": "^11.1.2",
78
78
  "tslib": "^2.5.0"
79
79
  }
80
80
  }
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@polkadot/rpc-augment', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.1.3' };
1
+ export const packageInfo = { name: '@polkadot/rpc-augment', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.2.1' };