2019-07-18 16:05:09 +02:00
|
|
|
require('dotenv').config()
|
|
|
|
|
2021-06-03 16:23:30 +02:00
|
|
|
const { jobType, networkConfig } = require('./constants')
|
|
|
|
|
|
|
|
const netId = Number(process.env.NET_ID) || 56
|
|
|
|
const { instances, gasPrices, nativeCurrency, proxyLight } = networkConfig[`netId${netId}`]
|
|
|
|
|
2020-10-06 13:20:26 +02:00
|
|
|
module.exports = {
|
2021-06-03 16:23:30 +02:00
|
|
|
netId,
|
2020-09-28 04:28:34 +02:00
|
|
|
redisUrl: process.env.REDIS_URL || 'redis://127.0.0.1:6379',
|
2020-10-14 13:43:38 +02:00
|
|
|
httpRpcUrl: process.env.HTTP_RPC_URL,
|
2019-12-23 17:38:44 +01:00
|
|
|
oracleRpcUrl: process.env.ORACLE_RPC_URL || 'https://mainnet.infura.io/',
|
2020-10-14 21:36:34 +02:00
|
|
|
minerMerkleTreeHeight: 20,
|
2019-07-18 16:05:09 +02:00
|
|
|
privateKey: process.env.PRIVATE_KEY,
|
2021-06-03 16:23:30 +02:00
|
|
|
instances,
|
2020-09-28 04:28:34 +02:00
|
|
|
port: process.env.APP_PORT || 8000,
|
2020-10-05 16:22:52 +02:00
|
|
|
tornadoServiceFee: Number(process.env.REGULAR_TORNADO_WITHDRAW_FEE),
|
2020-10-06 13:20:26 +02:00
|
|
|
rewardAccount: process.env.REWARD_ACCOUNT,
|
2021-06-03 16:23:30 +02:00
|
|
|
gasPrices,
|
2020-10-05 16:22:52 +02:00
|
|
|
gasLimits: {
|
2021-03-09 19:13:51 +01:00
|
|
|
[jobType.TORNADO_WITHDRAW]: 390000,
|
2020-10-05 16:22:52 +02:00
|
|
|
},
|
2021-06-03 16:23:30 +02:00
|
|
|
proxyLight,
|
|
|
|
nativeCurrency,
|
|
|
|
minimumBalance: '500000000000000000', // 0.5
|
2020-05-08 19:29:31 +02:00
|
|
|
}
|