fix: update constants
This commit is contained in:
parent
803a104a93
commit
7286aeaff0
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "relay",
|
"name": "relay",
|
||||||
"version": "4.0.15",
|
"version": "5.0.0-beta.0",
|
||||||
"description": "Relayer for Tornado.cash privacy solution. https://tornado.cash",
|
"description": "Relayer for Tornado.cash privacy solution. https://tornado.cash",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"server": "node src/server.js",
|
"server": "node src/server.js",
|
||||||
|
@ -24,13 +24,16 @@ const networkConfig = {
|
|||||||
instances: {
|
instances: {
|
||||||
bnb: {
|
bnb: {
|
||||||
instanceAddress: {
|
instanceAddress: {
|
||||||
0.1: '0x0Ce22770451A8acAD1220D9d1678656b4fAe4a1d',
|
0.1: '0x84443CFd09A48AF6eF360C6976C5392aC5023a1F',
|
||||||
|
1: '0xd47438C816c9E7f2E2888E060936a499Af9582b3',
|
||||||
|
10: '0x330bdFADE01eE9bF63C209Ee33102DD334618e0a',
|
||||||
|
100: '0x1E34A77868E19A6647b1f2F47B51ed72dEDE95DD',
|
||||||
},
|
},
|
||||||
symbol: 'BNB',
|
symbol: 'BNB',
|
||||||
decimals: 18,
|
decimals: 18,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
proxyLight: '0x5D595DB16eb6d074E0e7E7f0bE37E7e75f23BEc7',
|
proxyLight: '0x0D5550d52428E7e3175bfc9550207e4ad3859b17',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
const {
|
const { getTornadoWithdrawInputError } = require('./validator')
|
||||||
getTornadoWithdrawInputError,
|
|
||||||
} = require('./validator')
|
|
||||||
const { postJob } = require('./queue')
|
const { postJob } = require('./queue')
|
||||||
const { jobType } = require('./constants')
|
const { jobType } = require('./constants')
|
||||||
|
|
||||||
|
@ -3,14 +3,7 @@ const Redis = require('ioredis')
|
|||||||
const { toBN, fromWei } = require('web3-utils')
|
const { toBN, fromWei } = require('web3-utils')
|
||||||
|
|
||||||
const { setSafeInterval } = require('./utils')
|
const { setSafeInterval } = require('./utils')
|
||||||
const {
|
const { redisUrl, httpRpcUrl, privateKey, minimumBalance, nativeCurrency, instances } = require('./config')
|
||||||
redisUrl,
|
|
||||||
httpRpcUrl,
|
|
||||||
privateKey,
|
|
||||||
minimumBalance,
|
|
||||||
nativeCurrency,
|
|
||||||
instances,
|
|
||||||
} = require('./config')
|
|
||||||
|
|
||||||
const web3 = new Web3(httpRpcUrl)
|
const web3 = new Web3(httpRpcUrl)
|
||||||
const redis = new Redis(redisUrl)
|
const redis = new Redis(redisUrl)
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
require('chai').should()
|
require('chai').should()
|
||||||
|
|
||||||
const {
|
const { getTornadoWithdrawInputError } = require('../src/validator')
|
||||||
getTornadoWithdrawInputError,
|
|
||||||
} = require('../src/validator')
|
|
||||||
|
|
||||||
describe('Validator', () => {
|
describe('Validator', () => {
|
||||||
describe('#getTornadoWithdrawInputError', () => {
|
describe('#getTornadoWithdrawInputError', () => {
|
||||||
@ -46,5 +44,5 @@ const withdrawData = {
|
|||||||
'0x000000000000000000000000000000000000000000000000058d15e176280000',
|
'0x000000000000000000000000000000000000000000000000058d15e176280000',
|
||||||
'0x0000000000000000000000000000000000000000000000000000000000000000',
|
'0x0000000000000000000000000000000000000000000000000000000000000000',
|
||||||
],
|
],
|
||||||
contract: '0x47CE0C6eD5B0Ce3d3A51fdb1C52DC66a7c3c2936',
|
contract: '0xd47438C816c9E7f2E2888E060936a499Af9582b3',
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user