Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 642 Bytes

README.md

File metadata and controls

50 lines (37 loc) · 642 Bytes

royalty-swap

Install Dependencies

npm install
cd nextjs
npm install
cd contracts
forge install

Define environment variables

cp .env.example .env

Get Started

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