diff --git a/config.js b/config.js index 3b1bce5..65d7f2a 100644 --- a/config.js +++ b/config.js @@ -1,13 +1,6 @@ require('dotenv').config() 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: { netId1: { eth: { @@ -143,9 +136,5 @@ module.exports = { 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) + } } diff --git a/test.js b/test.js deleted file mode 100644 index a76075d..0000000 --- a/test.js +++ /dev/null @@ -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 ') - .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))