forked from scroll-tech/uniswap-v3-interface
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreact-app-env.d.ts
31 lines (26 loc) · 935 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
/// <reference types="react-scripts" />
declare module '@metamask/jazzicon' {
export default function (diameter: number, seed: number): HTMLElement
}
interface Window {
// walletLinkExtension is injected by the Coinbase Wallet extension
walletLinkExtension?: any
ethereum?: {
// value that is populated and returns true by the Coinbase Wallet mobile dapp browser
isCoinbaseWallet?: true
isMetaMask?: true
autoRefreshOnNetworkChange?: boolean
}
web3?: Record<string, unknown>
}
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
}
declare module 'babel-plugin-relay/macro' {
export { graphql as default } from 'react-relay'
}