From 74c6b6d1126a5368052408a9ea74b70466e2a38f Mon Sep 17 00:00:00 2001 From: Alexey Date: Wed, 12 Aug 2020 14:15:28 +0300 Subject: [PATCH] get version from package.json --- config.js | 1 - src/index.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/config.js b/config.js index 2600433..f707f81 100644 --- a/config.js +++ b/config.js @@ -1,7 +1,6 @@ require('dotenv').config() module.exports = { - version: 3.0, netId: Number(process.env.NET_ID) || 42, redisUrl: process.env.REDIS_URL, rpcUrl: process.env.RPC_URL || 'https://kovan.infura.io/', diff --git a/src/index.js b/src/index.js index 2be9be0..da70913 100644 --- a/src/index.js +++ b/src/index.js @@ -3,7 +3,6 @@ const { netId, port, relayerServiceFee, - version, gasBumpPercentage, pendingTxTimeout, watherInterval, @@ -14,6 +13,7 @@ const { fetcher, web3, gasPriceOracle } = require('./instances') const { getMixers } = require('./utils') const mixers = getMixers() const { redisClient } = require('./redis') +const { version } = require('../package.json') const app = express() app.use(express.json()) @@ -62,7 +62,7 @@ app.get('/status', async function (req, res) { }) app.post('/relay', relayController) - +console.log('Version:', version) let server = app.listen(port || 8000) server.setTimeout(600000) console.log('Gas price oracle started.')