Buidler plugin for verifying contracts on Etherscan
We recommend developing Buidler plugins using yarn. To start working on your project, just run
yarn
yarn add --peer @nomiclabs/buidler@^1.0.0-beta.2
When updating/adding Buidler or other peer dependencies, you should update the .travis.yml
file's install section. The right version of all of them has to be installed in a single line, after yarn
.
Running yarn test
will run every test located in the test/
folder. They use mocha and chai, but you can customize them.
You can run only integration tests with yarn run test:integration
and unit with yarn run test:unit
.
For integration tests, it is required to set env (.env file) variable WALLET_PRIVATE_KEY
with ropsten wallet private key.
We recommend creating unit tests for your own modules, and integration tests for the interaction of the plugin with Buidler and its dependencies.
All all of Buidler projects use prettier and tslint.
You can check if your code style is correct by running yarn lint
, and fix it with yarn lint:fix
.
Just run yarn buidl
️👷
We recommend writing a README that contains the following information:
- What is it
- How to install it
- New tasks
- Environment extensions