eip-1193 0.6.2 → 0.6.4
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/index.d.ts +11 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
export type EIP1193DATA = `0x${string}`;
|
|
5
5
|
export type EIP1193BlockTag = EIP1193QUANTITY | 'latest' | 'earliest' | 'pending' | 'safe' | 'finalized';
|
|
6
6
|
|
|
7
|
+
export type EIP1193INTEGER = EIP1193DATA | number;
|
|
8
|
+
|
|
7
9
|
export type EIP1898BlockTag =
|
|
8
10
|
| EIP1193QUANTITY
|
|
9
11
|
| 'latest'
|
|
@@ -259,7 +261,12 @@ type Listener<Message> = (message: Message) => unknown | Promise<unknown>;
|
|
|
259
261
|
// REQUEST TYPES
|
|
260
262
|
// ------------------------------------------------------------------------------------------------
|
|
261
263
|
|
|
262
|
-
export type Methods = ReadMethods &
|
|
264
|
+
export type Methods = ReadMethods &
|
|
265
|
+
NodeOnlyReadMethods &
|
|
266
|
+
WriteMethods &
|
|
267
|
+
SignerMethods &
|
|
268
|
+
ConnectedAccountMethods &
|
|
269
|
+
WalletOnlyMethods;
|
|
263
270
|
|
|
264
271
|
export type NodeOnlyReadMethods = {
|
|
265
272
|
web3_clientVersion: {result: string};
|
|
@@ -287,7 +294,7 @@ export type ReadMethods = {
|
|
|
287
294
|
eth_getBlockTransactionCountByHash: {params: [EIP1193DATA]; result: EIP1193QUANTITY};
|
|
288
295
|
eth_getBlockTransactionCountByNumber: {params: [EIP1193BlockTag]; result: EIP1193QUANTITY};
|
|
289
296
|
eth_getUncleCountByBlockHash: {params: [EIP1193DATA]; result: EIP1193QUANTITY};
|
|
290
|
-
eth_getUncleCountByBlockNumber: {params: [EIP1193BlockTag];
|
|
297
|
+
eth_getUncleCountByBlockNumber: {params: [EIP1193BlockTag]; result: EIP1193QUANTITY};
|
|
291
298
|
eth_getCode: {params: [EIP1193Account] | [EIP1193Account, EIP1898BlockTag]; result: EIP1193DATA};
|
|
292
299
|
|
|
293
300
|
eth_call: {params: [EIP1193CallParam] | [EIP1193CallParam, EIP1898BlockTag]; result: EIP1193DATA};
|
|
@@ -326,7 +333,7 @@ export type ReadMethods = {
|
|
|
326
333
|
eth_unsubscribe: {params: [EIP1193DATA]; result: boolean};
|
|
327
334
|
eth_getProof: {params: [EIP1193DATA, EIP1193DATA[]] | [EIP1193DATA, EIP1193DATA[], EIP1898BlockTag]; result: unknown}; // TODO
|
|
328
335
|
|
|
329
|
-
eth_feeHistory: {params: [
|
|
336
|
+
eth_feeHistory: {params: [number, EIP1193BlockTag, number[]]; result: EIP1193FeeHistory};
|
|
330
337
|
};
|
|
331
338
|
|
|
332
339
|
export type WriteMethods = {
|
|
@@ -364,7 +371,7 @@ export type DebugOnlyMethods = {
|
|
|
364
371
|
debug_traceTransaction: {params: [EIP1193DATA]; result: EIP1193TracedTransaction};
|
|
365
372
|
};
|
|
366
373
|
|
|
367
|
-
export type WalletMethods = ReadMethods & SignerMethods & ConnectedAccountMethods & WalletOnlyMethods;
|
|
374
|
+
export type WalletMethods = ReadMethods & WriteMethods & SignerMethods & ConnectedAccountMethods & WalletOnlyMethods;
|
|
368
375
|
|
|
369
376
|
export type EIP1193TypedSignatureParam = {[field: string]: any}; // TODO
|
|
370
377
|
|