Infrastructure
Hook library
All 46 Hookr reference blocks, their architecture, source licenses, composition constraints and adaptations for our planned library.
How the reference product is built
Hookr composes a shared v4 root, per-pool rules, a registry of permitted modules, an advisory or gate layer, launch tooling, routing and quoting, and contracts beside the pool. Saved hooks are configurations, while an owned root gives that configured system another address. These are different layers of one product.
Pool execution
Core blocks and admitted advisory logic run through the root and pool rules. Slot and fee-budget constraints restrict combinations.
Launch and surrounding tools
Allocations, locks, vesting, revenue distribution, route selection and limit orders include separate launch, side-contract or transaction paths.
Deploying an owned Hookr root does not automatically remove the reference router, launcher or treasury economics. An OCB implementation needs explicit dependency, permission and fee accounting decisions.
Catalog coverage
The extraction covers 9 protection/access blocks, 7 fee blocks, 4 creator-income blocks, 6 reward blocks, 5 liquidity/yield blocks, 5 team-token blocks and 10 pool/trading blocks. The searchable catalog preserves a source link, placement, parameter summary, constraints and RAM suitability for every entry.
Browse all 46 building blocks or download the catalog snapshot. Reference defaults describe Hookr and are not OCB product parameters.
Source and license review
Verified contract sources and SDK metadata were inspected without executing third-party code. The extraction preserves provenance and per-file license information. Confirmed MIT-licensed Hookr-owned files can be evaluated for reuse with their notices retained. Compilation dependencies include other licenses, including BUSL and AGPL; they need their own assessment.
Verified source availability establishes code provenance, not an independent security audit. Some catalog entries describe combinations, external services or upcoming deployments rather than a standalone extractable contract. Source associations must be tracked separately from product claims.
The source snapshot contains 354 confirmed MIT-licensed Solidity files plus SDK 1.7.0. Across the 46 catalog entries, 38 have verified implementation associations, five are partial and three are unresolved. These are source-traceability counts, not standalone deployability or audit counts. Read the per-block source map.
Adaptations for RAM
- Replace a moving pool-price reference with the accepted weighted DDR5 index oracle and explicit publication states.
- Adapt market-hour logic to the data publication schedule; stock-exchange calendar defaults do not define RAM freshness.
- Preserve liquidity withdrawal during swap guards; reference launch locks are not copied indiscriminately.
- Keep synthetic issuance and burning tied to the backing vault. Reward-mint or automatic-burn ideas require a liability-preserving design.
- Review advisory-slot conflicts, routing dependencies, cumulative limits and combined fee ceilings before composing a pool.
What the review found
Some detail pages report Live while the catalog has a Checking read state; neither is an independent audit. Floor bid, Dev Drip and Outside Fill describe deployments as forthcoming in the reviewed snapshot. Tax + Conversion is closed to new pools, with Swap Cut as its replacement. These distinctions stay in the extraction.
Implementation sequence
Start with RAM's oracle adapter, directional fees, update guard, exposure limits and launch validation. Keep issuance, collateral and redemption in the backing system. Add compatible modules through a versioned rules and registry design, with an independent audit and testnet review before any production deployment.
Primary references
- Hookr catalog.
- Hookr architecture and contracts and addresses.
- Core-block documentation.
- Uniswap v4 hooks.
Hookr is an independent project. Names and links identify reference functionality; no affiliation is implied.