2020-02-26 20:00:59 +03:00
|
|
|
/// <reference types="react-scripts" />
|
2020-08-27 20:24:03 +03:00
|
|
|
|
2021-05-21 01:10:39 +03:00
|
|
|
declare module '@metamask/jazzicon' {
|
2021-02-16 11:46:17 +03:00
|
|
|
export default function (diameter: number, seed: number): HTMLElement
|
2020-08-27 20:24:03 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
declare module 'fortmatic'
|
|
|
|
|
|
|
|
interface Window {
|
2021-11-18 20:29:56 +03:00
|
|
|
// walletLinkExtension is injected by the Coinbase Wallet extension
|
|
|
|
walletLinkExtension?: any
|
2020-08-27 20:24:03 +03:00
|
|
|
ethereum?: {
|
2021-11-18 20:29:56 +03:00
|
|
|
// value that is populated and returns true by the Coinbase Wallet mobile dapp browser
|
|
|
|
isCoinbaseWallet?: true
|
2020-08-27 20:24:03 +03:00
|
|
|
isMetaMask?: true
|
2021-02-01 18:44:47 +03:00
|
|
|
autoRefreshOnNetworkChange?: boolean
|
2020-08-27 20:24:03 +03:00
|
|
|
}
|
2021-03-31 10:40:13 +03:00
|
|
|
web3?: Record<string, unknown>
|
2020-08-27 20:24:03 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|