move aggregator to env

This commit is contained in:
Roman Storm 2020-11-20 00:16:37 -08:00
parent 0dc148a806
commit 4f7089a2bc
No known key found for this signature in database
GPG Key ID: 522F2A785F34E71F
2 changed files with 4 additions and 3 deletions

View File

@ -18,4 +18,6 @@ REWARD_ACCOUNT=
# in GWEI
MAX_GAS_PRICE=1000
CONFIRMATIONS=8
AGGREGATOR=
# 0xe4886c5f705850603f44bf730eb68749DA6DeB69 - goerli
# 0x3a02d7828722059FCf570DA19b74B16ca69Cb770 - kovan

View File

@ -2,7 +2,6 @@ require('dotenv').config()
const jobType = require('./jobTypes')
const tornConfig = require('torn-token')
module.exports = {
netId: Number(process.env.NET_ID) || 42,
redisUrl: process.env.REDIS_URL || 'redis://127.0.0.1:6379',
@ -10,7 +9,7 @@ module.exports = {
wsRpcUrl: process.env.WS_RPC_URL,
oracleRpcUrl: process.env.ORACLE_RPC_URL || 'https://mainnet.infura.io/',
oracleAddress: '0xA2b8E7ee7c8a18ea561A5CF7C9C365592026E374',
aggregatorAddress: '0x3a02d7828722059FCf570DA19b74B16ca69Cb770',
aggregatorAddress: process.env.AGGREGATOR,
minerMerkleTreeHeight: 20,
privateKey: process.env.PRIVATE_KEY,
instances: tornConfig.instances,