0.1.6 • Published 10 months ago

hardhat-fhevm v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

hardhat-fhevm

test workflow

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.

0.1.6

10 months ago

0.1.5

10 months ago

0.1.4

10 months ago

0.1.3

10 months ago

0.1.2

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago