Documentation · 01 / 11
Quickstart
EVH is one Uniswap V4 hook — the EVHHypervisor — that implements all eight lifecycle callbacks and hard-codes no strategy. Each callback is a phase. On every pool operation the hypervisor builds anInvocation, hands it to the PluginRuntime, and the runtime runs every plugin seated on that phase, in rank order, under hard fuel caps.
Ship a plugin in five steps
- Lock EVH in StakeVault to meet the catalog's minimum author stake.
- Write a contract implementing
spec()andrun()— usually by extendingPluginBase. - Fabricate it through
PluginForge.fabricate(initCode, salt): CREATE2, then an immediate opcode scan. - Enroll with
PluginCatalog.enroll(...). Every argument must equal what your on-chainspec()returns. - Seat it: a pool operator calls
DispatchBoard.seat(poolId, pluginId, phase, rank).
Then bond EVH behind it in PluginBonds to raise its epoch fuel allowance, and watch it in a dispatch trace.