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.
- package/index.d.ts +7 -3
- 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
|
-
|
|
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;
|