mswap under svm/venues/mswap.
Generated from the type declarations shipped in
@eco-incorp/sauce 0.99.4. Each entry shows the package authors’ JSDoc and declaration for this SDK version. For runtime compatibility and deployed addresses, see architecture and deployments.MSWAP_PROGRAM_ID
Variable · sdk/dist/svm/venues/mswap/index.d.ts
m0-foundation’s ext_swap router - SVM_VENUE_PROGRAM_IDS['mswap'].
SWAP_GLOBAL_ID
Variable · sdk/dist/svm/venues/mswap/index.d.ts
ext_swap’s own global (PDA seed b"global" under MSWAP_PROGRAM_ID, bump 253 - derived offline, cross-checked live 2026-07-31).
M_MINT
Variable · sdk/dist/svm/venues/mswap/index.d.ts
The one $M mint every whitelisted extension wraps/unwraps against.
M_TOKEN_PROGRAM
Variable · sdk/dist/svm/venues/mswap/index.d.ts
$M is always Token2022 (m_ext’s Wrap/Unwrap hard-type m_token_program: Program<Token2022>).
SWAP_M_ACCOUNT
Variable · sdk/dist/svm/venues/mswap/index.d.ts
SwapGlobal’s own ATA of $M (owner = SWAP_GLOBAL_ID) - the transient per-trade holding account (see module doc).
mswap
Variable · sdk/dist/svm/venues/mswap/index.d.ts
Family facade for the recipe orchestrator.
mswapPoolKey
Function · sdk/dist/svm/venues/mswap/index.d.ts
Mint synthetic per-directed-pair discovery key (mirrors sanctumInfinityPoolKey).
fetchMSwapPoolConfig
Function · sdk/dist/svm/venues/mswap/index.d.ts
Off-chain, once per requested (inMint, outMint): read the LIVE
SwapGlobal whitelist, resolve both legs’ own ExtGlobalV2 (gating
yield_variant/wrap_authorities per the module doc), and derive every
PDA the swap CPI needs. Self-drops (throws) on ANY of: either mint not
whitelisted, either leg a “ScaledUi” deploy, either leg missing
SWAP_GLOBAL_ID from its own wrap_authorities - all LIVE checks, never
a hardcoded mint exclusion.
MSwapPoolConfig
Interface · sdk/dist/svm/venues/mswap/index.d.ts
