hardhat-fhevm
v0.1.6
Published
Hardhat Fhevm plugin
Maintainers
Readme
hardhat-fhevm
A hardhat plugin to develop and test solidity programs using Zama's Fhevm.
Installation
npm install --save-dev hardhat-fhevmImport the plugin in your hardhat.config.js:
require("hardhat-fhevm");Or if you are using TypeScript, in your hardhat.config.ts:
import "hardhat-fhevm";Required packages
Tasks
to start a local fhevm node on port 8545:
npx hardhat fhevm startto stop the node:
npx hardhat fhevm stopto restart the node:
npx hardhat fhevm restartto test your contracts in TFHE mock mode:
npx hardhat testto test your contracts in using the local fhevm node:
npx hardhat --network fhevm testto compile your contracts in TFHE mock mode:
npx hardhat compileto compile your contracts in TFHE local mode:
npx hardhat --network fhevm compileEnvironment extensions
This plugin extends the Hardhat Runtime Environment by adding an fhevm field whose type is
HardhatFhevmRuntimeEnvironment.
