ethers.js/packages/experimental/lib/eip-provider.d.ts
2020-02-10 15:51:58 -05:00

11 lines
471 B
TypeScript

import { ethers } from "ethers";
export interface Eip1193Provider {
send: (message: string, params?: Array<any>) => Promise<any>;
on(eventName: string, listener: (...args: Array<any>) => void): this;
}
export declare class EipWrappedProvider extends ethers.providers.JsonRpcProvider {
readonly provider: Eip1193Provider;
constructor(provider: Eip1193Provider, network?: ethers.providers.Networkish);
send(method: string, params: any): Promise<any>;
}