1 . SET UP HARDHAT
1.1. Setup version nodejs + npm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install 22
nvm use 22
nvm alias default 22
node -v # → v22.xx.x
npm -v # → 10.xx.x1.2. Go to here and clone repository GIthub zama with your github ( click Use this template" → "Create a new repository")
https://github.com/zama-ai/fhevm-hardhat-template1.3. Clone your repo to your machine
git clone https://github.com/Apollo-Sync/fhevm-counter-demo.git
cd fhevm-counter-demo1.4. INstall dependencies (you are here : Root/fhevm-counter-demo.git/)
npm install1.5. setup MNEMONIC & INFURA (IF deploy on Sepolia)
npx hardhat vars set MNEMONICPaste your 12 seed phase EVM wallet --> enter
npx hardhat vars set INFURA_API_KEYPaste your Infura API key --> enter
1.6 Check working
npx hardhatif you see that , its oke to next step
Usage: hardhat [GLOBAL OPTIONS] task [TASK OPTIONS]
Available tasks:
compile Compile the entire project
test Run tests
...Last updated