-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathenv.js
47 lines (42 loc) · 1.37 KB
/
env.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
45
46
47
/*
The environment variables are set based on the single variable `MAINNET=true`
(or absence thereof) in the root `.env` file. The following env vars are then assigned in
`quasar.config.js`.
*/
require("dotenv").config();
const sharedEnv = {
NETWORK_PROTOCOL: "https",
NETWORK_PORT: 443,
TELOS_ORIGIN: "http://localhost:3030",
TOKENMANAGER_CONTRACT: "tokenmanager",
GOOGLE_ANALYTICS: "UA-154600181-2",
IMGUR_CLIENT_ID: "b6f46df9d1da9d9",
WEBSERVICES_API_KEY: "XXX",
NETWORK_ENV: "shared",
};
const TESTNET = {
...sharedEnv,
APP_NAME: "Telos App (test net)",
NETWORK_HOST: "testnet.telos.net",
NETWORK_CHAIN_ID:
"1eaa0824707c8c16bd25145493bf062aecddfeb56c736f6ba6397f3195f33c9f",
WEBSERVICES_URL: "https://api-dev.telos.net",
HYPERION_URL: "https://testnet.telos.net",
BLOCKCHAIN_EXPLORER: "https://explorer-test.telos.net",
NETWORK_ENV: "testnet",
ARB_CONTRACT: 'testtelosarb',
};
const MAINNET = {
...sharedEnv,
APP_NAME: "Telos App",
NETWORK_HOST: "mainnet.telos.net",
NETWORK_CHAIN_ID:
"4667b205c6838ef70ff7988f6e8257e8be0e1284a2f59699054a018f743b1d11",
WEBSERVICES_URL: "https://api.telos.net",
HYPERION_URL: "https://mainnet.telos.net",
BLOCKCHAIN_EXPLORER: "https://explorer.telos.net",
NETWORK_ENV: "mainnet",
ARB_CONTRACT: 'arbitration',
};
const env = process.env.NETWORK === "mainnet" ? MAINNET : TESTNET;
module.exports = env;