-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.js
44 lines (44 loc) · 1.54 KB
/
config.js
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
const NODE_ENV = process.env.NODE_ENV
const IS_TESTNET = process.env.IS_TESTNET
export const API_PUBLIC_URL = 'https://api.like.co'
export const IPFS_GATEWAY = 'https://w3s.link'
export const ARWEAVE_GATEWAY = 'https://arweave.net'
export const isDev = NODE_ENV === 'development'
export const BASE_PATH = process.env.BASE_PATH
export const INDEXER = IS_TESTNET
? 'https://node.testnet.like.co'
: 'https://mainnet-node.like.co'
export const DEFAULT_GAS_PRICE_NUMBER = 10000
export const WALLET_CONFIG = IS_TESTNET
? {
chainId: 'likecoin-public-testnet-5',
chainName: 'LikeCoin',
rpcURL: 'https://node.testnet.like.co/rpc/',
restURL: 'https://node.testnet.like.co',
coinType: 118,
coinDenom: 'EKIL',
coinMinimalDenom: 'nanoekil',
coinDecimals: 9,
bech32PrefixAccAddr: 'like',
bech32PrefixAccPub: 'likepub',
bech32PrefixValAddr: 'likevaloper',
bech32PrefixValPub: 'likevaloperpub',
bech32PrefixConsAddr: 'likevalcons',
bech32PrefixConsPub: 'likevalconspub',
}
: {
chainId: 'likecoin-mainnet-2',
chainName: 'LikeCoin',
rpcURL: 'https://mainnet-node.like.co/rpc/',
restURL: 'https://mainnet-node.like.co',
coinType: 118,
coinDenom: 'LIKE',
coinMinimalDenom: 'nanolike',
coinDecimals: 9,
bech32PrefixAccAddr: 'like',
bech32PrefixAccPub: 'likepub',
bech32PrefixValAddr: 'likevaloper',
bech32PrefixValPub: 'likevaloperpub',
bech32PrefixConsAddr: 'likevalcons',
bech32PrefixConsPub: 'likevalconspub',
}