Skip to main content

Angstrom-V4

This official library provides Rust developers with the tools to directly interact with UniswapV4 pool state with Angstrom specific features, automatically updating pools from the Slot0 Stream, simulating swaps, and more.

Key Features:

  • Uniswap V4 Pool Management: Track and update pool states from Angstrom's Slot0 WebSocket stream.
  • Swap Simulation: Calculate swap outputs using Uniswap V3/4 math primitives.
  • Unified API: Single import for all Uniswap V4 functionality through re-exported crates.
  • Async Support: Built on Tokio for efficient concurrent pool operations.
  • Alloy Integration: Direct Ethereum RPC and contract interactions via Alloy framework.

Usage

Add angstrom-v4 and its necessary dependencies (primarily from the Alloy ecosystem) to your project's Cargo.toml file.

[dependencies]
angstrom-v4 = { git = "https://github.com/SorellaLabs/angstrom-v4.git" }