Skip to main content

Crate wp_evm_v3_core

Crate wp_evm_v3_core 

Source
Expand description

wp-evm-v3-core — pure computation for v3-style concentrated-liquidity DEXes.

Four modules:

  • data — pure records (PoolState, Quote, ProtocolConfig, etc.)
  • quote — pure swap-math functions (exact_in, exact_out)
  • plan — pure ABI-encoding functions (swap, add_liquidity, etc.)
  • pool_address — pure CREATE2 pool address derivation

Zero async dependencies. Consumers that need chain I/O should depend on wp-evm-v3-provider, which re-exports all of this crate’s public API.

Modules§

data
Pure data records for the v3 family.
plan
Pure plan functions for the v3 family.
pool_address
Pure CREATE2 pool address derivation for V3-pattern DEXes.
position
PositionView — faithful 12-field Rust mirror of Uniswap V3’s NFPM positions(uint256) return tuple, plus the position_key helper matching V3 pools’ internal positions[bytes32] mapping key.
quote
Pure quote functions for the v3 family.