program-examples
program-examples copied to clipboard
token-2022/basics: add a Pinocchio version
tokens/token-2022/basics ships only an Anchor version. This proposes a Pinocchio version, matching the Token-2022 examples that already have one (memo-transfer, cpi-guard, immutable-owner, …).
It would expose the same five instructions as the Anchor example: create a Token-2022 mint at a PDA, create a token account at a PDA, create an associated token account, mint, and transfer (TransferChecked). One LiteSVM test would drive all five and assert balances, sizes and owners with the official Token-2022 codec.
This was #705, closed under the 3-open-PR limit; I'd refresh it against current main (#800 cleanup, current JS dependencies, explicit deploy artifact) before reopening it as a new PR.