-
Notifications
You must be signed in to change notification settings - Fork 300
feat(sdk-coin-sol): token 2022 transfer hook implementation #7103
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
Conversation
7d2819d to
25f28bf
Compare
arvind-bg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment, other lgtm
25f28bf to
f776b54
Compare
transfer hook implementation for tbill token, added extra account metas Ticket: WIN-7258
f776b54 to
dae78c4
Compare
arvind-bg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
abhishekagrawal080
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
This PR introduces changes to support Transfer Hook account metas in Solana token transactions, as defined by the Token-2022 standard. When a token includes the Transfer Hook extension, we are required to include the associated program-derived account metas in the transfer instruction to ensure proper execution.
Detects whether the Transfer Hook extension is enabled for the token.
Adds the necessary Transfer Hook program account metas to the transfer instruction accordingly.
Ticket: WIN-7258