Skip to content

v2.0.7 - Token2022 Support

Choose a tag to compare

@astrohackerx astrohackerx released this 12 Dec 11:09
· 28 commits to main since this release

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

Full Changelog: v2.0.6...v2.0.7