Skip to content

Rewrite template using forge-fhevm#1

Merged
poppyseedDev merged 2 commits into
mainfrom
new-foundry
Apr 1, 2026
Merged

Rewrite template using forge-fhevm#1
poppyseedDev merged 2 commits into
mainfrom
new-foundry

Conversation

@poppyseedDev

@poppyseedDev poppyseedDev commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace the old FFI-based template (fhevmjs/ethers npm scripts) with a native Foundry setup using forge-fhevm
  • Add FHECounter contract mirroring the fhevm-hardhat-template example
  • Add aligned Forge tests (encrypt, increment, decrement) using FhevmTest base class with userDecrypt flow
  • Add Foundry deployment script, Soldeer dependency management, and updated README

Test plan

  • forge soldeer install && forge build compiles successfully
  • forge test -vvv — all 3 tests pass
  • Verify deploy script works against local Anvil with FHEVM host contracts

Replace the old FFI-based template with a new FHECounter example
that uses forge-fhevm for native Foundry testing. Mirrors the
fhevm-hardhat-template structure and test coverage.
- Add forge-fhevm as a git dependency so CI is self-contained
- Fix workflow: Soldeer install with caching, split jobs, correct profile
- Remove allow_paths and local sibling reference
@poppyseedDev poppyseedDev merged commit fa9ab6a into main Apr 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant