Skip to main content
Solana venue integration orca-whirlpool under svm/venues/orca-whirlpool.
Generated from the type declarations shipped in @eco-incorp/sauce 0.99.4. Each entry shows the package authors’ JSDoc and declaration for this SDK version. For runtime compatibility and deployed addresses, see architecture and deployments.

whirlpoolSqrtPriceAtTick

Function · sdk/dist/svm/venues/orca-whirlpool/tick-math.d.ts sqrt_price_from_tick_index (Q64.64) over the UNBIASED tick.

CREMA_MAX_TICK_INDEX

Variable · sdk/dist/svm/venues/orca-whirlpool/tick-math.d.ts

CREMA_MIN_TICK_INDEX

Variable · sdk/dist/svm/venues/orca-whirlpool/tick-math.d.ts 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 (rC) >> 96 steps and a final >> 32, negative ticks accumulate in Q64 with (rC) >> 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).

CROPPER_POOL_ACCOUNT_SIZE

Variable · sdk/dist/svm/venues/orca-whirlpool/index.d.ts

CROPPER_TICK_ARRAY_ACCOUNT_SIZE

Variable · sdk/dist/svm/venues/orca-whirlpool/index.d.ts

windowStartTicks

Function · sdk/dist/svm/venues/orca-whirlpool/index.d.ts 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 · sdk/dist/svm/venues/orca-whirlpool/index.d.ts 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 · sdk/dist/svm/venues/orca-whirlpool/index.d.ts

WHIRLPOOL_ACCOUNT_SIZE

Variable · sdk/dist/svm/venues/orca-whirlpool/index.d.ts

TICK_ARRAY_ACCOUNT_SIZE

Variable · sdk/dist/svm/venues/orca-whirlpool/index.d.ts

WHIRLPOOL_DISCRIMINATOR

Variable · sdk/dist/svm/venues/orca-whirlpool/index.d.ts sha256(‘account:Whirlpool’)[0..8].

TICK_ARRAY_DISCRIMINATOR

Variable · sdk/dist/svm/venues/orca-whirlpool/index.d.ts sha256(‘account:TickArray’)[0..8] - the FIXED tick array (the only readable kind).

TICK_ARRAY_SIZE

Variable · sdk/dist/svm/venues/orca-whirlpool/index.d.ts

MAX_TICK_INDEX

Variable · sdk/dist/svm/venues/orca-whirlpool/tick-math.d.ts

MIN_TICK_INDEX

Variable · sdk/dist/svm/venues/orca-whirlpool/tick-math.d.ts 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 (rC) >> 96 steps and a final >> 32, negative ticks accumulate in Q64 with (rC) >> 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 · sdk/dist/svm/venues/orca-whirlpool/index.d.ts Shipped initialized-tick boundaries per direction. Sized against the engine’s measured per-step cost (a crossed boundary is ~45k CU in the walk); raising it widens per-slot capacity at ~3 cfg words + one walk iteration apiece and must move in lockstep with the fragment’s unrolled setup (ladder.ts) and the mirror.

OFF_TICK_SPACING

Variable · sdk/dist/svm/venues/orca-whirlpool/index.d.ts

OFF_FEE_TIER_INDEX

Variable · sdk/dist/svm/venues/orca-whirlpool/index.d.ts

OFF_FEE_RATE

Variable · sdk/dist/svm/venues/orca-whirlpool/index.d.ts

OFF_LIQUIDITY

Variable · sdk/dist/svm/venues/orca-whirlpool/index.d.ts

OFF_SQRT_PRICE

Variable · sdk/dist/svm/venues/orca-whirlpool/index.d.ts

OFF_TICK_CURRENT

Variable · sdk/dist/svm/venues/orca-whirlpool/index.d.ts

OFF_TA_START

Variable · sdk/dist/svm/venues/orca-whirlpool/index.d.ts

OFF_TA_TICKS

Variable · sdk/dist/svm/venues/orca-whirlpool/index.d.ts

TICK_LEN

Variable · sdk/dist/svm/venues/orca-whirlpool/index.d.ts

OFF_TA_WHIRLPOOL

Variable · sdk/dist/svm/venues/orca-whirlpool/index.d.ts

WhirlpoolBoundary

Interface · sdk/dist/svm/venues/orca-whirlpool/index.d.ts

WhirlpoolWindow

Interface · sdk/dist/svm/venues/orca-whirlpool/index.d.ts

OrcaWhirlpoolPoolConfig

Interface · sdk/dist/svm/venues/orca-whirlpool/index.d.ts

orcaWhirlpool

Variable · sdk/dist/svm/venues/orca-whirlpool/index.d.ts Family facade for the recipe orchestrator (this venue is ladder-only - it has no v1 SvmVenueAdapter and is not in the v1 registry).