mirror of
https://github.com/tornadocash/tornado-anonymity-mining.git
synced 2024-10-31 23:55:20 +01:00
tidy
This commit is contained in:
parent
56ae319e36
commit
e88636da70
@ -1,5 +0,0 @@
|
||||
MERKLE_TREE_HEIGHT=20
|
||||
PRIVATE_KEY=
|
||||
INFURA_KEY=97c8bf358b9942a9853fab1ba93dc5b3
|
||||
TORN=
|
||||
GOVERNANCE=
|
@ -14,11 +14,3 @@ $ cp .env.example .env
|
||||
$ yarn circuit
|
||||
$ yarn test
|
||||
```
|
||||
|
||||
## Deploying
|
||||
|
||||
Deploy to Kovan:
|
||||
|
||||
```bash
|
||||
$ yarn deploy:kovan
|
||||
```
|
||||
|
@ -19,9 +19,6 @@
|
||||
"prettier:check": "prettier --check . --config .prettierrc",
|
||||
"prettier:fix": "prettier --write . --config .prettierrc",
|
||||
"lint": "yarn eslint && yarn prettier:check",
|
||||
"deploy:mainnet": "truffle migrate --network mainnet",
|
||||
"deploy:kovan": "truffle migrate --network kovan",
|
||||
"deploy:dev": "truffle migrate --skip-dry-run --network development",
|
||||
"verify": "truffle run verify --network $NETWORK",
|
||||
"circuit:reward": "scripts/buildCircuit.sh Reward",
|
||||
"circuit:withdraw": "scripts/buildCircuit.sh Withdraw",
|
||||
@ -35,7 +32,6 @@
|
||||
"chai": "^4.2.0",
|
||||
"chai-as-promised": "^7.1.1",
|
||||
"circom": "0.0.35",
|
||||
"dotenv": "^8.2.0",
|
||||
"eslint": "^7.5.0",
|
||||
"eslint-config-prettier": "^6.11.0",
|
||||
"eslint-plugin-prettier": "^3.1.4",
|
||||
|
@ -36,8 +36,6 @@ const MerkleTree = require('fixed-merkle-tree')
|
||||
const Hasher2 = artifacts.require('Hasher2')
|
||||
const Hasher3 = artifacts.require('Hasher3')
|
||||
|
||||
const { MERKLE_TREE_HEIGHT } = process.env
|
||||
|
||||
// Set time to beginning of a second
|
||||
async function timeReset() {
|
||||
const delay = 1000 - new Date().getMilliseconds()
|
||||
|
23
truffle.js
23
truffle.js
@ -1,8 +1,3 @@
|
||||
require('dotenv').config()
|
||||
const HDWalletProvider = require('truffle-hdwallet-provider')
|
||||
const utils = require('web3-utils')
|
||||
const { PRIVATE_KEY, INFURA_TOKEN } = process.env
|
||||
|
||||
module.exports = {
|
||||
// Uncommenting the defaults below
|
||||
// provides for an easier quick-start with Ganache.
|
||||
@ -21,24 +16,6 @@ module.exports = {
|
||||
// port: 7545,
|
||||
// network_id: "*"
|
||||
// }
|
||||
mainnet: {
|
||||
provider: () => new HDWalletProvider(PRIVATE_KEY, `https://mainnet.infura.io/v3/${INFURA_TOKEN}`),
|
||||
network_id: 1,
|
||||
gas: 6000000,
|
||||
gasPrice: utils.toWei('100', 'gwei'),
|
||||
// confirmations: 0,
|
||||
// timeoutBlocks: 200,
|
||||
skipDryRun: true,
|
||||
},
|
||||
kovan: {
|
||||
provider: () => new HDWalletProvider(PRIVATE_KEY, `https://kovan.infura.io/v3/${INFURA_TOKEN}`),
|
||||
network_id: 42,
|
||||
gas: 6000000,
|
||||
gasPrice: utils.toWei('1', 'gwei'),
|
||||
// confirmations: 0,
|
||||
// timeoutBlocks: 200,
|
||||
skipDryRun: true,
|
||||
},
|
||||
coverage: {
|
||||
host: 'localhost',
|
||||
network_id: '*',
|
||||
|
Loading…
Reference in New Issue
Block a user