This commit is contained in:
Alexey 2020-02-27 16:36:44 +03:00
parent 62c7951961
commit 3e9df20f35
2 changed files with 1 additions and 34 deletions

View File

@ -1,13 +1,6 @@
require('dotenv').config() require('dotenv').config()
module.exports = { module.exports = {
version: '2.2',
netId: Number(process.env.NET_ID) || 42,
redisUrl: process.env.REDIS_URL,
rpcUrl: process.env.RPC_URL || 'https://kovan.infura.io/',
oracleRpcUrl: process.env.ORACLE_RPC_URL || 'https://cloudflare-eth.com',
oracleAddress: '0xB5eE7907FF5f4c1FC9086Fc117E6c397431F39ad',
privateKey: process.env.PRIVATE_KEY,
deployments: { deployments: {
netId1: { netId1: {
eth: { eth: {
@ -143,9 +136,5 @@ module.exports = {
decimals: 6 decimals: 6
} }
} }
}, }
defaultGasPrice: 2,
gasOracleUrls: ['https://ethgasstation.info/json/ethgasAPI.json', 'https://gasprice.poa.network/'],
port: process.env.APP_PORT,
relayerServiceFee: Number(process.env.RELAYER_FEE)
} }

22
test.js
View File

@ -1,22 +0,0 @@
const program = require('commander')
const buildGroth16 = require('websnark/src/groth16')
const sleep = () => {
return new Promise(resolve => setTimeout(resolve, 100))
}
async function main() {
program
.command('deposit <currency> <amount>')
.description('Submit a deposit of specified currency and amount from default eth account and return the resulting note. The currency is one of (ETH|DAI|cDAI|USDC|cUSDC|USDT). The amount depends on currency, see config.js file or visit https://tornado.cash.')
.action(async (currency, amount) => {
console.log('currency, amount', currency, amount)
let groth16 = await buildGroth16()
console.log('groth16', groth16)
groth16 = null
})
await program.parseAsync(process.argv)
}
main().then(process.exit(0))