mirror of
https://github.com/tornadocash/tornado-core.git
synced 2024-11-22 09:47:13 +01:00
tidy
This commit is contained in:
parent
62c7951961
commit
3e9df20f35
13
config.js
13
config.js
@ -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
22
test.js
@ -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))
|
|
Loading…
Reference in New Issue
Block a user