From 7286aeaff022ca13f91c572c2a651b83d56acd44 Mon Sep 17 00:00:00 2001 From: Danil Kovtonyuk Date: Thu, 10 Jun 2021 13:02:53 +0300 Subject: [PATCH] fix: update constants --- package.json | 2 +- src/constants.js | 7 +++++-- src/controller.js | 4 +--- src/healthWatcher.js | 9 +-------- test/validator.js | 6 ++---- 5 files changed, 10 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index 86bfc84..5a6871d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "relay", - "version": "4.0.15", + "version": "5.0.0-beta.0", "description": "Relayer for Tornado.cash privacy solution. https://tornado.cash", "scripts": { "server": "node src/server.js", diff --git a/src/constants.js b/src/constants.js index 035fc52..cd945c3 100644 --- a/src/constants.js +++ b/src/constants.js @@ -24,13 +24,16 @@ const networkConfig = { instances: { bnb: { instanceAddress: { - 0.1: '0x0Ce22770451A8acAD1220D9d1678656b4fAe4a1d', + 0.1: '0x84443CFd09A48AF6eF360C6976C5392aC5023a1F', + 1: '0xd47438C816c9E7f2E2888E060936a499Af9582b3', + 10: '0x330bdFADE01eE9bF63C209Ee33102DD334618e0a', + 100: '0x1E34A77868E19A6647b1f2F47B51ed72dEDE95DD', }, symbol: 'BNB', decimals: 18, }, }, - proxyLight: '0x5D595DB16eb6d074E0e7E7f0bE37E7e75f23BEc7', + proxyLight: '0x0D5550d52428E7e3175bfc9550207e4ad3859b17', }, } diff --git a/src/controller.js b/src/controller.js index 5475f70..9605c4b 100644 --- a/src/controller.js +++ b/src/controller.js @@ -1,6 +1,4 @@ -const { - getTornadoWithdrawInputError, -} = require('./validator') +const { getTornadoWithdrawInputError } = require('./validator') const { postJob } = require('./queue') const { jobType } = require('./constants') diff --git a/src/healthWatcher.js b/src/healthWatcher.js index 40d923a..c60d95d 100644 --- a/src/healthWatcher.js +++ b/src/healthWatcher.js @@ -3,14 +3,7 @@ const Redis = require('ioredis') const { toBN, fromWei } = require('web3-utils') const { setSafeInterval } = require('./utils') -const { - redisUrl, - httpRpcUrl, - privateKey, - minimumBalance, - nativeCurrency, - instances, -} = require('./config') +const { redisUrl, httpRpcUrl, privateKey, minimumBalance, nativeCurrency, instances } = require('./config') const web3 = new Web3(httpRpcUrl) const redis = new Redis(redisUrl) diff --git a/test/validator.js b/test/validator.js index a1a750e..4915dcd 100644 --- a/test/validator.js +++ b/test/validator.js @@ -1,8 +1,6 @@ require('chai').should() -const { - getTornadoWithdrawInputError, -} = require('../src/validator') +const { getTornadoWithdrawInputError } = require('../src/validator') describe('Validator', () => { describe('#getTornadoWithdrawInputError', () => { @@ -46,5 +44,5 @@ const withdrawData = { '0x000000000000000000000000000000000000000000000000058d15e176280000', '0x0000000000000000000000000000000000000000000000000000000000000000', ], - contract: '0x47CE0C6eD5B0Ce3d3A51fdb1C52DC66a7c3c2936', + contract: '0xd47438C816c9E7f2E2888E060936a499Af9582b3', }