eip-1193 0.0.3 → 0.0.4
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 +2 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -448,7 +448,7 @@ export type EIP1193SwitchChainError = {
|
|
|
448
448
|
|
|
449
449
|
type Listener<Message> = (message: Message) => unknown | Promise<unknown>;
|
|
450
450
|
|
|
451
|
-
export type EIP1193Provider<T =
|
|
451
|
+
export type EIP1193Provider<T = EIP1193Request> = {
|
|
452
452
|
on(
|
|
453
453
|
eventName: "message" | "disconnect",
|
|
454
454
|
listener: Listener<EIP1193ProviderMessage | EIP1193EthSubscription>
|
|
@@ -534,7 +534,7 @@ export type EIP1193Provider<T = {}, U = EIP1193Request> = T & {
|
|
|
534
534
|
args: ERIP1193SwitchChainRequest
|
|
535
535
|
): Promise<EIP1193SwitchChainError | null>;
|
|
536
536
|
request?(args: ERIP1193AddChainRequest): Promise<EIP1193AddChainError | null>;
|
|
537
|
-
request(args:
|
|
537
|
+
request(args: T): Promise<unknown>;
|
|
538
538
|
// request(args: EIP1193GenericRequest): Promise<unknown>;
|
|
539
539
|
};
|
|
540
540
|
|