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.x
1.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-template
1.3. Clone your repo to your machine
git clone https://github.com/Apollo-Sync/fhevm-counter-demo.git
cd fhevm-counter-demo
1.4. INstall dependencies (you are here : Root/fhevm-counter-demo.git/)
1.5. setup MNEMONIC & INFURA (IF deploy on Sepolia)
npx hardhat vars set MNEMONIC
Paste your 12 seed phase EVM wallet --> enter
Paste your Infura API key --> enter
1.6 Check working
if you see that , its oke to next step
Last updated