web3-react-okexchain-connector
Version:
A simple, maximally extensible, dependency minimized framework for building modern Ethereum dApps
11 lines (10 loc) • 330 B
TypeScript
interface Ethereum {
send: unknown;
enable: () => Promise<string[]>;
on?: (method: string, listener: (...args: any[]) => void) => void;
removeListener?: (method: string, listener: (...args: any[]) => void) => void;
}
declare interface Window {
okexchain?: Ethereum;
}
declare const __DEV__: boolean;