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

STREAM-1417: support token2022 in distributor #156

Merged
merged 3 commits into from
Mar 29, 2024

Conversation

Yolley
Copy link
Collaborator

@Yolley Yolley commented Mar 29, 2024

  • add getMintAndProgram method that wraps getMint of spl-token and supports any valid token program
  • support programId in utilities that interact with ATAs and token accounts
  • support token2022 in Distributor

@Yolley Yolley requested a review from RolginRoman March 29, 2024 03:04
lerna.json Outdated
@@ -2,6 +2,6 @@
"packages": [
"packages/*"
],
"version": "6.0.1",
"version": "6.1.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think that it is necessary to jump so far with this fix :)

@@ -21,4 +21,5 @@ export interface CheckAssociatedTokenAccountsData {
export interface AtaParams {
mint: PublicKey;
owner: PublicKey;
programId?: PublicKey;
Copy link
Contributor

Choose a reason for hiding this comment

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

can we use that brand new fn getMintAndProgram and resolve it implicitly without exposing this additional parameter for APIs: ata/ataBatchExist/createAtaBatch etc?

@Yolley Yolley merged commit 53a78cb into master Mar 29, 2024
2 checks passed
@Yolley Yolley deleted the oleg/feature/STREAM-1417_support_token_2022 branch March 29, 2024 07:42
Copy link

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