eip-1193 0.3.5 → 0.4.0
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 +39 -39
- package/package.json +6 -8
package/index.d.ts
CHANGED
|
@@ -299,57 +299,57 @@ export type EIP1193SendRawTransactionRequest = {
|
|
|
299
299
|
readonly params: [EIP1193DATA];
|
|
300
300
|
};
|
|
301
301
|
|
|
302
|
-
export type
|
|
302
|
+
export type EIP1193CallRequest = {
|
|
303
303
|
readonly method: "eth_call";
|
|
304
304
|
readonly params: [EIP1193CallParam] | [EIP1193CallParam, EIP1898BlockTag];
|
|
305
305
|
};
|
|
306
306
|
|
|
307
|
-
export type
|
|
307
|
+
export type EIP1193EstimateGasRequest = {
|
|
308
308
|
readonly method: "eth_estimateGas";
|
|
309
309
|
readonly params: [EIP1193CallParam] | [EIP1193CallParam, EIP1193BlockTag]; // EIP1898BlockTag ?
|
|
310
310
|
};
|
|
311
311
|
|
|
312
|
-
export type
|
|
312
|
+
export type EIP1193GetBlockByHashRequest<T extends boolean = false> = {
|
|
313
313
|
readonly method: "eth_getBlockByHash";
|
|
314
314
|
readonly params: [EIP1193DATA, T];
|
|
315
315
|
};
|
|
316
316
|
|
|
317
|
-
export type
|
|
317
|
+
export type EIP1193GetBlockByNumberRequest<T = false> = {
|
|
318
318
|
readonly method: "eth_getBlockByNumber";
|
|
319
319
|
readonly params: [EIP1193BlockTag, T];
|
|
320
320
|
};
|
|
321
321
|
|
|
322
|
-
export type
|
|
322
|
+
export type EIP1193GetTransactionByHashRequest = {
|
|
323
323
|
readonly method: "eth_getTransactionByHash";
|
|
324
324
|
readonly params: [EIP1193DATA];
|
|
325
325
|
};
|
|
326
326
|
|
|
327
|
-
export type
|
|
327
|
+
export type EIP1193GetTransactionByBlockHashAndIndexRequest = {
|
|
328
328
|
readonly method: "eth_getTransactionByBlockHashAndIndex";
|
|
329
329
|
readonly params: [EIP1193DATA, EIP1193QUANTITY];
|
|
330
330
|
};
|
|
331
331
|
|
|
332
|
-
export type
|
|
332
|
+
export type EIP1193GetTransactionByBlockNumberAndIndexRequest = {
|
|
333
333
|
readonly method: "eth_getTransactionByBlockNumberAndIndex";
|
|
334
334
|
readonly params: [EIP1193BlockTag, EIP1193QUANTITY];
|
|
335
335
|
};
|
|
336
336
|
|
|
337
|
-
export type
|
|
337
|
+
export type EIP1193GetTransactionReceiptRequest = {
|
|
338
338
|
readonly method: "eth_getTransactionReceipt";
|
|
339
339
|
readonly params: [EIP1193DATA];
|
|
340
340
|
};
|
|
341
341
|
|
|
342
|
-
export type
|
|
342
|
+
export type EIP1193GetUncleByBlockHashAndIndexRequest = {
|
|
343
343
|
readonly method: "eth_getUncleByBlockHashAndIndex";
|
|
344
344
|
readonly params: [EIP1193DATA, EIP1193QUANTITY];
|
|
345
345
|
};
|
|
346
346
|
|
|
347
|
-
export type
|
|
347
|
+
export type EIP1193GetUncleByBlockNumberAndIndexRequest = {
|
|
348
348
|
readonly method: "eth_getUncleByBlockNumberAndIndex";
|
|
349
349
|
readonly params: [EIP1193BlockTag, EIP1193QUANTITY];
|
|
350
350
|
};
|
|
351
351
|
|
|
352
|
-
export type
|
|
352
|
+
export type EIP1193GetLogsRequest = {
|
|
353
353
|
readonly method: "eth_getLogs";
|
|
354
354
|
readonly params: [EIP1193LogsParam];
|
|
355
355
|
};
|
|
@@ -453,19 +453,19 @@ export type EIP1193Request =
|
|
|
453
453
|
| EIP1193SignTransactionRequest
|
|
454
454
|
| EIP1193SendTransactionRequest
|
|
455
455
|
| EIP1193SendRawTransactionRequest
|
|
456
|
-
|
|
|
457
|
-
|
|
|
458
|
-
|
|
|
459
|
-
|
|
|
460
|
-
|
|
|
461
|
-
|
|
|
462
|
-
|
|
|
463
|
-
|
|
|
464
|
-
|
|
|
465
|
-
|
|
|
466
|
-
|
|
|
467
|
-
|
|
|
468
|
-
|
|
|
456
|
+
| EIP1193CallRequest
|
|
457
|
+
| EIP1193EstimateGasRequest
|
|
458
|
+
| EIP1193GetBlockByHashRequest<false>
|
|
459
|
+
| EIP1193GetBlockByNumberRequest<false>
|
|
460
|
+
| EIP1193GetBlockByHashRequest<true>
|
|
461
|
+
| EIP1193GetBlockByNumberRequest<true>
|
|
462
|
+
| EIP1193GetTransactionByHashRequest
|
|
463
|
+
| EIP1193GetTransactionByBlockHashAndIndexRequest
|
|
464
|
+
| EIP1193GetTransactionByBlockNumberAndIndexRequest
|
|
465
|
+
| EIP1193GetTransactionReceiptRequest
|
|
466
|
+
| EIP1193GetUncleByBlockHashAndIndexRequest
|
|
467
|
+
| EIP1193GetUncleByBlockNumberAndIndexRequest
|
|
468
|
+
| EIP1193GetLogsRequest
|
|
469
469
|
| EIP1193PersonalSignRequest
|
|
470
470
|
| EIP1193PTypedSignv4Request
|
|
471
471
|
| EIP1193PTypedSignRequest
|
|
@@ -601,33 +601,33 @@ export type EIP1193ProviderWithoutEvents<T = EIP1193Request> = {
|
|
|
601
601
|
request(args: EIP1193SignTransactionRequest): Promise<EIP1193DATA>;
|
|
602
602
|
request(args: EIP1193SendTransactionRequest): Promise<EIP1193DATA>;
|
|
603
603
|
request(args: EIP1193SendRawTransactionRequest): Promise<EIP1193DATA>;
|
|
604
|
-
request(args:
|
|
605
|
-
request(args:
|
|
606
|
-
request(args:
|
|
607
|
-
request(args:
|
|
604
|
+
request(args: EIP1193CallRequest): Promise<EIP1193DATA>;
|
|
605
|
+
request(args: EIP1193EstimateGasRequest): Promise<EIP1193QUANTITY>;
|
|
606
|
+
request(args: EIP1193GetBlockByHashRequest): Promise<EIP1193Block | null>;
|
|
607
|
+
request(args: EIP1193GetBlockByNumberRequest): Promise<EIP1193Block | null>;
|
|
608
608
|
request(
|
|
609
|
-
args:
|
|
609
|
+
args: EIP1193GetBlockByHashRequest<true>
|
|
610
610
|
): Promise<EIP1193BlockWithTransactions | null>;
|
|
611
611
|
request(
|
|
612
|
-
args:
|
|
612
|
+
args: EIP1193GetBlockByNumberRequest<true>
|
|
613
613
|
): Promise<EIP1193BlockWithTransactions | null>;
|
|
614
|
-
request(args:
|
|
614
|
+
request(args: EIP1193GetTransactionByHashRequest): Promise<EIP1193Transaction | null>;
|
|
615
615
|
request(
|
|
616
|
-
args:
|
|
616
|
+
args: EIP1193GetTransactionByBlockHashAndIndexRequest
|
|
617
617
|
): Promise<EIP1193Transaction | null>;
|
|
618
618
|
request(
|
|
619
|
-
args:
|
|
619
|
+
args: EIP1193GetTransactionByBlockNumberAndIndexRequest
|
|
620
620
|
): Promise<EIP1193Transaction | null>;
|
|
621
621
|
request(
|
|
622
|
-
args:
|
|
622
|
+
args: EIP1193GetTransactionReceiptRequest
|
|
623
623
|
): Promise<EIP1193TransactionReceipt | null>;
|
|
624
624
|
request(
|
|
625
|
-
args:
|
|
625
|
+
args: EIP1193GetUncleByBlockHashAndIndexRequest
|
|
626
626
|
): Promise<EIP1193Block | null>;
|
|
627
627
|
request(
|
|
628
|
-
args:
|
|
628
|
+
args: EIP1193GetUncleByBlockNumberAndIndexRequest
|
|
629
629
|
): Promise<EIP1193Block | null>;
|
|
630
|
-
request(args:
|
|
630
|
+
request(args: EIP1193GetLogsRequest): Promise<EIP1193Log[]>;
|
|
631
631
|
request(args: EIP1193PersonalSignRequest): Promise<EIP1193DATA>;
|
|
632
632
|
request(args: EIP1193PTypedSignv4Request): Promise<EIP1193DATA>;
|
|
633
633
|
request(args: EIP1193PTypedSignRequest): Promise<EIP1193DATA>;
|
|
@@ -644,7 +644,7 @@ export type EIP1193ProviderWithoutEvents<T = EIP1193Request> = {
|
|
|
644
644
|
// request(args: EIP1193GenericRequest): Promise<unknown>;
|
|
645
645
|
};
|
|
646
646
|
|
|
647
|
-
export type
|
|
647
|
+
export type EIP1193DebugTraceTransactionRequest = {
|
|
648
648
|
readonly method: "debug_traceTransaction";
|
|
649
649
|
readonly params: [EIP1193DATA];
|
|
650
650
|
};
|
|
@@ -658,7 +658,7 @@ export type EIP1193TracedTransaction = {
|
|
|
658
658
|
}
|
|
659
659
|
|
|
660
660
|
export type EIP1193ProviderExtraMethods = {
|
|
661
|
-
request(args:
|
|
661
|
+
request(args: EIP1193DebugTraceTransactionRequest): Promise<EIP1193TracedTransaction>;
|
|
662
662
|
};
|
|
663
663
|
|
|
664
664
|
// export interface EIP1193ProviderWithBasicEvents<T = EIP1193Request>
|
package/package.json
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eip-1193",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Types for EIP-1193",
|
|
5
|
-
"keywords": [],
|
|
6
|
-
"author": "",
|
|
7
|
-
"license": "
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "Types for EIP-1193 ethereum provider",
|
|
5
|
+
"keywords": ["ethereum", "eip-1193"],
|
|
6
|
+
"author": "Ronan Sandford",
|
|
7
|
+
"license": "MIT",
|
|
8
8
|
"types": "index.d.ts",
|
|
9
|
-
"
|
|
10
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
11
|
-
}
|
|
9
|
+
"files": ["index.d.ts"]
|
|
12
10
|
}
|