-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
41 lines (40 loc) · 1.45 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
import 'dotenv/config';
export const config = {
"PORT": process.env.PORT, // Port on which we run the server
"INFURA_ID": process.env.INFURA_ID, // Project ID from Infura
"INFURA_SECRET": process.env.INFURA_SECRET, // Project Secret from Infura
"NOW_NODES": process.env.NOW_NODES, // NOWNodes API key
"NN_URL": ".nownodes.io/api/v2/address/", // Common static component of NOWNodes endpoints
"NN_SUFFIX": "?details=basic", // Common static component of NOWNodes endpoints
"BA_PREFIX": "https://api.blockchain.com/v3/exchange/tickers/", // Common static component of Blockchain.com endpoints
"BOOKS": { // (Ordered) Dynamic components of NOWNodes endpoints
"btc": "https://btcbook",
"ltc": "https://ltcbook",
"doge": "https://dogebook",
"eth": "https://eth-blockbook"
},
"ERROR_LIST": [ // Objects from './errors.js' for error checking
"ArgError",
"AssetError",
"DomainError",
"UpstreamError"
],
"COIN_TYPES": [ // (Ordered) SLIP-0044 coin types for supported assets
"0",
"2",
"3",
"60"
],
"COIN_NAMES": [ // (Ordered) ticker symbols corresponding to coin_types
"btc",
"ltc",
"doge",
"eth"
],
"SCALE": { // (Ordered) We divide raw balance by this number to get native balance
"btc": 8,
"ltc": 8,
"doge": 8,
"eth": 18
}
}