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.
@eco-incorp/sauce.
engineFaultName
Function ยท @eco-incorp/sauce/svm, @eco-incorp/sauce/svm/engine
The fault a Custom(code) from the engine names, or undefined for a code it does not use.
EXECUTE_DISCRIMINATOR
Variable ยท @eco-incorp/sauce/svm, @eco-incorp/sauce/svm/engine
The Kitchen-mediated engine instruction discriminators.
Declared here, not generated. The pre-release engine shipped an engine-abi.json these were
derived from; neither that artifact nor the engine it described exists any more - nothing about
the engine is source-controlled now, it is fetched from a pinned release.
EXECUTE_FROM_ACCOUNT_DISCRIMINATOR
Variable ยท @eco-incorp/sauce/svm, @eco-incorp/sauce/svm/engine
CLOSE_ACCOUNT_DISCRIMINATOR
Variable ยท @eco-incorp/sauce/svm, @eco-incorp/sauce/svm/engine
closeAccount - the third instruction, previously unrepresented here.
COOK_AND_PAY_DISCRIMINATOR
Variable ยท @eco-incorp/sauce/svm, @eco-incorp/sauce/svm/engine
The direct paid cooks: sha256("global:<name>")[..8], as the engine declares them.
cookAndPay carries max_execution_fee (u64 LE) and then the bytecode; cookAndPayFromAccount
the fee cap alone, the program being account 0โs data; cookAndPayFromAccountPinned the fee cap
and the SHA-256 that account 0โs whole data must hash to. None carries a Pot gate header.
COOK_AND_PAY_FROM_ACCOUNT_DISCRIMINATOR
Variable ยท @eco-incorp/sauce/svm, @eco-incorp/sauce/svm/engine
COOK_AND_PAY_FROM_ACCOUNT_PINNED_DISCRIMINATOR
Variable ยท @eco-incorp/sauce/svm, @eco-incorp/sauce/svm/engine
ENGINE_FAULTS
Variable ยท @eco-incorp/sauce/svm, @eco-incorp/sauce/svm/engine
The engineโs Custom(n) fault codes, by name - what a failed engine instructionโs
InstructionError carries. Revert (0) is a programโs own throw/require, its payload the
return data; every other code is the engine refusing. The direct cooks add the fee faults
(InvalidFeeConfig โฆ ExecutionFeeExceedsMaximum) and CodeHashMismatch; a legacy instruction
sent by anything but a Kitchen cook is NotCookedByKitchen.
EngineFault
Type ยท @eco-incorp/sauce/svm, @eco-incorp/sauce/svm/engine
HEAP_FRAME_BYTES
Variable ยท @eco-incorp/sauce/svm, @eco-incorp/sauce/svm/engine
The required 256 KiB heap-frame request for every cook transaction: without it the cook fails before the program runs. Include buildHeapFramePrepend() exactly once. Duplicate ComputeBudget instruction types fail the transaction. Buffer-staging transactions do not require it.
HEAP_FRAME_CU_PER_INVOCATION
Variable ยท @eco-incorp/sauce/svm, @eco-incorp/sauce/svm/engine
CU cost of the heap-frame request, charged per program invocation in the transaction.
REQUEST_HEAP_FRAME_WIRE_BYTES
Variable ยท @eco-incorp/sauce/svm, @eco-incorp/sauce/svm/engine
The size the SDK records for the RequestHeapFrame instruction. Measured with getTransactionSize, the instruction adds 8 bytes to a transaction that already carries another ComputeBudget instruction, and 40 bytes to one that carries none: the 8 and the ComputeBudget programโs 32-byte key. Size a transaction with getTransactionSize.
MAX_RETURN_DATA
Variable ยท @eco-incorp/sauce/svm, @eco-incorp/sauce/svm/engine
MAX_CPI_ACCOUNTS
Variable ยท @eco-incorp/sauce/svm, @eco-incorp/sauce/svm/engine
ENGINE_GAS_LIMIT_CU
Variable ยท @eco-incorp/sauce/svm, @eco-incorp/sauce/svm/engine
ENGINE_CHAIN_IDS
Variable ยท @eco-incorp/sauce/svm, @eco-incorp/sauce/svm/engine
The chain IDs reported by ctx.chainId() for the supported Solana clusters.
