# to create the hook
forge script script/CreateHook.s.sol \
--rpc-url https://polygon-mumbai.infura.io/v3/<auth> \
--private-key <private key> \
--code-size-limit 30000 \
--broadcast
# to create the pool using this hook
forge script script/CreatePool.s.sol \
--rpc-url https://polygon-mumbai.infura.io/v3/<auth> \
--private-key <private key> \
--code-size-limit 30000 \
--broadcast
# to add liquidity to the pool(uses PoolModifyPositionTest contract instead of PoolManager)
forge script script/AddLiquidity.s.sol \
--rpc-url https://polygon-mumbai.infura.io/v3/<auth> \
--private-key <private key> \
--code-size-limit 30000 \
--broadcast
lumos42 / uniswap-v4-hook Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License