eip-1193 0.6.0 → 0.6.1
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 +6 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -457,7 +457,12 @@ export type RequestUnion<T extends RPCMethods> = {
|
|
|
457
457
|
// PROVIDERS
|
|
458
458
|
// ------------------------------------------------------------------------------------------------
|
|
459
459
|
|
|
460
|
-
export type RequestRPC<T extends RPCMethods> = UnionToIntersection<RequestUnion<T
|
|
460
|
+
export type RequestRPC<T extends RPCMethods> = UnionToIntersection<RequestUnion<T>> & {
|
|
461
|
+
request<U extends {params?: any; result?: any}>(req: {
|
|
462
|
+
method: string;
|
|
463
|
+
params: DeepReadonly<U['params']>;
|
|
464
|
+
}): Promise<U['result']>;
|
|
465
|
+
};
|
|
461
466
|
|
|
462
467
|
export type EIP1193ProviderWithoutEvents = RequestRPC<Methods>;
|
|
463
468
|
|