tornado-relayer/config.js

56 lines
1.7 KiB
JavaScript
Raw Normal View History

2019-07-18 17:05:09 +03:00
require('dotenv').config()
module.exports = {
2019-11-26 18:01:37 +03:00
netId: Number(process.env.NET_ID) || 42,
2019-12-12 13:58:58 +03:00
redisUrl: process.env.REDIS_URL,
2019-07-18 17:05:09 +03:00
rpcUrl: process.env.RPC_URL || 'https://kovan.infura.io/v3/a3f4d001c1fc4a359ea70dd27fd9cb51',
privateKey: process.env.PRIVATE_KEY,
2019-12-02 15:49:24 +03:00
mixers: {
netId1: {
dai: {
mixerAddress: {
2019-12-17 01:57:28 +03:00
'100': '0xD4B88Df4D29F5CedD6857912842cff3b20C8Cfa3',
2019-12-02 15:49:24 +03:00
'500': undefined,
'1000': undefined,
'5000': undefined
},
tokenAddress: '0x6b175474e89094c44da98b954eedeac495271d0f',
decimals: 18
},
eth: {
mixerAddress: {
2019-12-17 01:01:26 +03:00
'0.1': '0x12D66f87A04A9E220743712cE6d9bB1B5616B8Fc',
2019-12-17 01:57:28 +03:00
'1': '0x47CE0C6eD5B0Ce3d3A51fdb1C52DC66a7c3c2936',
'10': '0x910Cbd523D972eb0a6f4cAe4618aD62622b39DbF',
2019-12-02 15:49:24 +03:00
'100': undefined
},
decimals: 18
}
},
netId42: {
dai: {
mixerAddress: {
2019-12-17 01:57:28 +03:00
'100': '0x7832f65F4030113C007538f29AbC6C13241d4478',
2019-12-02 15:49:24 +03:00
'500': undefined,
'1000': undefined,
'5000': undefined
},
tokenAddress: '0x8c158c7e57161dd4d3cb02bf1a3a97fcc78b75fd',
decimals: 18
},
eth: {
mixerAddress: {
2019-12-17 01:57:28 +03:00
'0.1': '0x8b3f5393bA08c24cc7ff5A66a832562aAB7bC95f',
'1': '0xD6a6AC46d02253c938B96D12BE439F570227aE8E',
'10': '0xe1BE96331391E519471100c3c1528B66B8F4e5a7',
2019-12-02 15:49:24 +03:00
'100': undefined
},
decimals: 18
}
}
},
2019-07-23 19:07:33 +03:00
defaultGasPrice: 2,
gasOracleUrls: ['https://ethgasstation.info/json/ethgasAPI.json', 'https://gasprice.poa.network/'],
2019-11-23 11:18:54 +03:00
port: process.env.APP_PORT,
2019-11-28 22:04:21 +03:00
relayerServiceFee: Number(process.env.RELAYER_FEE)
2019-07-18 17:05:09 +03:00
}