Skip to content
/ forge-template Public template

a feature rich template for utilizing the foundry smart contract framework

License

Notifications You must be signed in to change notification settings

itsdevbear/forge-template

Repository files navigation

Dev Bear's Forge Template

Template repository for getting started quickly with Foundry projects

Github Actions

Getting Started

Click "Use this template" on GitHub to create a new repository with this repo as the initial state.

Or, if your repo already exists, run:

forge init
forge build
forge test

Test Framework

All you need is to import "@test/utils/TestEnv.sol" and then inherit it from your test contract. The custom test env includes a variety of useful tools and libaries that can be utilized. The tests in this repo follow the naming convention of:

  • Contract.b.sol: Is the base test class for the contract, allows users to define things required for all tests.
  • Contract.t.sol: Is the concrete test class for the contract, define your non-fuzz tests here.
  • Contract.tf.sol: Is the fuzz test class for the contract, define your fuzz tests here.

Development

This project uses Foundry. See the book for instructions on how to install and use Foundry.

Acknowledgments

About

a feature rich template for utilizing the foundry smart contract framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published