doppler-hooks
Source References: Use Doppler deployments as the contract source of truth for deployed addresses and revisions.
Doppler Hooks
When to use
- You need a top-level hook integration path for a price discovery launch
- You are using
DopplerHookInitializerto register or manage hook callbacks - You are troubleshooting hook-enabled multicurve pools and lifecycle transitions
Prerequisites
- Asset/numeraire addresses and expected pool mode (locked vs migrable)
- Hook contract addresses and intended flags
Core workflow
- Initialize pool with
InitDataincluding optionaldopplerHookand callback calldata. - Confirm stored state via
getState(asset):- pool key
- far tick
- status
- selected hook
- Validate callback execution path by flag:
ON_INITIALIZATION_FLAGON_SWAP_FLAGON_GRADUATION_FLAG
- Verify graduation / migration behavior for the configured hook path.
Supported hook modules
- Rehypothecation hook (
RehypeDopplerHookInitializer) for buybacks, fee routing, and protocol-owner fee claims ScheduledLaunchDopplerHookfor start-time gatesSwapRestrictorDopplerHookfor per-address amount ceilings
Quick facts
| Item | Detail |
|---|---|
| Initializer contract | DopplerHookInitializer |
| Base hook contract | BaseDopplerHook |
| Core callback flags | ON_INITIALIZATION_FLAG, ON_SWAP_FLAG, ON_GRADUATION_FLAG |
| Common module | Rehypothecation hook (RehypeDopplerHookInitializer) |
Failure modes
- Hook module not enabled for the target deployment
- Incorrect callback calldata encoding
- Status mismatch (
WrongPoolStatuscases) - Attempting migration without graduation conditions met
References
- WORKFLOWS.md
- STATE-MAP.md
- Source:
doppler/src/initializers/DopplerHookInitializer.sol,doppler/src/base/BaseDopplerHook.sol,doppler/docs/DopplerHookInitializer.md
Related skills
More from rustydotwtf/doppler-skills
fee-architecture
Reference for Doppler fee collection, distribution, and configuration across Airlock, FeesManager, locker contracts, and hook-based fee paths.
9token-lifecycle
Reference for Doppler token creation, vesting, inflation, and factory selection across DERC20, DERC2080, CloneERC20, and CloneDERC20VotesV2 paths.
9uniswap-fundamentals
Reference for Uniswap V3/V4 concepts used in Doppler development, including tick math, sqrtPriceX96, concentrated liquidity formulas, and V4 hooks/singleton architecture.
9verification
Verify on-chain Doppler behavior with cast, viem, RPC, and explorers for dynamic auctions, multicurve launches, hook initializer state, and migration flows.
8proceeds-split-migration
Configure and verify migration-time proceeds split flows using `ProceedsSplitter`, `TopUpDistributor`, `UniswapV4MigratorSplit`, and `UniswapV4MigratorSplitHook`.
7rehype
Operate, configure, test, and deploy Doppler's Rehype V4 hook for buybacks, beneficiary fees, and airlock-owner fee claims.
4