Skip to content

Template repository for writing Uniswap V4 Hooks

License

Notifications You must be signed in to change notification settings

pblivin0x/v4-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

v4-template

A template for writing Uniswap V4 Hooks 🦄

Use this Template

  1. The example hook Counter.sol demonstrates the beforeSwap() and afterSwap() hooks
  2. The test template Counter.t.sol preconfigures the V4 pool manager, test tokens, and test liquidity.

Additional resources:

v4-periphery contains advanced hook implementations that serve as a great reference

v4-core


requires foundry

About

Template repository for writing Uniswap V4 Hooks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 100.0%