Skip to main content

wp_evm_v3_core/
lib.rs

1//! wp-evm-v3-core — pure computation for v3-style concentrated-liquidity DEXes.
2//!
3//! Four modules:
4//! - `data` — pure records (PoolState, Quote, ProtocolConfig, etc.)
5//! - `quote` — pure swap-math functions (exact_in, exact_out)
6//! - `plan` — pure ABI-encoding functions (swap, add_liquidity, etc.)
7//! - `pool_address` — pure CREATE2 pool address derivation
8//!
9//! Zero async dependencies. Consumers that need chain I/O should depend on
10//! `wp-evm-v3-provider`, which re-exports all of this crate's public API.
11
12pub mod data;
13pub mod plan;
14pub mod pool_address;
15pub mod position;
16pub mod quote;
17
18// Native swap loop — internal to v3-core per YAGNI. Exposed via
19// `quote::exact_in_*` only; direct callers have no use case yet.
20mod swap;