-
Notifications
You must be signed in to change notification settings - Fork 32
/
constants.ts
47 lines (41 loc) · 1.53 KB
/
constants.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
35
36
37
38
39
40
41
42
43
44
45
46
47
/* WALLET TYPES */
export const LEDGER = 'LEDGER'
export const HD_WALLET = 'HD_WALLET'
export const SINGLE_KEY = 'SINGLE_KEY'
/* LOGIN OPTIONS */
export const IMPORT_MNEMONIC = 'IMPORT_MNEMONIC'
export const CREATE_MNEMONIC = 'CREATE_MNEMONIC'
export const IMPORT_SINGLE_KEY = 'IMPORT_SINGLE_KEY'
export const METAMASK = 'METAMASK'
/* API ENDPOINTS */
export const FILSCAN = 'https://api.filscan.io:8700/v0/filscan'
export const FILSCAN_JSONRPC = 'https://api.filscan.io:8700/rpc/v1'
export const FILSCOUT = 'https://filscoutv3api.ipfsunion.cn'
export const FILFOX = 'https://filfox.info/api'
export const GLIF_DISCORD = 'https://discord.gg/B9ju5Eu4Rq'
export const GLIF_TWITTER = 'https://twitter.com/glifio'
/* NETWORK VARS */
export const MAINNET = 'f'
export const TESTNET = 't'
export const MAINNET_PATH_CODE = 461
export const TESTNET_PATH_CODE = 1
/* FILECOIN APP VERSION MIN */
export const LEDGER_VERSION_MAJOR = 0
export const LEDGER_VERSION_MINOR = 20
export const LEDGER_VERSION_PATCH = 0
/* PAGES */
/* eslint-disable no-unused-vars */
export enum PAGE {
LANDING = '/',
WALLET_HOME = '/home',
WALLET_SEND = '/send',
WALLET_CHOOSE_ACCOUNTS = '/home/accounts',
SPEED_UP = '/message/speed-up',
CANCEL = '/message/cancel',
CONNECT_MM = '/connect/metamask',
CONNECT_LEDGER = '/connect/ledger',
CONNECT_BURNER_IMPORT_SEED = '/connect/burner/import-seed',
CONNECT_BURNER_IMPORT_PK = '/connect/burner/import-private-key',
CONNECT_BURNER_CREATE_SEED = '/connect/burner/create-seed',
NODE_DISCONNECTED = '/error/node-disconnected'
}