Skip to content

v2.9.0

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Dec 21:48
a21c280

A new token concepts reference, System error-handling and LiteSVM / Mollusk testing snippets that match the real APIs, and a gh skill install option.

  • tokens.md: new token concepts page. It covers SPL Token vs Token-2022 basics (finding a mint's program from its owner, mints and token accounts, ATAs, authorities, delegation, checked instructions) and Token-2022 extensions (TLV layout and sizing, mint vs account extensions, initialization order, notable behaviors, rejected combinations, and a per-extension reference with who controls each). Concepts only; it links out to the Kit, Pinocchio, confidential transfer and security pages for code.
  • kit/programs/token-2022.md: the initialization-order note says TokenMetadata, TokenGroup and TokenGroupMember go after InitializeMint, not before, and links to tokens.md.
  • SKILL.md, README.md: tokens.md added to the progressive-disclosure list and file tree.
  • kit/programs/system.md, kit/codama.md: the System error example uses SYSTEM_ERROR__RESULT_WITH_NEGATIVE_LAMPORTS (there is no INSUFFICIENT_FUNDS code), passes the transaction message to isSystemError, and unwraps the caught error with unwrapSimulationError first, since preflight and resource estimation wrap the program error.
  • testing.md: LiteSVM and Mollusk snippets use the real APIs. with_compute_budget / with_sigverify are builders whose result is reassigned (LiteSVM has no set_compute_budget), token test accounts come from the mollusk-svm-account Mint / TokenAccount builders, and the CU bencher comes from mollusk-svm-bencher (same version as mollusk-svm), takes (name, &instruction, &accounts) tuples and runs on execute().
  • README.md: gh skill install added as an install option.

What's Changed

  • docs(solana-dev): add tokens concepts reference by @ZendIQ @amilz in #98
  • docs(solana-dev): fix the System program error-handling example by @lopeselio in #99
  • docs(solana-dev): use real LiteSVM and Mollusk APIs in testing reference by @lopeselio in #100
  • docs: add GitHub CLI skill installation command by @tommaso-moro in #101
  • chore: release 2.9.0 by @amilz in #103

New Contributors

Full Changelog: v2.8.0...v2.9.0