2019-05-15 01:48:48 +03:00
|
|
|
import { ethers } from "ethers";
|
|
|
|
export declare class MetamaskProvider extends ethers.providers.Web3Provider {
|
|
|
|
_pollingAccount: any;
|
|
|
|
_pollAccountFunc: () => void;
|
2020-04-27 13:31:43 +03:00
|
|
|
constructor(ethereum?: ethers.providers.ExternalProvider);
|
2019-05-15 01:48:48 +03:00
|
|
|
getSigner(addressOrIndex?: string | number): ethers.providers.JsonRpcSigner;
|
2020-03-22 21:57:17 +03:00
|
|
|
get enabled(): boolean;
|
2019-05-15 01:48:48 +03:00
|
|
|
_startPollingAccount(): void;
|
|
|
|
_stopPollingAccount(): void;
|
|
|
|
on(eventName: ethers.providers.EventType, listener: ethers.providers.Listener): this;
|
|
|
|
off(eventName: ethers.providers.EventType, listener?: ethers.providers.Listener): this;
|
|
|
|
}
|
2021-01-19 13:22:54 +03:00
|
|
|
//# sourceMappingURL=metamask-provider.d.ts.map
|