Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/foundry-rs/hardhat-foundry-template
Minimal template to get started with Foundry + Hardhat
https://github.com/foundry-rs/hardhat-foundry-template
Last synced: 4 days ago
JSON representation
Minimal template to get started with Foundry + Hardhat
- Host: GitHub
- URL: https://github.com/foundry-rs/hardhat-foundry-template
- Owner: foundry-rs
- License: apache-2.0
- Created: 2022-05-25T23:41:43.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-17T22:53:15.000Z (over 2 years ago)
- Last Synced: 2024-12-25T17:07:43.138Z (11 days ago)
- Language: TypeScript
- Size: 165 KB
- Stars: 240
- Watchers: 7
- Forks: 67
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-smart-contract-development - HadHat Foundry Template
- awesome-foundry - Foundry Hardhat Template - Template repository for getting started quickly with Hardhat and Foundry in one project. (Templates & Libraries)
README
#
Hardhat x Foundry Template
**Template repository for getting started quickly with Hardhat and Foundry in one project**
![Github Actions](https://github.com/devanonon/hardhat-foundry-template/workflows/test/badge.svg)
### Getting Started
* Use Foundry:
```bash
forge install
forge test
```* Use Hardhat:
```bash
npm install
npx hardhat test
```### Features
* Write / run tests with either Hardhat or Foundry:
```bash
forge test
# or
npx hardhat test
```* Use Hardhat's task framework
```bash
npx hardhat example
```* Install libraries with Foundry which work with Hardhat.
```bash
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.