ethers.js/packages/experimental/lib.esm/metamask-provider.d.ts

13 lines
641 B
TypeScript
Raw Permalink Normal View History

2019-05-14 18:48:48 -04:00
import { ethers } from "ethers";
export declare class MetamaskProvider extends ethers.providers.Web3Provider {
_pollingAccount: any;
_pollAccountFunc: () => void;
2020-04-27 06:31:43 -04:00
constructor(ethereum?: ethers.providers.ExternalProvider);
2019-05-14 18:48:48 -04:00
getSigner(addressOrIndex?: string | number): ethers.providers.JsonRpcSigner;
get enabled(): boolean;
2019-05-14 18:48:48 -04: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;
}
//# sourceMappingURL=metamask-provider.d.ts.map