This commit is contained in:
poma 2020-12-15 21:53:16 +03:00
parent d85f8fcd48
commit 5bec207577
No known key found for this signature in database
GPG Key ID: BA20CB01FE165657
4 changed files with 2 additions and 32 deletions

View File

@ -1,3 +0,0 @@
PRIVATE_KEY=
INFURA_TOKEN=
TORN_ADDRESS=

View File

@ -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

View File

@ -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",

View File

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