HookForge

50 production Uniswap v4 hooks that do not exist yet.
Uniswap v4 turned the AMM into a platform, and most of what has been built on it so far is a re-implementation of
something that already worked: limit orders, TWAMM, KYC gates, another dynamic fee. HookForge is a catalogue of the
mechanisms that are missing. Every hook here is checked against the ~140 published hooks and hackathon submissions
before it is written, each one ships with its prior art stated in the source, and each one is a complete contract with
tests, a deployment script, a TypeScript client and a page in the docs.
Nothing here is a sketch. There are no mocks, no TODOs and no stubs. If a hook is listed as shipped, it compiles,
its tests pass against a real PoolManager, and it can be deployed with one command.
- Chains: Base, Arbitrum One, Unichain, Robinhood Chain, and any EVM chain with a v4
PoolManager.
- Built on: Uniswap v4-core and OpenZeppelin's audited
uniswap-hooks base contracts.
- Licence: Apache-2.0.
Why the hooks are discoverable
A hook is an address in a PoolKey. Nothing about that address tells an indexer, a wallet, a router or an agent what
the pool actually does, which is why hook discovery today is a curated list maintained by hand.
Every HookForge hook answers for itself. It implements IHookMetadata, four view functions that return a name, a
version, a tag list and a URI pointing at a machine-readable manifest:
interface IHookMetadata {
function hookName() external view returns (string memory);
function hookVersion() external view returns (string memory);
function specURI() external view returns (string memory);
function hookTags() external view returns (string[] memory);
}
Ask any HookForge address what it is and it will tell you, on-chain, in one eth_call, with no registry in the loop.
The hooks are also submitted to Uniswap's hooklist and published as an MCP
server so that coding agents can read the catalogue directly.
The catalogue
Status is honest: shipped means the contract, its tests and its documentation are all in this repository.
Order flow and MEV
| Hook | What it does | Status |
|---|
ArbTaxDecay | Prices staleness: the longer a pool sits untraded, the more the next swap pays, on a saturating curve. Recaptures loss-versus-rebalancing with no oracle. | shipped |
PriorityFeeTax | Charges a surcharge proportional to the swap's own priority fee, on the theory that toxic flow bids for position and benign flow does not. | shipped |
BlockBatchClearing | Clears a whole block's orders at one uniform price, solved in closed form on-chain with no solver and no auction, so being first is worth nothing and opposing orders fill against each other with no slippage. | shipped |
TopOfBlockAuction | Sells the right to trade first in a block and pays the proceeds to the providers whose stale quote created the value. | shipped |
FlowClassifier | Publishes on-chain how much of a pool's flow arrives first in the block and how far it moves the price, as a public good other hooks can read. Changes nothing about the pool it measures. | shipped |
ImpactSplit | Charges each swap for its price impact, holds the charge, then splits it: the share of the move that survived a settlement window goes to providers, the share that decayed goes back to the trader. Permanent versus temporary impact, decided by the price rather than guessed at. | shipped |
BlockReversal | Charges the swap that unwinds the current block's own price move, which is the only leg of a sandwich identifiable without knowing who is trading. Replaces the address-based SandwichBond sketch, which a second EOA defeats. | shipped |