uniswap-v4

Orchestrate Uniswap v4 pool actions within the unlock/callback boundary.

4|1|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/hairyf/blockchain-master --skill uniswap-v4
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uniswap-v4
Source: https://github.com/hairyf/blockchain-master/tree/main/skills/uniswap-v4
Command: npx skills add https://github.com/hairyf/blockchain-master --skill uniswap-v4

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Uniswap v4 relies on a singleton PoolManager and an unlock/callback pattern to coordinate complex pool actions safely; this Skill provides a compact mental model and practical references for implementing and reasoning about those interactions.

Core Features & Use Cases

  • Singleton PoolManager holds all pool state and enables batched operations.
  • Unlock/callback flow enforces a single reentrancy boundary and zero-delta settlement requirement.
  • Hooks and delta mechanics let pools attach lifecycle callbacks and manage balance deltas during swaps, liquidity changes, and donations.

Quick Start

Invoke poolManager.unlock with your action payload to begin a batched pool operation.

Frequently Asked Questions about uniswap-v4

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does the Uniswap v4 unlock callback flow work?

The Uniswap v4 unlock callback flow requires calling poolManager.unlock with an action payload to trigger a single reentrancy boundary, execute batched pool operations, and enforce zero-delta settlement before completion.

How do I initialize pools and swap tokens in a Uniswap v4 singleton PoolManager?

To initialize pools and swap tokens in a Uniswap v4 singleton PoolManager, invoke poolManager.unlock with your action payload to begin the batched operation and manage BalanceDelta mechanics inside the callback.

What is the zero-delta settlement requirement in Uniswap v4 smart contracts?

Zero-delta settlement in Uniswap v4 smart contracts requires all BalanceDelta values from swaps, liquidity changes, and donations to be fully resolved and settled within the unlock callback boundary before execution completes.

Do I need to understand PoolKey and BalanceDelta to manage Uniswap v4 pools?

Yes, managing Uniswap v4 pools requires understanding PoolKey to identify pools and BalanceDelta to track balance changes during swaps, liquidity modifications, and donations within the singleton PoolManager.

Why does Uniswap v4 use a singleton PoolManager instead of separate pool contracts?

Uniswap v4 uses a singleton PoolManager to hold all pool state in one contract, enabling batched operations, reducing deployment costs, and coordinating complex pool actions safely through the unlock callback flow.

Can I attach custom lifecycle hooks to Uniswap v4 pool actions?

Yes, Uniswap v4 hooks attach lifecycle callbacks to pools, allowing custom logic to execute during swaps, liquidity changes, and donations while managing balance deltas within the singleton PoolManager boundary.