eip-1193 0.0.4 → 0.1.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.
Files changed (2) hide show
  1. package/index.d.ts +7 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -138,7 +138,7 @@ export type EIP1193LogsParam = {
138
138
  fromBlock?: BlockTag;
139
139
  toBlock?: BlockTag;
140
140
  address?: EIP1193Account | EIP1193Accounts;
141
- topics?: DATA[];
141
+ topics?: (DATA | DATA[])[];
142
142
  blockhash?: DATA;
143
143
  };
144
144
 
@@ -403,8 +403,12 @@ export type EIP1193Request =
403
403
  | EIP1193ChainIdRequest
404
404
  | EIP1193RequestAccountsRequest
405
405
  | ERIP1193SwitchChainRequest
406
- | ERIP1193AddChainRequest
407
- | EIP1193GenericRequest;
406
+ | ERIP1193AddChainRequest;
407
+
408
+ export type EIP1193GenericRequest = {
409
+ method: string;
410
+ params?: any[];
411
+ };
408
412
 
409
413
  export interface EIP1193ProviderRpcError extends Error {
410
414
  message: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eip-1193",
3
- "version": "0.0.4",
3
+ "version": "0.1.0",
4
4
  "description": "Types for EIP-1193",
5
5
  "keywords": [],
6
6
  "author": "",