eip-1193 0.2.2 → 0.2.3

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 +27 -7
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -203,19 +203,19 @@ export type EIP1193BlockNumberRequest = {
203
203
 
204
204
  export type EIP1193GetBalanceRequest = {
205
205
  readonly method: "eth_getBalance";
206
- readonly params: [EIP1193Account] | [EIP1193Account, EIP1193BlockTag];
206
+ readonly params: [EIP1193Account] | [EIP1193Account, EIP1898BlockTag];
207
207
  };
208
208
 
209
209
  export type EIP1193GetStorageAtRequest = {
210
210
  readonly method: "eth_getStorageAt";
211
211
  readonly params:
212
212
  | [EIP1193Account, EIP1193QUANTITY]
213
- | [EIP1193Account, EIP1193QUANTITY, EIP1193BlockTag];
213
+ | [EIP1193Account, EIP1193QUANTITY, EIP1898BlockTag];
214
214
  };
215
215
 
216
216
  export type EIP1193GetTransactionCountRequest = {
217
217
  readonly method: "eth_getTransactionCount";
218
- readonly params: [EIP1193Account] | [EIP1193Account, EIP1193BlockTag];
218
+ readonly params: [EIP1193Account] | [EIP1193Account, EIP1898BlockTag];
219
219
  };
220
220
 
221
221
  export type EIP1193GetTransactionCountByHashRequest = {
@@ -240,7 +240,7 @@ export type EIP1193GetUncleCountByBlockNumberRequest = {
240
240
 
241
241
  export type EIP1193GetCodeRequest = {
242
242
  readonly method: "eth_getCode";
243
- readonly params: [EIP1193Account] | [EIP1193Account, EIP1193BlockTag];
243
+ readonly params: [EIP1193Account] | [EIP1193Account, EIP1898BlockTag];
244
244
  };
245
245
 
246
246
  export type EIP1193LegacySignRequest = {
@@ -265,12 +265,12 @@ export type EIP1193SendRawTransactionRequest = {
265
265
 
266
266
  export type EIP119CallRequest = {
267
267
  readonly method: "eth_call";
268
- readonly params: [EIP1193CallParam] | [EIP1193CallParam, EIP1193BlockTag];
268
+ readonly params: [EIP1193CallParam] | [EIP1193CallParam, EIP1898BlockTag];
269
269
  };
270
270
 
271
271
  export type EIP119EstimateGasRequest = {
272
272
  readonly method: "eth_estimateGas";
273
- readonly params: [EIP1193CallParam] | [EIP1193CallParam, EIP1193BlockTag];
273
+ readonly params: [EIP1193CallParam] | [EIP1193CallParam, EIP1193BlockTag]; // EIP1898BlockTag ?
274
274
  };
275
275
 
276
276
  export type EIP119GetBlockByHashRequest<T extends boolean = false> = {
@@ -383,6 +383,13 @@ export type EIP1193UnsubscribeRequest = {
383
383
  readonly params: [EIP1193DATA];
384
384
  };
385
385
 
386
+ export type EIP1193GetProofRequest = {
387
+ readonly method: "eth_getProof";
388
+ readonly params:
389
+ | [EIP1193DATA, EIP1193DATA[]]
390
+ | [EIP1193DATA, EIP1193DATA[], EIP1898BlockTag];
391
+ };
392
+
386
393
  // ------------------------------------------------------------------------------------------------
387
394
 
388
395
  export type EIP1193Request =
@@ -652,7 +659,20 @@ export type EIP1193BlockTag =
652
659
  | EIP1193QUANTITY
653
660
  | "latest"
654
661
  | "earliest"
655
- | "pending";
662
+ | "pending"
663
+ | "safe"
664
+ | "finalized";
665
+
666
+ export type EIP1898BlockTag =
667
+ | EIP1193QUANTITY
668
+ | "latest"
669
+ | "earliest"
670
+ | "pending"
671
+ | "safe"
672
+ | "finalized"
673
+ | { blockHash: EIP1193QUANTITY; requireCanonical?: boolean } // EIP-1898
674
+ | { blockNumber: EIP1193QUANTITY }; // EIP-1898
675
+
656
676
  export type EIP1193QUANTITY = `0x${string}`;
657
677
  export type EIP1193ChainId = `0x${string}`;
658
678
  export type EIP1193Account = `0x${string}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eip-1193",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Types for EIP-1193",
5
5
  "keywords": [],
6
6
  "author": "",