[TOC]
this project integrated hardhat and foundry as a template to fastly create a project.
npm install
forge install
cp .env.example .env
replace configs in .env
file
- with foundry
forge test
- with hardhat
npx hardhat test
Whenever you install new libraries using Foundry, make sure to update your remappings.txt file by running forge remappings > remappings.txt
forge remappings > remappings.txt
- hardhat-contract-sizer: Output Solidity contract sizes with Hardhat.
- solidity-coverage: Code coverage for Solidity testing
- hardhat-gas-reporter: A Mocha reporter for Ethereum test suites or use
REPORT_GAS=true npx hardhat test
instead - @nomiclabs/hardhat-etherscan: Hardhat plugin for integration with Etherscan's contract verification service.
- hardhat-deploy: A Hardhat Plugin For Replicable Deployments And Easy Testing