-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
token js: create new offchain helper #6108
token js: create new offchain helper #6108
Conversation
Current dependencies on/for this PR: This stack of pull requests is managed by Graphite. |
8df6a4b
to
8bda3ed
Compare
b835aee
to
9b33a88
Compare
7de4df7
to
0b076b1
Compare
9b33a88
to
7bf9077
Compare
ac35de5
to
b47b84e
Compare
7bf9077
to
2b6b769
Compare
b47b84e
to
a7e399c
Compare
2b6b769
to
c7e787b
Compare
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.
Just nits really, the whole thing looks great!
a7e399c
to
ed3fca4
Compare
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.
Just one last little nit, but otherwise feel free to merge once it's resolved!
55dfa61
to
dc2441d
Compare
Merge activity
|
ed3fca4
to
367eedb
Compare
dc2441d
to
07b2e6b
Compare
Pull request has been modified.
This is the final PR to round off the changes required to fix #6064.
Previously, the offchain helpers for adding extra metas to instructions have
been replaced with new ones in the SPL Transfer Hook interface and Token2022.
This PR follows suit and adds a new helper to SPL Token JS.
The new helper,
addExtraAccountMetasForExecute(..)
, mirrors the Rust helper inSPL Transfer Hook interface, requiring the parameters for an
ExecuteInstruction
to be passed into the function directly.This change also adds a public function for creating an
ExecuteInstruction
, incase developers wish to create such an instruction for directly sending
instructions to their transfer hook program.
These existing functions have been updated to use the new helper:
createTransferCheckedWithTransferHookInstruction(..)
createTransferCheckedWithFeeAndTransferHookInstruction(..)
Closes #6064