get version from package.json
This commit is contained in:
parent
e801373d44
commit
74c6b6d112
@ -1,7 +1,6 @@
|
|||||||
require('dotenv').config()
|
require('dotenv').config()
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
version: 3.0,
|
|
||||||
netId: Number(process.env.NET_ID) || 42,
|
netId: Number(process.env.NET_ID) || 42,
|
||||||
redisUrl: process.env.REDIS_URL,
|
redisUrl: process.env.REDIS_URL,
|
||||||
rpcUrl: process.env.RPC_URL || 'https://kovan.infura.io/',
|
rpcUrl: process.env.RPC_URL || 'https://kovan.infura.io/',
|
||||||
|
@ -3,7 +3,6 @@ const {
|
|||||||
netId,
|
netId,
|
||||||
port,
|
port,
|
||||||
relayerServiceFee,
|
relayerServiceFee,
|
||||||
version,
|
|
||||||
gasBumpPercentage,
|
gasBumpPercentage,
|
||||||
pendingTxTimeout,
|
pendingTxTimeout,
|
||||||
watherInterval,
|
watherInterval,
|
||||||
@ -14,6 +13,7 @@ const { fetcher, web3, gasPriceOracle } = require('./instances')
|
|||||||
const { getMixers } = require('./utils')
|
const { getMixers } = require('./utils')
|
||||||
const mixers = getMixers()
|
const mixers = getMixers()
|
||||||
const { redisClient } = require('./redis')
|
const { redisClient } = require('./redis')
|
||||||
|
const { version } = require('../package.json')
|
||||||
const app = express()
|
const app = express()
|
||||||
app.use(express.json())
|
app.use(express.json())
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ app.get('/status', async function (req, res) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
app.post('/relay', relayController)
|
app.post('/relay', relayController)
|
||||||
|
console.log('Version:', version)
|
||||||
let server = app.listen(port || 8000)
|
let server = app.listen(port || 8000)
|
||||||
server.setTimeout(600000)
|
server.setTimeout(600000)
|
||||||
console.log('Gas price oracle started.')
|
console.log('Gas price oracle started.')
|
||||||
|
Loading…
Reference in New Issue
Block a user