diff --git a/.env.example b/.env.example deleted file mode 100644 index 582e2e0..0000000 --- a/.env.example +++ /dev/null @@ -1,3 +0,0 @@ -PRIVATE_KEY= -INFURA_TOKEN= -TORN_ADDRESS= diff --git a/README.md b/README.md index 2ac52ad..e6ccf6b 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# Tornado.Cash Governance [![Build Status](https://github.com/tornadocash/governance/workflows/build/badge.svg)](https://github.com/tornadocash/governance/actions) +# Tornado.Cash Governance [![Build Status](https://github.com/tornadocash/tornado-governance/workflows/build/badge.svg)](https://github.com/tornadocash/tornado-governance/actions) Usage: ``` yarn cp .env.example .env -yarn deploy:kovan +yarn test ``` ## How to upgrade implementation diff --git a/package.json b/package.json index 9490423..92d2f94 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,6 @@ ], "scripts": { "compile": "truffle compile", - "deploy:mainnet": "truffle migrate --network mainnet", - "deploy:kovan": "truffle migrate --network kovan", - "deploy:dev": "truffle migrate --skip-dry-run --network development", "test": "truffle test", "test:stacktrace": "yarn test --stacktrace", "eslint": "eslint --ext .js --ignore-path .gitignore .", @@ -34,7 +31,6 @@ "bn.js": "^5.1.3", "chai": "^4.2.0", "chai-as-promised": "^7.1.1", - "dotenv": "^8.2.0", "eslint": "^7.8.1", "prettier": "^2.1.1", "prettier-plugin-solidity": "^1.0.0-alpha.57", diff --git a/truffle-config.js b/truffle-config.js index ea2a6d9..120beec 100644 --- a/truffle-config.js +++ b/truffle-config.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 = { networks: { // development: { @@ -11,24 +6,6 @@ module.exports = { // network_id: '*', // Any network (default: none) // accounts: 20, // }, - 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: '*',