fhenix-foundry-plugin
Installation
SKILL.md
Fhenix Foundry Plugin
Overview
@cofhe/foundry-plugin is the Foundry counterpart to the Hardhat plugin. It ships two abstract Solidity contracts so you can test FHE contracts under forge test with no JS SDK:
CofheTest— test base (inheritsforge-std/Test);deployMocks()deploys the full CoFHE mock stack.CofheClient— per-"user" in-Solidity shim carrying a private key; produces encrypted inputs and signed permits like that user's frontend SDK.
Shortcut: clone
FhenixProtocol/cofhe-foundry-starterfor a pre-configured project.
Install
npm install -D @cofhe/foundry-plugin@^0.5.2 @cofhe/mock-contracts@^0.5.2 @fhenixprotocol/cofhe-contracts@^0.1.3 @openzeppelin/contracts
forge install foundry-rs/forge-std