Skip to content

docs: add ERC-4626 wrapper hook deploy guide and deployments - #1193

Open
zhongeric wants to merge 1 commit into
mainfrom
docs/erc4626-wrapper-deploy-guide
Open

zhongeric wants to merge 1 commit into
mainfrom
docs/erc4626-wrapper-deploy-guide

Conversation

@zhongeric

Copy link
Copy Markdown
Contributor

Summary

Adds two pages to the Wrapper Hook section under Uniswap Labs Hooks, and links them from the section overview and navigation:

  • erc4626-wrapper/guides/deploy-a-wrapper-hook (new): how to deploy an ERC4626WrapperHook for a new ERC-4626 vault through the AllowlistedFactory. It covers how the factory accepts creation code, the build at the pinned commit, the deploy script, pool initialization, verification, a manual cast path, and how integrators find and verify hooks from the factory.
  • erc4626-wrapper/deployments (new): the Monad AllowlistedFactory address, the pinned source commit, the allowlisted creation-code hashes, and the common hook parameters.
  • erc4626-wrapper/overview.mdx, erc4626-wrapper/meta.json, erc4626-wrapper/guides/meta.json: links and navigation for the two pages.

Type of change

  • Fix (typo, broken link, incorrect or outdated content)
  • New content (guide, page, code example)
  • Update to existing content
  • Other

How has this been verified?

  • The factory address 0x33a9b9a7Ca2e8744bA946c34Fc38a1b34e9197FD has code on Monad (chain 143), and isAllowedCreationCode returns true for the two hashes on the deployments page.
  • The two hashes are the keccak256 of the creation bytecode of ERC4626WrapperHook and ERC4626RoutingHook, compiled from Uniswap/v4-hooks-public at commit b116f79a997ab7bf4065808168e8ac8bc3d54c17.
  • The PoolManager and Quoter addresses agree with content/protocols/v4/deployments.mdx.
  • The commands in the guide were run against a local fork of Monad: the deploy script, PoolManager.initialize, the registry checks, the Quoter call through the routing twin, and the manual cast create2 + factory.deploy path.
  • The pool key values (fee 0, tick spacing 60, start price 1:1) agree with an existing wrapper pool on Monad.

The pages were not rendered in the site build.

Applicable screenshots

None.

Anything else reviewers should know?

  • Routing statements need confirmation before publication. Step 6 of the guide says that routers find hooks from the factory registry and that a hook from the factory does not need its own allowlist request. The guide also deploys the routing twin by default. Both points are pending confirmation from the routing team, and the text can change.
  • Pinned commit. The source links point to commit b116f79 because the factory allowlist is immutable and pins that build. The hook source is not on main of v4-hooks-public yet.
  • Existing concept pages. wrapper-pools and extending-the-hook describe _redeemToUnderlying and the Deallocating* hooks. These are not in the build that the Monad factory pins. This PR does not change those pages.
  • Should the factory also be on the unified Deployments page and the deployments.json feed? This PR does not add it there.

🤖 Generated with Claude Code

Add a guide for deploying an ERC4626WrapperHook for a new vault through
the AllowlistedFactory, and a deployments page with the Monad factory
address, the pinned source commit and the allowlisted creation-code
hashes. Link both from the Wrapper Hook overview and navigation.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Thanks for contributing to Uniswap Docs! 🦄

Quick heads up on how this repo works: the docs you see on developers.uniswap.org are built from a separate source repo. When we accept a change here, we port it over there, so your fix might show up on the live site before it lands in this repo.

Updates to this repo come in batches on a regular cadence. When yours is included, you'll be credited as a co-author on the commit, so the contribution counts on your GitHub profile and in Uniswap/docs.

We review every PR but can't merge everything. Either way, someone from the docs team will follow up here once we've taken a look.

One legal bit: by submitting a PR you agree your contribution is licensed under the repo's MIT license.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant