mirror of
https://github.com/logos-messaging/logos-delivery-frontend.git
synced 2026-05-19 12:09:24 +00:00
15 lines
393 B
TypeScript
15 lines
393 B
TypeScript
/// <reference types="react-scripts" />
|
|
|
|
type EthereumEvents = "accountsChanged" | "chainChanged";
|
|
type EthereumEventListener = (v: any) => void;
|
|
|
|
type Ethereum = {
|
|
request: (v?: any) => Promise<void>;
|
|
on: (name: EthereumEvents, fn: EthereumEventListener) => void;
|
|
removeListener: (name: EthereumEvents, fn: EthereumEventListener) => void;
|
|
};
|
|
|
|
interface Window {
|
|
ethereum: Ethereum;
|
|
}
|