Skip to content

Comments

docs: fix BaseHook import path and setup instructions for v4 hooks#1116

Open
VishnuKMi wants to merge 1 commit intoUniswap:mainfrom
VishnuKMi:fix/hooks-basehook-doc
Open

docs: fix BaseHook import path and setup instructions for v4 hooks#1116
VishnuKMi wants to merge 1 commit intoUniswap:mainfrom
VishnuKMi:fix/hooks-basehook-doc

Conversation

@VishnuKMi
Copy link

Description

This PR updates the local environment setup guide for Uniswap v4 hooks to fix a broken BaseHook import. The documentation currently references BaseHook from v4-periphery, which is no longer available and causes compilation failures.

The guide now installs and references the official v4-hooks-public repository and updates remappings and import paths accordingly.

This ensures developers can successfully follow the setup instructions and compile the example hook contract without errors.


Type(s) of changes

  • Bug fix
  • New feature
  • Update to an existing feature

Motivation for PR

Following the current documentation results in a missing dependency error because BaseHook is no longer present in v4-periphery. This breaks the onboarding flow for developers trying to build hooks.

This PR restores a working setup path using the official hooks repository from openzeppelin and prevents confusion during initial environment configuration.


How Has This Been Tested?

  • Installed dependencies using the updated instructions
  • Verified remappings resolve correctly
  • Successfully compiled the example CounterHook contract with forge build
  • Confirmed no import or dependency errors

Applicable screenshots

N/A — documentation change only.


Follow-up PR

None planned. Happy to adjust based on maintainer feedback.

@vercel
Copy link

vercel bot commented Feb 18, 2026

@VishnuKMi is attempting to deploy a commit to the Uniswap Team on Vercel.

A member of the Team first needs to authorize it.

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