From 4f7089a2bc0f069eadbde3b39deaa2dadf2a6786 Mon Sep 17 00:00:00 2001 From: Roman Storm Date: Fri, 20 Nov 2020 00:16:37 -0800 Subject: [PATCH] move aggregator to env --- .env.example | 4 +++- src/config.js | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 8fb4057..8963906 100644 --- a/.env.example +++ b/.env.example @@ -18,4 +18,6 @@ REWARD_ACCOUNT= # in GWEI MAX_GAS_PRICE=1000 CONFIRMATIONS=8 - +AGGREGATOR= +# 0xe4886c5f705850603f44bf730eb68749DA6DeB69 - goerli +# 0x3a02d7828722059FCf570DA19b74B16ca69Cb770 - kovan diff --git a/src/config.js b/src/config.js index 3d1ae00..bcb8595 100644 --- a/src/config.js +++ b/src/config.js @@ -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,