From e88636da70c074ed6c0ceb633ad325056e0f1c00 Mon Sep 17 00:00:00 2001 From: poma Date: Tue, 15 Dec 2020 21:53:15 +0300 Subject: [PATCH] tidy --- .env.example | 5 ----- README.md | 8 -------- package.json | 4 ---- test/miner.test.js | 2 -- truffle.js | 23 ----------------------- 5 files changed, 42 deletions(-) delete mode 100644 .env.example diff --git a/.env.example b/.env.example deleted file mode 100644 index b580f81..0000000 --- a/.env.example +++ /dev/null @@ -1,5 +0,0 @@ -MERKLE_TREE_HEIGHT=20 -PRIVATE_KEY= -INFURA_KEY=97c8bf358b9942a9853fab1ba93dc5b3 -TORN= -GOVERNANCE= diff --git a/README.md b/README.md index 582f598..9af3b4e 100644 --- a/README.md +++ b/README.md @@ -14,11 +14,3 @@ $ cp .env.example .env $ yarn circuit $ yarn test ``` - -## Deploying - -Deploy to Kovan: - -```bash -$ yarn deploy:kovan -``` diff --git a/package.json b/package.json index 2c2e7bd..ed84bd1 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/miner.test.js b/test/miner.test.js index 4dc0eb6..593cce0 100644 --- a/test/miner.test.js +++ b/test/miner.test.js @@ -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() diff --git a/truffle.js b/truffle.js index 4bd9c3e..77a19fd 100644 --- a/truffle.js +++ b/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: '*',