Skip to main content

Crate waterpump_evm_pool_sdk

Crate waterpump_evm_pool_sdk 

Source

Re-exports§

pub use pool_harvesters::v3::V3PoolHarvester;
pub use pool_infusers::shadow::ShadowPoolInfuser;
pub use pool_infusers::v3::V3PoolInfuser;
pub use pool_makers::v3::V3PoolMaker;
pub use pool_swappers::slipstream::SlipstreamOneHopSwapper;
pub use pool_swappers::v3::V3OneHopSwapper;
pub use position_viewers::slipstream::SlipstreamPositionViewer;
pub use position_viewers::v3::V3MultiPositionViewer;
pub use position_viewers::v3::V3PositionViewer;

Modules§

addresses
Contract addresses by chain ID for V3, V4, PancakeSwap V3, Ramses V3, Slipstream, Quickswap, and ProjectX
common
contract_libs
pool_harvesters
pool_infusers
pool_makers
pool_swappers
pool_viewers
position_viewers
traits
types

Macros§

impl_intermediate_token
Macro to generate intermediate_token() method for two-pool viewers Assumes the struct has pool_a() and pool_b() methods returning &(PoolKey, Address) where PoolKey implements the PoolKey trait
impl_multi_position_predictor
Macro to generate MultiPositionPredictor trait implementation Assumes the struct has:
impl_multi_position_viewer
Macro to generate MultiPositionViewer trait implementation Assumes the struct has:
impl_pancake_v3_pool_infuser
Macro to implement PancakeSwap V3 PoolInfuser trait
impl_pancake_v3_pool_state
Macro to generate PoolState trait implementation for PancakeSwap V3 pool viewers Assumes the struct has slot0() method that returns IUniswapV3Pool::slot0Return Note: PancakeSwap V3 uses the same IUniswapV3Pool interface as Uniswap V3
impl_pancake_v3_pool_viewer
Macro to generate PoolViewer trait implementation for PancakeSwap V3 pool viewers Assumes the struct has pool_address() method and pool_key() method returning V3PoolKey with token_a and token_b Note: PancakeSwap V3 uses the same interface as Uniswap V3
impl_pool_base
Macro to implement PoolBase trait for pool infusers and viewers
impl_position_predictor
Macro to generate PositionPredictor trait implementation Assumes the struct has:
impl_position_viewer
Macro to generate PositionViewer trait implementation Assumes the struct has a get_position_values method that returns a struct with:
impl_position_viewer_helpers
Macro to generate position viewer helper methods Assumes the struct has a pool_key() method that returns a reference to something with:
impl_quickswap_pool_infuser
Macro to implement Quickswap PoolInfuser trait
impl_quickswap_pool_state
Macro to generate PoolState trait implementation for Quickswap pool viewers.
impl_quickswap_pool_viewer
Macro to generate PoolViewer trait implementation for Algebra pool viewers.
impl_shadow_pool_infuser
Macro to implement Ramses V3 PoolInfuser trait
impl_shadow_pool_state
Macro to generate PoolState trait implementation for Ramses V3 pool viewers Assumes the struct has slot0() method that returns IRamsesV3PoolState::slot0Return Uses shadow-lib bindings for Ramses V3-specific interfaces
impl_shadow_pool_viewer
Macro to generate PoolViewer trait implementation for Ramses V3 pool viewers Assumes the struct has pool_address() method and pool_key() method returning V3PoolKey with token_a and token_b Note: Ramses V3 uses the same interface as Uniswap V3 (IRamsesV3PoolState is compatible with IUniswapV3Pool), so we use uniswap_lens bindings
impl_slipstream_multi_pool_state
Macro to generate MultiPoolState trait implementation for Slipstream multi-pool viewers Assumes the struct has pools() method returning Vec<(SlipstreamPoolKey, Address)> and slot0s() method
impl_slipstream_pool_infuser
Macro to implement Slipstream PoolInfuser trait
impl_slipstream_pool_state
Macro to generate PoolState trait implementation for Slipstream pool viewers Assumes the struct has slot0() method that returns ICLPool::slot0Return
impl_slipstream_pool_viewer
Macro to generate PoolViewer trait implementation for Slipstream pool viewers Assumes the struct has pool_address() method and pool_key() method returning SlipstreamPoolKey with token_a and token_b
impl_slipstream_two_pool_viewer
Macro to generate PoolViewer trait implementation and helper methods for Slipstream two-pool viewers Assumes the struct has pool_a() and pool_b() methods returning &(SlipstreamPoolKey, Address)
impl_token_helper
Macro to implement TokenHelper trait for structs that have a public sender_address field
impl_two_hop_swapper_methods
Macro to generate two-hop swapper helper methods Assumes the struct has:
impl_v3_multi_pool_state
Macro to generate MultiPoolState trait implementation for V3 multi-pool viewers Assumes the struct has pools() method returning &[(V3PoolKey, Address)] and slot0s() method
impl_v3_pool_infuser
Macro to implement V3 PoolInfuser trait
impl_v3_pool_state
Macro to generate PoolState trait implementation for V3 pool viewers Assumes the struct has slot0() method that returns IUniswapV3Pool::slot0Return
impl_v3_pool_viewer
Macro to generate PoolViewer trait implementation for V3 pool viewers Assumes the struct has pool_address() method and pool_key() method returning V3PoolKey with token_a and token_b
impl_v3_two_pool_viewer
Macro to generate PoolViewer trait implementation and helper methods for V3 two-pool viewers Assumes the struct has pool_a() and pool_b() methods returning &(V3PoolKey, Address)
impl_v4_multi_pool_state
Macro to generate MultiPoolState trait implementation for V4 multi-pool viewers Assumes the struct has pools() method returning &[(V4PoolKey, B256)], slot0s() method, and get_liquidities() method
impl_v4_multi_pool_viewer
Macro to generate MultiPoolViewer trait implementation for V4 multi-pool viewers Assumes the struct has pools() method returning &[(V4PoolKey, B256)], get_state_view() method, and is_token_a_base field
impl_v4_pool_infuser
Macro to implement V4 PoolInfuser trait
impl_v4_pool_state
Macro to generate PoolState trait implementation for V4 pool viewers Assumes the struct has slot0() method that returns (U160, I24, U24, U24)
impl_v4_pool_viewer
Macro to generate PoolViewer trait implementation for V4 pool viewers Assumes the struct has pool_id() method, pool_key() method returning V4PoolKey, and get_pool_manager() method

Structs§

PoolPriceResult
SlipstreamPoolViewer
V3MultiPoolViewer
V3PoolViewer

Traits§

MultiPoolViewer
PoolViewer