forked from pancakeswap/pancake-swap-interface-v1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreact-app-env.d.ts
34 lines (28 loc) · 912 Bytes
/
react-app-env.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/// <reference types="react-scripts" />
declare module 'jazzicon' {
export default function(diameter: number, seed: number): HTMLElement
}
declare module 'fortmatic'
interface Window {
ethereum?: {
isMetaMask?: true
on?: (...args: any[]) => void
removeListener?: (...args: any[]) => void
}
web3?: any
BinanceChain?: BinanceChain
}
declare module 'content-hash' {
declare function decode(x: string): string
declare function getCodec(x: string): string
}
declare module 'multihashes' {
declare function decode(buff: Uint8Array): { code: number; name: string; length: number; digest: Uint8Array }
declare function toB58String(hash: Uint8Array): string
}
interface BinanceChain {
send: unknown
enable: () => Promise<string[]>
on?: (method: string, listener: (...args: any[]) => void) => void
removeListener?: (method: string, listener: (...args: any[]) => void) => void
}