Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

๐Ÿšง Buidler + Web3 project template ๐ŸŒ

Notifications You must be signed in to change notification settings

ItsNickBarry/buidler-web3-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

26 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Buidler + Web3 Project

This repository was generated from a template or is the template itself. For more information, see docs/TEMPLATE.md.

Development

Install dependencies via Yarn:

yarn install

Compile contracts via Buidler:

yarn run buidler compile

Networks

By default, Buidler uses the BuidlerEVM.

To use Ganache, append commands with --network localhost, after having started ganache-cli in a separate process:

yarn run ganache-cli

To use an external network via URL, set the URL environment variable and append commands with --network generic:

URL="https://mainnet.infura.io/v3/[INFURA_KEY]" yarn run buidler test --network generic

Testing

Test contracts via Buidler:

yarn run buidler test

If using a supported network (such as Ganache), activate gas usage reporting by setting the REPORT_GAS environment variable to true:

REPORT_GAS=true yarn run buidler test --network localhost

Generate a code coverage report for Solidity contracts:

yarn run buidler coverage

Releases

No releases published

Packages

No packages published