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.

buildHeapFramePrepend

Function ยท @eco-incorp/sauce/svm Builds the required 256 KiB heap-frame request for cook transactions. Include it exactly once beside any compute-unit-limit request. High-level clients attach it automatically. Buffer-staging transactions do not require it.

buildComputeBudgetPrepend

Function ยท @eco-incorp/sauce/svm

buildAtaPrepend

Function ยท @eco-incorp/sauce/svm Idempotent ATA creation - safe to prepend whether or not the ATA already exists.

buildWrapSolPrepends

Function ยท @eco-incorp/sauce/svm Idempotent wSOL ATA + SOL transfer + SyncNative - wraps lamports into the ownerโ€™s wSOL account.

NATIVE_MINT

Variable ยท @eco-incorp/sauce/svm Wrapped SOL mint (not exported by @solana-program/token).

ComputeBudgetPrependInput

Interface ยท @eco-incorp/sauce/svm

AtaPrependInput

Interface ยท @eco-incorp/sauce/svm

WrapSolPrependsInput

Interface ยท @eco-incorp/sauce/svm