Skip to content

gperezalba/forge-template

Repository files navigation

Foundry Template (gperezalba style)

Template repository for getting started quickly with Foundry in one project

Github Actions

Getting Started

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

  • Use Foundry:
forge install
forge test

Features

  • Compile contracts:
npm run build
  • Run tests:
npm run test
  • Run and serve coverage:
npm run coverage
npm run doc
npm run doc-serve
  • Install libraries with Foundry which work with Hardhat.
forge install rari-capital/solmate # Already in this repo, just an example
  • Use this template to create a new project
forge init --template https://github.com/gperezalba/forge-template dir_name
git remote set-url origin https://github.com/org/project-name.git

Notes

Whenever you install new libraries using Foundry, make sure to update your remappings.txt file by running forge remappings > remappings.txt. This is required because we use hardhat-preprocessor and the remappings.txt file to allow Hardhat to resolve libraries you install with Foundry.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published