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: '*',