-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: use buidler * tests: link libraries with Truffle * chore: use codecov * chore: fix whitespace Co-authored-by: Brett Sun <qisheng.brett.sun@gmail.com>
- Loading branch information
1 parent
847269c
commit ce960e2
Showing
7 changed files
with
10,864 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
const { usePlugin } = require('@nomiclabs/buidler/config') | ||
|
||
usePlugin("@nomiclabs/buidler-ganache") | ||
usePlugin('@nomiclabs/buidler-truffle5') | ||
usePlugin('buidler-gas-reporter') | ||
usePlugin('solidity-coverage') | ||
|
||
module.exports = { | ||
networks: { | ||
// Local development network using ganache. You can set any of the | ||
// Ganache's options. All of them are supported, with the exception | ||
// of accounts. | ||
// https://github.com/trufflesuite/ganache-core#options | ||
ganache: { | ||
url: 'http://localhost:8545', | ||
gasLimit: 6000000000, | ||
defaultBalanceEther: 100 | ||
}, | ||
// Local development network to test coverage. Solidity coverage | ||
// pluging launches its own in-process ganache server. | ||
// and expose it at port 8555. | ||
coverage: { | ||
url: 'http://localhost:8555', | ||
}, | ||
// Mainnet network configured with Aragon node. | ||
mainnet: { | ||
url: 'https://mainnet.eth.aragon.network', | ||
accounts: [ | ||
process.env.ETH_KEY || | ||
'0xa8a54b2d8197bc0b19bb8a084031be71835580a01e70a45a13babd16c9bc1563', | ||
], | ||
}, | ||
// Rinkeby network configured with Aragon node. | ||
rinkeby: { | ||
url: 'https://rinkeby.eth.aragon.network', | ||
accounts: [ | ||
process.env.ETH_KEY || | ||
'0xa8a54b2d8197bc0b19bb8a084031be71835580a01e70a45a13babd16c9bc1563', | ||
], | ||
}, | ||
// Network configured to interact with Frame wallet. Requires | ||
// to have Frame running on your machine. Download it from: | ||
// https://frame.sh | ||
frame: { | ||
httpHeaders: { origin: 'buidler' }, | ||
url: 'http://localhost:1248', | ||
} | ||
}, | ||
solc: { | ||
version: '0.4.24', | ||
optimizer: { | ||
enabled: true, | ||
runs: 10000, | ||
}, | ||
}, | ||
// The gas reporter plugin do not properly handle the buidlerevm | ||
// chain yet. In the mean time we should 'npx buidler node' and | ||
// then attach to running process using '--network localhost' as | ||
// explained in: https://buidler.dev/buidler-evm/#connecting-to-buidler-evm-from-wallets-and-other-software. | ||
// You can also run 'yarn devchain' and on a separate terminal run 'yarn test:gas' | ||
gasReporter: { | ||
enabled: process.env.REPORT_GAS ? true : false, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.