Skip to main content

Crate wp_evm_shadow

Crate wp_evm_shadow 

Source

Modules§

plan
Pure plan functions for the Ramses family.
pool_address_raw
Pure CREATE2 pool address derivation for Ramses-family CL DEXes.

Structs§

CollectFeesParams
Parameters for a collect_fees plan.
Enumeration
ExactInParams
Parameters for an exact_in swap quote/plan.
ExactOutParams
Parameters for an exact_out swap quote/plan.
PlanFragment
Output of a plan function: a bundle of calls + declared approvals + value.
PoolReadEntry
One pool’s read result — resilient per-entry (a single bad pool does not abort the batch).
PoolState
Snapshot of a v3 pool’s on-chain state at some block.
PoolViewData
Normalized pool snapshot — the exact field set the CLI’s output::PoolView renders. Families that have no fee-tier field (ramses) or recompute fee in the renderer (velodrome) set fee: 0; the CLI render path is unaffected.
PositionFees
Per-position fee data produced by Phase 2 + fee-growth math. None on pool / fees indicates the corresponding pool read reverted (uninitialized pool, NFPM mismatch, etc.) — entry’s position data still emits, just without fee augmentation.
PositionState
Hydrated state of a Ramses-family NFPM position.
PositionViewEntry
One entry in the output — either decoded values or an error string.
Quote
Output of a quote computation. Pure — no chain interaction needed to produce one given a PoolState.
RamsesAddLiquidityParams
Parameters for an add_liquidity plan on a Ramses-family NFPM.
RamsesPositionView
Faithful Rust mirror of the Ramses-family NFPM 10-field positions() return tuple, plus the caller-supplied token_id echoed as the first field for round-tripping.
RamsesProtocolConfig
Per-protocol configuration for a Ramses-family DEX.
RemoveAndCollectParams
RemoveLiquidityParams
Parameters for a remove_liquidity plan.

Enums§

QuoteError

Constants§

CONFIG

Functions§

config_for_chain
enumerate_owner_token_ids
factory
init_code_hash
multicall
pending_emissions
plan_add_liquidity
plan_collect_fees
plan_increase_liquidity
plan_remove_liquidity
plan_remove_liquidity_and_collect
Build an atomic multicall(decreaseLiquidity, collect, ..unwrap_tail) plan fragment for a Shadow Sonic NFPM position.
plan_swap_exact_in
pool_address
pool_deployer
pool_state
pool_views
Batch-read Ramses (Shadow) pool snapshots through a single Multicall3.
populate_positions_fees
populate_ticks
position_key
Compute the Ramses-family pool position key.
position_manager
position_state
position_token_pair
position_views
position_views_with_nfpm
quote_exact_in
quote_exact_out
quote_online_exact_in
quoter
router
supports
voter