14 lines
526 B
TypeScript
14 lines
526 B
TypeScript
/// <reference types="node" />
|
|
import EventEmitter from "events";
|
|
import { ethers } from "ethers";
|
|
export declare class Eip1193Bridge extends EventEmitter {
|
|
readonly signer: ethers.Signer;
|
|
readonly provider: ethers.providers.Provider;
|
|
constructor(signer: ethers.Signer, provider?: ethers.providers.Provider);
|
|
request(request: {
|
|
method: string;
|
|
params?: Array<any>;
|
|
}): Promise<any>;
|
|
send(method: string, params?: Array<any>): Promise<any>;
|
|
}
|
|
//# sourceMappingURL=eip1193-bridge.d.ts.map
|