npm install
cd nextjs
npm install
cd contracts
forge install
cp .env.example .env
- Build the contracts
cd contracts
forge build
- Start the local network
cd contracts/
anvil --hardfork cancun
- Deploy the local V4 pool (including hook)
cd contracts/
forge script script/Anvil.s.sol \
--rpc-url http://localhost:8545 \
--private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 \
--broadcast
- Start the frontend
cd nextjs/
npm run dev