Skip to main content
Archived documentation for @eco-incorp/sauce@0.99.16. Install this release with npm install --save-exact @eco-incorp/sauce@0.99.16. Links to guides outside this tab open current documentation.
Solana venue integration orca-whirlpool, exported from @eco-incorp/sauce/svm. Generated from the type declarations of @eco-incorp/sauce.

whirlpoolSqrtPriceAtTick

Function · @eco-incorp/sauce/svm sqrt_price_from_tick_index (Q64.64) over the UNBIASED tick.

windowStartTicks

Function · @eco-incorp/sauce/svm The program’s expected window start indexes for a direction (sparse_swap.rs get_start_tick_indexes), unfiltered: exactly three, including any outside the initializable range (those PDAs never exist and stay beyond readable).

fetchOrcaWhirlpoolConfig

Function · @eco-incorp/sauce/svm Fetch + gate one whirlpool (see the header for the gate list) and freeze both directions’ boundary windows. Read-only against the loader.

ORCA_WHIRLPOOL_PROGRAM_ID

Variable · @eco-incorp/sauce/svm

WHIRLPOOL_ACCOUNT_SIZE

Variable · @eco-incorp/sauce/svm

TICK_ARRAY_ACCOUNT_SIZE

Variable · @eco-incorp/sauce/svm

WHIRLPOOL_DISCRIMINATOR

Variable · @eco-incorp/sauce/svm sha256(‘account:Whirlpool’)[0..8].

TICK_ARRAY_DISCRIMINATOR

Variable · @eco-incorp/sauce/svm sha256(‘account:TickArray’)[0..8] - the FIXED tick array (the only readable kind).

TICK_ARRAY_SIZE

Variable · @eco-incorp/sauce/svm

MAX_TICK_INDEX

Variable · @eco-incorp/sauce/svm

MIN_TICK_INDEX

Variable · @eco-incorp/sauce/svm Orca Whirlpools tick math - exact transcription of programs/whirlpool/src/math/tick_math.rs sqrt_price_from_tick_index: positive ticks accumulate in Q96 with (r * C) >> 96 steps and a final >> 32, negative ticks accumulate in Q64 with (r * C) >> 64 steps. Verified against the source’s own pinned bit-value test table (see the unit suite). Shared by fetchPoolConfig (deriving the shipped boundary sqrt prices), the ladder mirror and the test fixtures. sqrt_price_from_tick_index is a pure function of the tick, which is why a prepare-shipped sqrt price is exact by construction - the engine-side fragment never recomputes it (an in-VM bit ladder costs ~54k CU per call on the interpreter).

WHIRLPOOL_MAX_BOUNDARIES

Variable · @eco-incorp/sauce/svm Shipped initialized-tick boundaries per direction.

OFF_TICK_SPACING

Variable · @eco-incorp/sauce/svm

OFF_FEE_TIER_INDEX

Variable · @eco-incorp/sauce/svm

OFF_FEE_RATE

Variable · @eco-incorp/sauce/svm

OFF_LIQUIDITY

Variable · @eco-incorp/sauce/svm

OFF_SQRT_PRICE

Variable · @eco-incorp/sauce/svm

OFF_TICK_CURRENT

Variable · @eco-incorp/sauce/svm

OFF_TA_START

Variable · @eco-incorp/sauce/svm

OFF_TA_TICKS

Variable · @eco-incorp/sauce/svm

TICK_LEN

Variable · @eco-incorp/sauce/svm

OFF_TA_WHIRLPOOL

Variable · @eco-incorp/sauce/svm

WhirlpoolBoundary

Interface · @eco-incorp/sauce/svm

WhirlpoolWindow

Interface · @eco-incorp/sauce/svm

OrcaWhirlpoolPoolConfig

Interface · @eco-incorp/sauce/svm

orcaWhirlpool

Variable · @eco-incorp/sauce/svm The Orca Whirlpools venue: a concentrated-liquidity AMM.