2019-05-15 01:48:48 +03:00
|
|
|
import { Networkish } from "@ethersproject/networks";
|
|
|
|
import { JsonRpcProvider } from "./json-rpc-provider";
|
|
|
|
export declare type AsyncSendable = {
|
|
|
|
isMetaMask?: boolean;
|
|
|
|
host?: string;
|
|
|
|
path?: string;
|
|
|
|
sendAsync?: (request: any, callback: (error: any, response: any) => void) => void;
|
|
|
|
send?: (request: any, callback: (error: any, response: any) => void) => void;
|
|
|
|
};
|
|
|
|
export declare class Web3Provider extends JsonRpcProvider {
|
2019-11-20 12:57:38 +03:00
|
|
|
readonly provider: AsyncSendable;
|
2019-05-15 01:48:48 +03:00
|
|
|
private _sendAsync;
|
|
|
|
constructor(web3Provider: AsyncSendable, network?: Networkish);
|
2020-02-10 23:51:58 +03:00
|
|
|
send(method: string, params: Array<any>): Promise<any>;
|
2019-05-15 01:48:48 +03:00
|
|
|
}
|