An open API service indexing awesome lists of open source software.

https://github.com/giveth/giveth-contracts-template

Useful template for developing and testing Solidity contracts, built with hardhat and waffle
https://github.com/giveth/giveth-contracts-template

Last synced: 10 months ago
JSON representation

Useful template for developing and testing Solidity contracts, built with hardhat and waffle

Awesome Lists containing this project

README

          

# Contracts Template

## Setting up

You may create a `.env` file in the project root by copying `.env.example`.

## Compiling the code

Run `yarn compile` to compile contracts using Hardhat 👷

## Testing and auditing

### Local tests

Run `yarn test` to run the full test suite.

### Coverage report

Run `yarn coverage` to generate a code coverage report using `hardhat coverage`

### Contract sizes

Run `yarn size-contracts` to compute the size of each compiled contract.