Thanks to visit codestin.com
Credit goes to github.com

Skip to content

jincubator/hookmate

 
 

Repository files navigation

Hookmate

Overview

A library for Uniswap v4 hook development. Does not provide it's own dependencies, but rather provides libraries for simplified development.

This allows the use of later versions of the solidity compiler then you could by directly accessing the periphery V4Router which is limited to pragma solidity 0.8.26;.

It uses the community V4Router.

It also has helper functions for deployment including address helpers for supported chains and Permit2 and Permit3 support.

The jincubator fork also includes libraries used for developing both the UniIntentSwapV4Router04 and the IntentSwapHook. These libraries are used in the jincubator protocol and v4-router repositories allowing separation of logic between router and hook development.

Permit3 allows you to use the same contract addresses across multiple chains regardless of the input values to the contructor.

Contracts

This initcode bytecode can be generated as follows for the contracts in their respective repositories. Note: You will need to clone the repos locally and do a forge install and potentially a yarn install. This may give a difference in the last few characters the metadata-hash. If this effects you then look at getting the initcode using a command like solc --metadata-hash none

The following additional helper contracts are available

  • Permit2
  • DeployHelper
  • AddressConstants

The following interfaces are available

  • IUniswapV4Router04
  • PathKey

The following constants are available.

  • AddressConstants: Gets permit2, PoolManager, PositionManager, and V4SwapRouter addresses for supported chains.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 99.9%
  • Other 0.1%