2020-03-12 21:14:50 +03:00
|
|
|
/// <reference types="node" />
|
|
|
|
import EventEmitter from "events";
|
|
|
|
import { ethers } from "ethers";
|
2021-04-18 09:48:05 +03:00
|
|
|
export declare class Eip1193Bridge extends EventEmitter {
|
2020-03-12 21:14:50 +03:00
|
|
|
readonly signer: ethers.Signer;
|
|
|
|
readonly provider: ethers.providers.Provider;
|
|
|
|
constructor(signer: ethers.Signer, provider?: ethers.providers.Provider);
|
2021-04-20 04:30:28 +03:00
|
|
|
request(request: {
|
|
|
|
method: string;
|
|
|
|
params?: Array<any>;
|
|
|
|
}): Promise<any>;
|
2020-03-12 21:14:50 +03:00
|
|
|
send(method: string, params?: Array<any>): Promise<any>;
|
|
|
|
}
|
2021-01-19 13:22:54 +03:00
|
|
|
//# sourceMappingURL=eip1193-bridge.d.ts.map
|