Skip to content

yuanjunliang/hardhat-foundry-template

Repository files navigation

[TOC]

Sample Hardhat-Foundry Project

node version >= 16

this project integrated hardhat and foundry as a template to fastly create a project.

Getting Started

suggest to use pnpm

npm install
forge install

Config .env

cp .env.example .env

replace configs in .env file

Run test

  • with foundry
forge test
  • with hardhat
npx hardhat test

Check hardhat-verify support network list

npx hardhat verify --list-networks

Notice

Whenever you install new libraries using Foundry, make sure to update your remappings.txt file by running forge remappings > remappings.txt

Remapping dependencies

forge remappings > remappings.txt

common commands

  1. verify contract
npx hardhat verify --network goerli contractAddress params1 params2 ...

Recommend resource

Hardhat plugins

Template

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors