Documentation · 01 / 11
Quickstart
EVH is one Uniswap V4 hook — the Hypervisor — 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 assigned 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. - Deploy it through
PluginForge.deploy(initCode, salt): CREATE2, then an immediate opcode scan. - Register with
PluginCatalog.register(...). Every argument must equal what your on-chainspec()returns. - Assign it: a pool operator calls
DispatchBoard.assign(poolId, pluginId, phase, rank).
Then bond EVH behind it in PluginBonds to raise its epoch fuel allowance, and watch it in a dispatch trace.