Skip to content

feat(program): support Token-2022 transfer fees#133

Merged
dev-jodee merged 3 commits into
mainfrom
feat/token-2022-transfer-fee
May 26, 2026
Merged

feat(program): support Token-2022 transfer fees#133
dev-jodee merged 3 commits into
mainfrom
feat/token-2022-transfer-fee

Conversation

@dev-jodee
Copy link
Copy Markdown
Collaborator

Summary

  • allow Token-2022 mint close authority, non-transferable, permanent delegate, pausable, and transfer-fee mint extensions through mint validation
  • add the mint account to delegated transfer instructions and use TransferChecked so Token-2022 can apply transfer fees
  • add LiteSVM coverage for transfer-fee mints and refresh the IDL

Test Plan

  • cargo build-sbf
  • cargo test -p tests-subscriptions token_2022 -- --nocapture
  • cargo test -p tests-subscriptions transfer -- --nocapture
  • pnpm --filter @solana/subscriptions build
  • push hook: format + lint

@vercel
Copy link
Copy Markdown

vercel Bot commented May 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
solana-subscriptions-program Ready Ready Preview, Comment May 26, 2026 6:16pm

Request Review

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 26, 2026

Compute Unit Report

Instruction Samples Min CUs Max CUs Avg CUs Est Cost (Low) [SOL] Est Cost (Med) [SOL] Est Cost (High) [SOL]
cancel_subscription 22 1720 2030 1919 0.000005000 0.000005076 0.000005959
close_subscription_authority 10 1803 1833 1806 0.000005000 0.000005072 0.000005903
create_fixed_delegation 39 3517 8790 4354 0.000005001 0.000005174 0.000007177
create_plan 97 3436 18449 4908 0.000005001 0.000005196 0.000007454
create_recurring_delegation 27 3550 14084 4945 0.000005001 0.000005197 0.000007472
delete_plan 9 359 359 359 0.000005000 0.000005014 0.000005179
init_subscription_authority 165 4772 21226 9220 0.000005002 0.000005368 0.000009610
resume_subscription 3 1723 1723 1723 0.000005000 0.000005068 0.000005861
revoke_delegation 19 255 519 353 0.000005000 0.000005014 0.000005176
subscribe 32 6485 16985 7663 0.000005002 0.000005306 0.000008831
transfer_fixed 7 5479 9979 6761 0.000005002 0.000005270 0.000008380
transfer_recurring 17 5591 13181 8099 0.000005002 0.000005323 0.000009049
transfer_subscription 10 5799 13338 7493 0.000005002 0.000005299 0.000008746
update_plan 22 424 503 477 0.000005000 0.000005019 0.000005238

Generated: 2026-05-26

@dev-jodee dev-jodee merged commit f25ccf7 into main May 26, 2026
13 checks passed
@dev-jodee dev-jodee deleted the feat/token-2022-transfer-fee branch May 26, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant