aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-shared/src/utils/constants.ts
blob: 562ab776b5030b7f8fcb7d064c99bb7e998c3238 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { Networks } from '../types';

export const constants = {
    DOCS_SCROLL_DURATION_MS: 0,
    DOCS_CONTAINER_ID: 'documentation',
    SCROLL_CONTAINER_ID: 'documentation',
    SCROLL_TOP_ID: 'pageScrollTop',
    NETWORK_NAME_BY_ID: {
        1: Networks.Mainnet,
        3: Networks.Ropsten,
        4: Networks.Rinkeby,
        42: Networks.Kovan,
    } as { [symbol: number]: string },
    NETWORK_ID_BY_NAME: {
        [Networks.Mainnet]: 1,
        [Networks.Ropsten]: 3,
        [Networks.Rinkeby]: 4,
        [Networks.Kovan]: 42,
    } as { [networkName: string]: number },
};