Skip to main content
Archived documentation for @eco-incorp/sauce@1.0.0. Install this release with npm install --save-exact @eco-incorp/sauce@1.0.0. Links to guides outside this tab open current documentation.
@eco-incorp/sauce/svm is the Solana side: the client (createSauceSvmClient), clusters, PDAs, account resolution against the compilerโ€™s account manifest, Kitchen and engine instructions, transactions and sending, token accounts, and compute planning for @sauce/routerโ€™s Solana venues. @eco-incorp/sauce/svm/engine exports the engineโ€™s wire format and instruction builders, @eco-incorp/sauce/svm/verify verifies settle programs and engine CPI data, and @eco-incorp/sauce/svm/engine-artifacts (Node only) returns file paths to the packaged engine and Kitchen binaries.
Generated from the type declarations of @eco-incorp/sauce.

staticCpiScreen

Function ยท @eco-incorp/sauce/svm The free static screen over a swapโ€™s account list. introspects / foreign-signer โ‡’ hard P-C candidate; otherwise the pool is a P-A candidate that the unrecognized-caller simulation confirms.

probeCpiAcceptance

Function ยท @eco-incorp/sauce/svm Runs the unrecognized-caller simulation and classifies the venue. Never lands a swap; on any simulation error it returns reject with the error detail (a gated program refuses the arbitrary caller). ACCEPT/DEGRADE split on expectedOut when supplied.

classifyVenue

Function ยท @eco-incorp/sauce/svm Combine the static screen with an optional simulation verdict into the final tier. Introspection is decisive P-C. Otherwise ACCEPT โ‡’ P-A (public/readable oracle) or P-B (proprietary internal oracle located empirically - the caller distinguishes via internalOracle); REJECT/DEGRADE โ‡’ P-C. Without a sim verdict the static candidate stands (a P-A candidate stays provisional).

INSTRUCTIONS_SYSVAR

Variable ยท @eco-incorp/sauce/svm The instructions sysvar - its presence in a swapโ€™s account list = introspection.

CpiTier

Type ยท @eco-incorp/sauce/svm Prop-AMM integrability tier (see the module doc + the historical venue investigation).

ScreenAccount

Interface ยท @eco-incorp/sauce/svm One account of a venue swap, for the static screen (address + signer flag).

StaticScreenInput

Interface ยท @eco-incorp/sauce/svm

StaticScreen

Interface ยท @eco-incorp/sauce/svm

CpiVerdict

Type ยท @eco-incorp/sauce/svm ACCEPT / REJECT / DEGRADE / UNKNOWN - the simulation verdict.

AcceptanceProbeInput

Interface ยท @eco-incorp/sauce/svm

AcceptanceProbe

Interface ยท @eco-incorp/sauce/svm

VenueClassification

Interface ยท @eco-incorp/sauce/svm