eip-1193 0.3.4 → 0.3.6

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.
Files changed (2) hide show
  1. package/index.d.ts +18 -1
  2. package/package.json +6 -9
package/index.d.ts CHANGED
@@ -10,7 +10,7 @@ export type EIP1193Transaction = {
10
10
  hash: EIP1193DATA;
11
11
  input: EIP1193DATA;
12
12
  nonce: EIP1193QUANTITY;
13
- to: EIP1193Account;
13
+ to: EIP1193Account | null;
14
14
  transactionIndex: EIP1193QUANTITY | null;
15
15
  value: EIP1193QUANTITY;
16
16
  v: EIP1193QUANTITY;
@@ -644,6 +644,23 @@ export type EIP1193ProviderWithoutEvents<T = EIP1193Request> = {
644
644
  // request(args: EIP1193GenericRequest): Promise<unknown>;
645
645
  };
646
646
 
647
+ export type EIP119DebugTraceTransactionRequest = {
648
+ readonly method: "debug_traceTransaction";
649
+ readonly params: [EIP1193DATA];
650
+ };
651
+
652
+ export type EIP1193TracedTransaction = {
653
+ failed: boolean;
654
+ gas: EIP1193QUANTITY;
655
+ returnValue: EIP1193DATA;
656
+ structLogs: any[]; // TODO
657
+ // TODO more
658
+ }
659
+
660
+ export type EIP1193ProviderExtraMethods = {
661
+ request(args: EIP119DebugTraceTransactionRequest): Promise<EIP1193TracedTransaction>;
662
+ };
663
+
647
664
  // export interface EIP1193ProviderWithBasicEvents<T = EIP1193Request>
648
665
  // extends BareEIP1193Provider<T> {
649
666
  // on(
package/package.json CHANGED
@@ -1,12 +1,9 @@
1
1
  {
2
2
  "name": "eip-1193",
3
- "version": "0.3.4",
4
- "description": "Types for EIP-1193",
5
- "keywords": [],
6
- "author": "",
7
- "license": "ISC",
8
- "types": "index.d.ts",
9
- "scripts": {
10
- "test": "echo \"Error: no test specified\" && exit 1"
11
- }
3
+ "version": "0.3.6",
4
+ "description": "Types for EIP-1193 ethereum provider",
5
+ "keywords": ["ethereum", "eip-1193"],
6
+ "author": "Ronan Sandford",
7
+ "license": "MIT",
8
+ "types": "index.d.ts"
12
9
  }