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 crema, exported from @eco-incorp/sauce/svm. Generated from the type declarations of @eco-incorp/sauce.

CREMA_PROGRAM_ID

Variable · @eco-incorp/sauce/svm

CLMMPOOL_ACCOUNT_SIZE

Variable · @eco-incorp/sauce/svm

CLMMPOOL_DISCRIMINATOR

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

CREMA_TICK_ARRAY_ACCOUNT_SIZE

Variable · @eco-incorp/sauce/svm

CREMA_TICK_ARRAY_DISCRIMINATOR

Variable · @eco-incorp/sauce/svm sha256(‘account:TickArray’)[0..8] - byte-identical to orca-whirlpool’s own (name-derived, not program-derived).

TICK_ARRAY_MAP_ACCOUNT_SIZE

Variable · @eco-incorp/sauce/svm

TICK_ARRAY_MAP_DISCRIMINATOR

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

CREMA_TICK_ARRAY_SIZE

Variable · @eco-incorp/sauce/svm

CREMA_OFF_TICK_SPACING

Variable · @eco-incorp/sauce/svm

CREMA_OFF_FEE_RATE

Variable · @eco-incorp/sauce/svm

CREMA_OFF_LIQUIDITY

Variable · @eco-incorp/sauce/svm

CREMA_OFF_SQRT_PRICE

Variable · @eco-incorp/sauce/svm

CREMA_OFF_TICK_CURRENT

Variable · @eco-incorp/sauce/svm

OFF_TA_ARRAY_INDEX

Variable · @eco-incorp/sauce/svm

CREMA_OFF_TA_TICKS

Variable · @eco-incorp/sauce/svm

CREMA_TICK_LEN

Variable · @eco-incorp/sauce/svm

CREMA_MAX_BOUNDARIES

Variable · @eco-incorp/sauce/svm Shipped initialized-tick boundaries per direction - same budget class as orca-whirlpool/raydium-clmm.

crema

Variable · @eco-incorp/sauce/svm The Crema Finance venue: a concentrated-liquidity AMM with Orca Whirlpool’s layout and math.

fetchCremaPoolConfig

Function · @eco-incorp/sauce/svm Fetch + decode one Clmmpool and freeze both directions’ boundary windows. Read-only against the loader.

CREMA_MAX_TICK_INDEX

Variable · @eco-incorp/sauce/svm

CREMA_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).

CremaBoundary

Interface · @eco-incorp/sauce/svm

CremaWindow

Interface · @eco-incorp/sauce/svm

CremaPoolConfig

Interface · @eco-incorp/sauce/svm