@polkadot/rpc-augment 8.11.2 → 8.12.2
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.
- package/augment/jsonrpc.d.ts +4 -2
- package/augment/jsonrpc.js +6 -1
- package/cjs/augment/jsonrpc.js +3 -1
- package/cjs/packageInfo.js +1 -1
- package/package.json +5 -6
- package/packageInfo.js +1 -1
- package/mod.d.ts +0 -1
package/augment/jsonrpc.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@polkadot/rpc-core/types/jsonrpc';
|
|
1
2
|
import type { AugmentedRpc } from '@polkadot/rpc-core/types';
|
|
2
3
|
import type { Metadata, StorageKey } from '@polkadot/types';
|
|
3
4
|
import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f64, u32, u64 } from '@polkadot/types-codec';
|
|
@@ -22,6 +23,7 @@ import type { AccountId, BlockNumber, H160, H256, H64, Hash, Header, Index, Just
|
|
|
22
23
|
import type { MigrationStatusResult, ReadProof, RuntimeVersion, TraceBlockResponse } from '@polkadot/types/interfaces/state';
|
|
23
24
|
import type { ApplyExtrinsicResult, ChainProperties, ChainType, Health, NetworkState, NodeRole, PeerInfo, SyncState } from '@polkadot/types/interfaces/system';
|
|
24
25
|
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
|
26
|
+
export declare type __AugmentedRpc = AugmentedRpc<() => unknown>;
|
|
25
27
|
declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
26
28
|
interface RpcInterface {
|
|
27
29
|
author: {
|
|
@@ -235,7 +237,7 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
235
237
|
/**
|
|
236
238
|
* Returns fee history for given block count & reward percentiles
|
|
237
239
|
**/
|
|
238
|
-
feeHistory: AugmentedRpc<(blockCount: U256 | AnyNumber | Uint8Array, newestBlock: BlockNumber | AnyNumber | Uint8Array, rewardPercentiles: Option<Vec<f64>> | null |
|
|
240
|
+
feeHistory: AugmentedRpc<(blockCount: U256 | AnyNumber | Uint8Array, newestBlock: BlockNumber | AnyNumber | Uint8Array, rewardPercentiles: Option<Vec<f64>> | null | Uint8Array | Vec<f64> | (f64)[]) => Observable<EthFeeHistory>>;
|
|
239
241
|
/**
|
|
240
242
|
* Returns current gas price.
|
|
241
243
|
**/
|
|
@@ -549,7 +551,7 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
549
551
|
/**
|
|
550
552
|
* Provides a way to trace the re-execution of a single block
|
|
551
553
|
**/
|
|
552
|
-
traceBlock: AugmentedRpc<(block: Hash | string | Uint8Array, targets: Option<Text> | null |
|
|
554
|
+
traceBlock: AugmentedRpc<(block: Hash | string | Uint8Array, targets: Option<Text> | null | Uint8Array | Text | string, storageKeys: Option<Text> | null | Uint8Array | Text | string, methods: Option<Text> | null | Uint8Array | Text | string) => Observable<TraceBlockResponse>>;
|
|
553
555
|
/**
|
|
554
556
|
* Check current migration state
|
|
555
557
|
**/
|
package/augment/jsonrpc.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// import type lookup before we augment - in some environments
|
|
5
|
+
// this is required to allow for ambient/previous definitions
|
|
6
|
+
import '@polkadot/rpc-core/types/jsonrpc'; // declare module
|
package/cjs/augment/jsonrpc.js
CHANGED
package/cjs/packageInfo.js
CHANGED
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./cjs/detectPackage.js"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "8.
|
|
23
|
+
"version": "8.12.2",
|
|
24
24
|
"main": "./cjs/index.js",
|
|
25
25
|
"module": "./index.js",
|
|
26
26
|
"types": "./index.d.ts",
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
"require": "./cjs/detectPackage.js",
|
|
58
58
|
"default": "./detectPackage.js"
|
|
59
59
|
},
|
|
60
|
-
"./mod.d.ts": "./mod.d.ts",
|
|
61
60
|
"./package.json": "./package.json",
|
|
62
61
|
"./packageInfo.js": {
|
|
63
62
|
"types": "./packageInfo.d.ts",
|
|
@@ -72,9 +71,9 @@
|
|
|
72
71
|
},
|
|
73
72
|
"dependencies": {
|
|
74
73
|
"@babel/runtime": "^7.18.6",
|
|
75
|
-
"@polkadot/rpc-core": "8.
|
|
76
|
-
"@polkadot/types": "8.
|
|
77
|
-
"@polkadot/types-codec": "8.
|
|
78
|
-
"@polkadot/util": "^
|
|
74
|
+
"@polkadot/rpc-core": "8.12.2",
|
|
75
|
+
"@polkadot/types": "8.12.2",
|
|
76
|
+
"@polkadot/types-codec": "8.12.2",
|
|
77
|
+
"@polkadot/util": "^10.0.2"
|
|
79
78
|
}
|
|
80
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.
|
|
8
|
+
version: '8.12.2'
|
|
9
9
|
};
|
package/mod.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './index';
|