0.1.6 • Published 10 months ago
hardhat-fhevm v0.1.6
hardhat-fhevm
A hardhat plugin to develop and test solidity programs using Zama's Fhevm.
Installation
npm install --save-dev hardhat-fhevm
Import 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 start
to stop the node:
npx hardhat fhevm stop
to restart the node:
npx hardhat fhevm restart
to test your contracts in TFHE mock mode:
npx hardhat test
to test your contracts in using the local fhevm node:
npx hardhat --network fhevm test
to compile your contracts in TFHE mock mode:
npx hardhat compile
to compile your contracts in TFHE local mode:
npx hardhat --network fhevm compile
Environment extensions
This plugin extends the Hardhat Runtime Environment by adding an fhevm
field whose type is
HardhatFhevmRuntimeEnvironment
.