https://github.com/chaineasy/hardhat-foundry
https://github.com/chaineasy/hardhat-foundry
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/chaineasy/hardhat-foundry
- Owner: ChainEasy
- License: apache-2.0
- Created: 2022-10-04T17:22:20.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-04T17:22:22.000Z (over 2 years ago)
- Last Synced: 2025-01-09T03:45:25.316Z (5 months ago)
- Language: TypeScript
- Size: 192 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#
Hardhat x Foundry Template
**Template repository for getting started quickly with Hardhat and Foundry in one project**

### 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.