Skip to content

Releases: divi2806/svmforge

v0.1.0 — Initial Release

15 Apr 16:48

Choose a tag to compare

What's included

Core

  • MolluskSvm — stateless instruction executor, pass accounts explicitly per call
  • MolluskContext — stateful executor with in-memory account store, accounts auto-managed
  • processInstruction / processInstructionChain / processTransactionInstructions
  • Full clock/sysvar control: warpToSlot, setClockUnixTimestamp, setEpoch
  • Compute budget control: setComputeUnitLimit
  • Rent calculation: getRentMinimumBalance
  • Feature gate deactivation: deactivateFeature

SPL Programs (zero toolchain required)

  • addSplToken() — SPL Token (classic)
  • addSplToken2022() — SPL Token-2022
  • addAssociatedToken() — Associated Token Account program
  • addMemo() — Memo program
  • Program ID constants: SPL_TOKEN_PROGRAM_ID, SPL_TOKEN_2022_PROGRAM_ID, ASSOCIATED_TOKEN_PROGRAM_ID,
    MEMO_PROGRAM_ID

Check helpers

  • checkSuccess, checkErr, checkComputeUnits, checkReturnData
  • checkAccountLamports, checkAccountOwner, checkAccountData
  • checkAccountSpace, checkAccountExecutable, checkAccountClosed

Platform support

Pre-built native binaries for:

  • macOS Apple Silicon (arm64)
  • macOS Intel (x64)
  • Linux x64 (glibc)
  • Linux arm64 (glibc)
  • Windows x64 (MSVC)

Developer experience

  • Full TypeScript types via index.d.ts
  • No Rust toolchain needed to use the package
  • Works with any test runner (Jest, Vitest, etc.)