Learn / Resources
last updated 2026-08-27
Resources
A short list of places that help you implement a hook correctly. v4hooks listings are licensed Solidity excerpts with GitHub permalinks. These links are the surrounding stack: docs, starters, and miners.
Start here
- Uniswap v4 developer docs — Official overview, hooks concept page, and local testing path.
- v4 by Example — Short Solidity snippets for initialize, swap, liquidity, and hook wiring.
- Awesome Uniswap v4 Hooks — Community index of examples, templates, and write-ups. We list permalinked files from it; we do not dump the whole table.
Templates and libraries
- v4hooks first-party contracts — Hooks we maintain in this repo (Foundry + tests). Place to rewrite legacy ideas for current v4.
- Uniswap Foundation v4-template — Foundry starter for a custom hook: tests, deploy script, and BaseHook wiring.
- Scaffold Hook — Hook stack with testnet deploy and a minimal UI for pool create, LP, and swap.
- OpenZeppelin uniswap-hooks — MIT BaseHook plus fee, MEV, limit-order, JIT penalty, and rehypothecation modules.
Tools
- Uniswap Hooks Claude plugin — Agent assistance that starts from permission bits and security checks.
- Hook address miner — CREATE2 miner so the deployed address encodes the 14 permission bits.
- Uniswap hooklist — Onchain addresses Uniswap routing may use. Not copy-paste Solidity — link it, don’t clone it here.
What we do not list
Hackathon showcase pages, privacy mixers, and repos with no public .sol we can permalink. A name on the awesome list is not enough — the catalog only adds callbacks copied from a real file.