Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 1.24 KB

README.md

File metadata and controls

56 lines (40 loc) · 1.24 KB

hello-noir: Hardhat x Foundry Template

Demo hosted on: https://hello-noir.netlify.app/

Step-by-Step

  1. git submodule update --init --recursive
  2. forge install
  3. npm install
  4. npm run test:full
  5. npm run deploy

The frontend repo is a submodule under ui/.


Template repository for getting started quickly with Hardhat and Foundry in one project

Github Actions

Getting Started

  • Use Foundry:
forge install
forge test
  • Use Hardhat:
npm install
npx hardhat test

Features

  • Write / run tests with either Hardhat or Foundry:
forge test
# or
npx hardhat test
  • Use Hardhat's task framework
npx hardhat example
  • Install libraries with Foundry which work with Hardhat.
forge install rari-capital/solmate # Already in this repo, just an example

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.