Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions src/chain/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ use crate::quoting::pools::twamm::{
TwammPool, TwammPoolConfig, TwammPoolConstructionError, TwammPoolKey, TwammPoolQuoteError,
TwammPoolResources, TwammPoolState, TwammPoolTypeConfig, TwammStandalonePoolResources,
};
use crate::quoting::pools::ve33::{
Ve33Pool, Ve33PoolConfig, Ve33PoolConstructionError, Ve33PoolKey, Ve33PoolQuoteError,
Ve33PoolResources, Ve33PoolState, Ve33StandalonePoolResources,
};
use crate::quoting::types::{PoolConfig, PoolKey, TokenAmount};

// Re-export pool types for ergonomic, chain-scoped usage.
Expand Down Expand Up @@ -149,6 +153,39 @@ pub type EvmBoostedFeesStableswapPoolState = BoostedFeesStableswapPoolState;
pub type EvmBoostedFeesStableswapPoolQuoteError = BoostedFeesStableswapPoolQuoteError;
pub type EvmBoostedFeesStableswapPoolTypeConfig = BoostedFeesStableswapPoolTypeConfig;

pub type EvmVe33ConcentratedPool = Ve33Pool<ConcentratedPool<Evm>>;
pub type EvmVe33ConcentratedPoolConstructionError = Ve33PoolConstructionError;
pub type EvmVe33ConcentratedPoolConfig = Ve33PoolConfig<ConcentratedPool<Evm>>;
pub type EvmVe33ConcentratedPoolKey = Ve33PoolKey<ConcentratedPool<Evm>>;
pub type EvmVe33ConcentratedPoolQuoteError =
Ve33PoolQuoteError<<ConcentratedPool<Evm> as crate::quoting::types::Pool>::QuoteError>;
pub type EvmVe33ConcentratedPoolResources = Ve33PoolResources<ConcentratedPoolResources>;
pub type EvmVe33ConcentratedPoolState = Ve33PoolState<ConcentratedPoolState>;
pub type EvmVe33ConcentratedStandalonePoolResources = Ve33StandalonePoolResources;
pub type EvmVe33ConcentratedPoolTypeConfig = ConcentratedPoolTypeConfig;

pub type EvmVe33FullRangePool = Ve33Pool<FullRangePool>;
pub type EvmVe33FullRangePoolConstructionError = Ve33PoolConstructionError;
pub type EvmVe33FullRangePoolConfig = Ve33PoolConfig<FullRangePool>;
pub type EvmVe33FullRangePoolKey = Ve33PoolKey<FullRangePool>;
pub type EvmVe33FullRangePoolQuoteError =
Ve33PoolQuoteError<<FullRangePool as crate::quoting::types::Pool>::QuoteError>;
pub type EvmVe33FullRangePoolResources = Ve33PoolResources<FullRangePoolResources>;
pub type EvmVe33FullRangePoolState = Ve33PoolState<FullRangePoolState>;
pub type EvmVe33FullRangeStandalonePoolResources = Ve33StandalonePoolResources;
pub type EvmVe33FullRangePoolTypeConfig = FullRangePoolTypeConfig;

pub type EvmVe33StableswapPool = Ve33Pool<StableswapPool>;
pub type EvmVe33StableswapPoolConstructionError = Ve33PoolConstructionError;
pub type EvmVe33StableswapPoolConfig = Ve33PoolConfig<StableswapPool>;
pub type EvmVe33StableswapPoolKey = Ve33PoolKey<StableswapPool>;
pub type EvmVe33StableswapPoolQuoteError =
Ve33PoolQuoteError<<StableswapPool as crate::quoting::types::Pool>::QuoteError>;
pub type EvmVe33StableswapPoolResources = Ve33PoolResources<StableswapPoolResources>;
pub type EvmVe33StableswapPoolState = Ve33PoolState<StableswapPoolState>;
pub type EvmVe33StableswapStandalonePoolResources = Ve33StandalonePoolResources;
pub type EvmVe33StableswapPoolTypeConfig = StableswapPoolTypeConfig;

pub const EVM_NATIVE_TOKEN_ADDRESS: Address = Address::ZERO;
pub const EVM_MAX_TICK_SPACING: TickSpacing = TickSpacing(698605);
pub const EVM_FULL_RANGE_TICK_SPACING: u32 = 0;
Expand Down
2 changes: 2 additions & 0 deletions src/quoting/pools/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ pub mod spline;
#[cfg(any(feature = "evm", feature = "evm-alloy-0_6", feature = "evm-alloy-1"))]
pub mod stableswap;
pub mod twamm;
#[cfg(any(feature = "evm", feature = "evm-alloy-0_6", feature = "evm-alloy-1"))]
pub mod ve33;

use crate::quoting::types::PoolKey;
use thiserror::Error;
Expand Down
Loading
Loading