Skip to content

Metadata Hook Template #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

smak0v
Copy link

@smak0v smak0v commented Mar 5, 2025

The purpose of this PR is to provide a basic implementation example of the Uniswap V4 hook with metadata support. This code is based on the opened PR to the v4-periphery repository.

NOTE: the .gitmodules file was updated as well to look into the v4-periphery fork with the required HookMetadata abstract contract. We will update it back as soon as the mentioned above PR will be merged into the original v4-periphery repository.

@saucepoint
Copy link
Collaborator

@smak0v instead of adding a new hook, can we just add HookMetadata to src/Counter.sol

@smak0v
Copy link
Author

smak0v commented Mar 5, 2025

@saucepoint The Counter hook is now extended to support HookMetadata

@saucepoint
Copy link
Collaborator

sg, i can take over the PR and refix the dependency once v4-periphery has HookMetadata

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.

2 participants