v2.0.7 - Token2022 Support
What's New
Token2022 (Token Extensions) Support
SPL-402 now supports Solana's Token2022 standard alongside legacy SPL tokens.
Usage
Server:
const spl402 = createServer({
network: 'mainnet-beta',
recipientAddress: 'YOUR_WALLET',
scheme: 'token-transfer',
mint: 'TOKEN2022_MINT',
decimals: 6,
tokenProgram: 'token-2022', // NEW
routes: [{ path: '/api/data', price: 10 }],
});
Client:
const client = createClient({
network: 'mainnet-beta',
scheme: 'token-transfer',
mint: 'TOKEN2022_MINT',
decimals: 6,
tokenProgram: 'token-2022', // NEW
});
Backward Compatible
Defaults to 'spl-token' if not specified - existing code works without changes.
What's Changed
- ci: bump softprops/action-gh-release from 1 to 2 by @dependabot[bot] in #3
- Enhance regex escaping for route patterns by @astrohackerx in #17
- ci: bump codecov/codecov-action from 4 to 5 by @dependabot[bot] in #2
New Contributors
- @dependabot[bot] made their first contribution in #3
Full Changelog: v2.0.6...v2.0.7