Skip to content

Commit 429913f

Browse files
committed
fix: build errors
1 parent effc9ba commit 429913f

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

front-end/src/global.d.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* Global type declarations for Ethereum provider
3+
*/
4+
5+
interface EthereumProvider {
6+
isMetaMask?: boolean;
7+
isCoinbaseWallet?: boolean;
8+
providers?: EthereumProvider[];
9+
request: (args: { method: string; params?: any[] }) => Promise<any>;
10+
on?: (event: string, handler: (...args: any[]) => void) => void;
11+
removeListener?: (event: string, handler: (...args: any[]) => void) => void;
12+
selectedAddress?: string | null;
13+
chainId?: string;
14+
}
15+
16+
interface Window {
17+
ethereum?: EthereumProvider;
18+
coinbaseWalletExtension?: EthereumProvider;
19+
}

0 commit comments

Comments
 (0)