Repository navigation
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,TokenGroupandTokenGroupMembergo afterInitializeMint, 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 noINSUFFICIENT_FUNDScode), passes the transaction message toisSystemError, and unwraps the caught error withunwrapSimulationErrorfirst, since preflight and resource estimation wrap the program error. - testing.md: LiteSVM and Mollusk snippets use the real APIs.
with_compute_budget/with_sigverifyare builders whose result is reassigned (LiteSVM has noset_compute_budget), token test accounts come from themollusk-svm-accountMint/TokenAccountbuilders, and the CU bencher comes frommollusk-svm-bencher(same version asmollusk-svm), takes(name, &instruction, &accounts)tuples and runs onexecute(). - README.md:
gh skill installadded 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
- @ZendIQ made their first contribution
- @lopeselio made their first contribution in #99
- @tommaso-moro made their first contribution in #101
Full Changelog: v2.8.0...v2.9.0