Solidity snippets for all things Uniswap v4
largely inspired by solidity-by-example
The project is welcoming all contributions. Please try to limit PRs to:
- Minimally opinonated examples that showcase v4 features
- Syncing existing snippets with the latest v4 changes
Requires node 18
git clone git@github.com:uniswapfoundation/v4-by-example.git
npm i
npm startcp -r src/template src/pages/<path>/<name>Edit the following files
src/pages/<path>/<name>/index.mdsrc/pages/<path>/<name>/Template.sol
Please write foundry tests in
forge-test/for your.solfiles!
Register the page on nav.ts
{
path: "<name>",
title: "TITLE"
}Generate react, register routes, and rebuild search index
npm run generateUpdate the changelog