@polkadot/rpc-augment 8.9.2-8 → 8.11.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.
@@ -1,6 +1,6 @@
1
1
  import type { AugmentedRpc } from '@polkadot/rpc-core/types';
2
2
  import type { Metadata, StorageKey } from '@polkadot/types';
3
- import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, u32, u64 } from '@polkadot/types-codec';
3
+ import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f64, u32, u64 } from '@polkadot/types-codec';
4
4
  import type { AnyNumber, Codec } from '@polkadot/types-codec/types';
5
5
  import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
6
6
  import type { EpochAuthorship } from '@polkadot/types/interfaces/babe';
@@ -11,7 +11,7 @@ import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
11
11
  import type { CodeUploadRequest, CodeUploadResult, ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequest } from '@polkadot/types/interfaces/contracts';
12
12
  import type { BlockStats } from '@polkadot/types/interfaces/dev';
13
13
  import type { CreatedBlock } from '@polkadot/types/interfaces/engine';
14
- import type { EthAccount, EthCallRequest, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth';
14
+ import type { EthAccount, EthCallRequest, EthFeeHistory, 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
17
  import type { MmrLeafBatchProof, MmrLeafProof } from '@polkadot/types/interfaces/mmr';
@@ -56,11 +56,11 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
56
56
  /**
57
57
  * Submit and subscribe to watch an extrinsic until unsubscribed
58
58
  **/
59
- submitAndWatchExtrinsic: AugmentedRpc<(extrinsic: IExtrinsic) => Observable<ExtrinsicStatus>>;
59
+ submitAndWatchExtrinsic: AugmentedRpc<(extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ExtrinsicStatus>>;
60
60
  /**
61
61
  * Submit a fully formatted extrinsic for block inclusion
62
62
  **/
63
- submitExtrinsic: AugmentedRpc<(extrinsic: IExtrinsic) => Observable<Hash>>;
63
+ submitExtrinsic: AugmentedRpc<(extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<Hash>>;
64
64
  };
65
65
  babe: {
66
66
  /**
@@ -232,6 +232,10 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
232
232
  data?: any;
233
233
  nonce?: any;
234
234
  } | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
235
+ /**
236
+ * Returns fee history for given block count & reward percentiles
237
+ **/
238
+ feeHistory: AugmentedRpc<(blockCount: U256 | AnyNumber | Uint8Array, newestBlock: BlockNumber | AnyNumber | Uint8Array, rewardPercentiles: Option<Vec<f64>> | null | object | string | Uint8Array) => Observable<EthFeeHistory>>;
235
239
  /**
236
240
  * Returns current gas price.
237
241
  **/
@@ -330,6 +334,10 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
330
334
  * Returns the number of hashes per second that the node is mining with.
331
335
  **/
332
336
  hashrate: AugmentedRpc<() => Observable<U256>>;
337
+ /**
338
+ * Returns max priority fee per gas
339
+ **/
340
+ maxPriorityFeePerGas: AugmentedRpc<() => Observable<U256>>;
333
341
  /**
334
342
  * Returns true if client is actively mining new blocks.
335
343
  **/
@@ -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.9.2-8'
14
+ version: '8.11.1'
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.9.2-8",
23
+ "version": "8.11.1",
24
24
  "main": "./cjs/index.js",
25
25
  "module": "./index.js",
26
26
  "types": "./index.d.ts",
@@ -72,10 +72,10 @@
72
72
  }
73
73
  },
74
74
  "dependencies": {
75
- "@babel/runtime": "^7.18.3",
76
- "@polkadot/rpc-core": "8.9.2-8",
77
- "@polkadot/types": "8.9.2-8",
78
- "@polkadot/types-codec": "8.9.2-8",
79
- "@polkadot/util": "^9.5.2-13"
75
+ "@babel/runtime": "^7.18.6",
76
+ "@polkadot/rpc-core": "8.11.1",
77
+ "@polkadot/types": "8.11.1",
78
+ "@polkadot/types-codec": "8.11.1",
79
+ "@polkadot/util": "^9.7.1"
80
80
  }
81
81
  }
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.9.2-8'
8
+ version: '8.11.1'
9
9
  };