mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2025-08-17 10:30:40 -04:00
upgrade config structure
This commit is contained in:
parent
fd458d4b19
commit
ced0b6a738
6 changed files with 78 additions and 27 deletions
56
config.js
56
config.js
|
@ -4,20 +4,52 @@ module.exports = {
|
|||
netId: Number(process.env.NET_ID) || 42,
|
||||
rpcUrl: process.env.RPC_URL || 'https://kovan.infura.io/v3/a3f4d001c1fc4a359ea70dd27fd9cb51',
|
||||
privateKey: process.env.PRIVATE_KEY,
|
||||
mixers: [ {
|
||||
address: process.env.ETH_MIXER_ADDRESS,
|
||||
currency: 'eth',
|
||||
amount: '0.1'
|
||||
},
|
||||
{
|
||||
address: process.env.DAI_MIXER_ADDRESS,
|
||||
currency: 'dai',
|
||||
amount: '100'
|
||||
} ],
|
||||
mixers: {
|
||||
netId1: {
|
||||
dai: {
|
||||
mixerAddress: {
|
||||
'100': undefined,
|
||||
'500': undefined,
|
||||
'1000': undefined,
|
||||
'5000': undefined
|
||||
},
|
||||
tokenAddress: '0x6b175474e89094c44da98b954eedeac495271d0f',
|
||||
decimals: 18
|
||||
},
|
||||
eth: {
|
||||
mixerAddress: {
|
||||
'0.1': undefined,
|
||||
'1': undefined,
|
||||
'10': undefined,
|
||||
'100': undefined
|
||||
},
|
||||
decimals: 18
|
||||
}
|
||||
},
|
||||
netId42: {
|
||||
dai: {
|
||||
mixerAddress: {
|
||||
'100': '0x5D4538D2b07cD8Eb7b93c33B327f3E01A42e68d8',
|
||||
'500': undefined,
|
||||
'1000': undefined,
|
||||
'5000': undefined
|
||||
},
|
||||
tokenAddress: '0x8c158c7e57161dd4d3cb02bf1a3a97fcc78b75fd',
|
||||
decimals: 18
|
||||
},
|
||||
eth: {
|
||||
mixerAddress: {
|
||||
'0.1': '0xB7F60Bf8b969CE4B95Bb50a671860D99478C81Ee',
|
||||
'1': '0x27e94B8cfa33EA2b47E209Ba69804d44642B3545',
|
||||
'10': undefined,
|
||||
'100': undefined
|
||||
},
|
||||
decimals: 18
|
||||
}
|
||||
}
|
||||
},
|
||||
defaultGasPrice: 2,
|
||||
gasOracleUrls: ['https://www.etherchain.org/api/gasPriceOracle', 'https://gasprice.poa.network/'],
|
||||
port: process.env.APP_PORT,
|
||||
//dai
|
||||
tokens: ['0x6b175474e89094c44da98b954eedeac495271d0f'],
|
||||
relayerServiceFee: Number(process.env.RELAYER_FEE)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue