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

Transfer Hook Interface Example JS Tests #5128

Closed
buffalojoec opened this issue Aug 27, 2023 · 0 comments · Fixed by #5138
Closed

Transfer Hook Interface Example JS Tests #5128

buffalojoec opened this issue Aug 27, 2023 · 0 comments · Fixed by #5138

Comments

@buffalojoec
Copy link
Contributor

Problem

Currently transfer hook is only supported in JavaScript through the Token2022 library. We don't have any JS helpers for creating instructions for the transfer hook interface (InitializeExtraAccountMetaList & Execute).

One of the main purposes would be to test the Token2022 account resolution code being shipped by #5112.

Ideally, we should be able to use Solana Bankrun to deploy the example program and test all of our JavaScript transfer hook magic!

Solution

Lay down the proper JS helpers for the transfer hook instructions and integrate Solana Bankrun to test against the example program like in the Rust tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant