Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add token 22 support #1344

Merged
merged 7 commits into from
Dec 3, 2024
Merged

Conversation

ananas-block
Copy link
Contributor

@ananas-block ananas-block commented Nov 15, 2024

Issue:

  • the compressed token program does not support token 2022 mints

Changes:

  • replaced anchor token account, mint, and program checks with anchor interface checks
  • add assert_mint_extensions to check whitelisted extensions in create_token_pool instruction
  • moved accounts struct and utils for create_token_pool from programs/compressed-token/src/process_mint.rs to programs/compressed-token/src/instructions/create_token_pool.rs

whitelisted extensions:

  • MetadataPointer
  • TokenMetadata
  • InterestBearingConfig
  • GroupPointer
  • GroupMemberPointer
  • TokenGroup
  • TokenGroupMember

@ananas-block ananas-block force-pushed the jorrit/feat-add-token22-support branch 4 times, most recently from f14d2cd to d086a8e Compare November 15, 2024 03:43
@ananas-block ananas-block force-pushed the jorrit/feat-add-token22-support branch 3 times, most recently from bf03f1e to a6dc22b Compare December 1, 2024 01:16
@ananas-block ananas-block force-pushed the jorrit/feat-add-token22-support branch 4 times, most recently from 94e5aad to 8e267cf Compare December 1, 2024 21:59
@ananas-block ananas-block force-pushed the jorrit/feat-add-token22-support branch from 8e267cf to b4e0eb6 Compare December 1, 2024 23:29
@ananas-block ananas-block force-pushed the jorrit/feat-add-token22-support branch from 3fe9213 to dc334ee Compare December 2, 2024 17:24
@ananas-block ananas-block force-pushed the jorrit/feat-add-token22-support branch from dc334ee to a1bb6f1 Compare December 2, 2024 18:17
ananas-block and others added 2 commits December 3, 2024 00:32
Co-authored-by: Swen Schäferjohann <[email protected]>
Co-authored-by: Swen Schäferjohann <[email protected]>
Copy link
Contributor

@SwenSchaeferjohann SwenSchaeferjohann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@SwenSchaeferjohann SwenSchaeferjohann merged commit 854cc88 into main Dec 3, 2024
16 checks passed
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.

2 participants