13 lines
594 B
TypeScript
13 lines
594 B
TypeScript
|
import { ethers } from "ethers";
|
||
|
export declare class MetamaskProvider extends ethers.providers.Web3Provider {
|
||
|
_pollingAccount: any;
|
||
|
_pollAccountFunc: () => void;
|
||
|
constructor(ethereum?: ethers.providers.AsyncSendable);
|
||
|
getSigner(addressOrIndex?: string | number): ethers.providers.JsonRpcSigner;
|
||
|
readonly enabled: boolean;
|
||
|
_startPollingAccount(): void;
|
||
|
_stopPollingAccount(): void;
|
||
|
on(eventName: ethers.providers.EventType, listener: ethers.providers.Listener): this;
|
||
|
off(eventName: ethers.providers.EventType, listener?: ethers.providers.Listener): this;
|
||
|
}
|