Use dependecies from self-hosted Gitea registry & bump node to 16
This commit is contained in:
parent
ab2b5176b7
commit
fceb0def51
1
.npmrc
Normal file
1
.npmrc
Normal file
@ -0,0 +1 @@
|
||||
@tornado:registry=https://git.tornado.ws/api/packages/tornado-packages/npm/
|
1
.nvmrc
Normal file
1
.nvmrc
Normal file
@ -0,0 +1 @@
|
||||
v16.20.2
|
@ -1,4 +1,4 @@
|
||||
FROM node:14
|
||||
FROM node:16
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json yarn.lock ./
|
||||
|
@ -17,15 +17,15 @@
|
||||
"author": "Tornado Cash Team",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@tornado/tornado-config": "^1",
|
||||
"@tornado/tornado-oracles": "^2.1.0",
|
||||
"@tornado/tx-manager": "^0.4.9",
|
||||
"ajv": "^6.12.5",
|
||||
"bull": "^3.12.1",
|
||||
"concurrently": "^8.2.0",
|
||||
"dotenv": "^8.2.0",
|
||||
"express": "^4.17.1",
|
||||
"ioredis": "^4.14.1",
|
||||
"torn-token": "^1.0.5",
|
||||
"tx-manager": "^0.4.8",
|
||||
"uuid": "^8.3.0",
|
||||
"web3": "^1.3.0",
|
||||
"web3-utils": "^1.2.2"
|
||||
|
@ -1,11 +1,11 @@
|
||||
require('dotenv').config()
|
||||
|
||||
const tornConfig = require('torn-token')
|
||||
const tornConfig = require('@tornado/tornado-config')
|
||||
|
||||
const { jobType, networkConfig } = require('./constants')
|
||||
|
||||
const netId = Number(process.env.NET_ID) || 56
|
||||
const instances = tornConfig.instances[`netId${netId}`]
|
||||
const instances = tornConfig.instances[netId]
|
||||
const proxyLight = tornConfig.tornadoProxyLight.address
|
||||
const { gasPrices, nativeCurrency } = networkConfig[`netId${netId}`]
|
||||
|
||||
|
@ -7,7 +7,7 @@ const { queue } = require('./queue')
|
||||
const { getInstance, logRelayerError, clearRelayerErrors } = require('./utils')
|
||||
const { jobType, status } = require('./constants')
|
||||
const { netId, privateKey, gasPrices, proxyLight, httpRpcUrl, tornadoServiceFee } = require('./config')
|
||||
const { TxManager } = require('tx-manager')
|
||||
const { TxManager } = require('@tornado/tx-manager')
|
||||
|
||||
let web3
|
||||
let currentTx
|
||||
|
Loading…
Reference in New Issue
Block a user