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.
Files changed (2) hide show
  1. package/index.d.ts +6 -1
  2. 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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eip-1193",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Types for EIP-1193 ethereum provider",
5
5
  "keywords": ["ethereum", "eip-1193"],
6
6
  "author": "Ronan Sandford",