Skip to main content
@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.

svmPublicKey

Function · @eco-incorp/sauce/svm A Solana public key in either spelling the SDK writes one in: base58, or its 32 bytes as 0x and 64 hex digits - how a program holds a key (an Address value), and how sauce globals prints a mint’s address and deployments.json a program’s key. The key in base58, which every Solana client takes; undefined for any other text.

isSvmAccountName

Function · @eco-incorp/sauce/svm Whether value is a name this language has (it says nothing of whether it resolves).

svmNamesPot

Function · @eco-incorp/sauce/svm Whether value names the Pot: pot, a pot:<token> account, or an address derived from pot. A program’s derivations name it where the program uses pot, and cooked directly on the engine (via: "engine") there is no Pot.

svmCookRoles

Function · @eco-incorp/sauce/svm The cook roles the account value derives from: the role itself (pot, owner, authority), its token account (pot:USDC, authority:USDC, owner:USDC), or an address it seeds. A slot so derived must be the account its derivation gives, cooked either way: a program reads it as the Pot, its owner or the authority it acts with. Empty for every other name.

resolveSvmAccountName

Function · @eco-incorp/sauce/svm Resolves one name to the account a cook attaches. pot and owner stay as they are (and authority becomes one of them), so the cook gives each its signing role; every other name becomes an address. Throws SvmAccountNameError for a name the language does not have (the name self is refused; the Pot is pot), a symbol the chain does not register, any pot form cooked with no Pot (via: "engine"), or an argument not given.

SvmMintProgramOf

Type · @eco-incorp/sauce/svm A mint’s token program, read from the cluster: the owner of the mint’s account.

SvmAccountNameContext

Interface · @eco-incorp/sauce/svm What resolveSvmAccountName resolves names against: the cook, and main’s arguments.

ResolvedSvmAccountName

Interface · @eco-incorp/sauce/svm One name, resolved.

SvmAccountNameError

Class · @eco-incorp/sauce/svm A name that cannot be resolved; its message reads after the name.

SYSTEM_HOLDER

Variable · @eco-incorp/sauce/svm Why system:<token> names nothing: system is no holder.

SvmCookRole

Type · @eco-incorp/sauce/svm A role of the cook itself, which every cook fills: the Pot, its owner, the engine call’s signer.