https://github.com/refcell/huffy
Foundry x Huff Integration Tooling
https://github.com/refcell/huffy
Last synced: 9 months ago
JSON representation
Foundry x Huff Integration Tooling
- Host: GitHub
- URL: https://github.com/refcell/huffy
- Owner: refcell
- License: apache-2.0
- Created: 2022-06-28T15:23:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-28T18:13:48.000Z (over 3 years ago)
- Last Synced: 2025-05-05T15:54:40.478Z (9 months ago)
- Language: Solidity
- Size: 23.4 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# huffy • [](https://github.com/abigger87/huffy/actions/workflows/tests.yaml) [](https://opensource.org/licenses/Apache-2.0) 
> Foundry x Huff Integration Tooling
## Getting Started
Huff is a low-level EVM programming language designed for developing highly optimized smart contracts.
To learn more about Huff, visit the [Huff Website](https://huff.sh/) or [_read the docs_](https://docs.huff.sh/).
If you don't already have `huffc` installed, run:
```bash
curl -L get.huff.sh | bash
huffup
```
## Building, Testing, and Deploying
This repository provides scaffolding for integrating [Foundry](https://github.com/foundry-rs) into your [Huff](https://huff.sh/) project.
First, install foundry dependencies with `forge install && forge update`.
Then, you can run `forge test` to test the example `.huff` contract in the `src/` directory.
As with any `.huff` contract, you can compile each contract directly by using `huffc` (the Huff compiler). For example, to compile `src/SimpleStorage.huff`, run: `huffc -b src/SimpleStorage.huff`.
// TODO: Scripting
// TODO: Anvil
// TODO: Deployment
## Acknowledgements
- [Huff Language](https://github.com/huff-language)
- [@dabit3](https://github.com/dabit3)'s Foundry [Cheatsheet](https://github.com/dabit3/foundry-cheatsheet)