waterpump-evm-pool-sdk 0.1.0

EVM pool SDK — viewers, infusers, harvesters, swappers for Uniswap V3/V4, PancakeSwap, Slipstream, Shadow, Algebra
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// V4 pool viewer structs have been moved to uniswap-v4-lib crate.
// Import from waterpump_evm_uniswap_v4_client::pool_viewers instead.

// Re-export V4 pool utilities from common module (kept here for
// backward compatibility)
pub use crate::common::v4_utils::{
    calculate_price_from_sqrt_price_x96, decode_slot0, decode_tick_info, get_liquidity_slot,
    get_pool_state_slot, get_tick_info_slot, FEE_GROWTH_GLOBAL0_OFFSET, LIQUIDITY_OFFSET,
    TICKS_OFFSET,
};
// Re-export V4PoolKey for convenience
pub use crate::types::v4_pool_key::V4PoolKey;