-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Docs: Add SPL Token exchange integration #12303
Conversation
Do we want to mention the existing JS (no docs published yet) or RPC (explicitly tagged unstable) at this point? |
Na, just another place to update when that's no longer the case IMO. |
Let's take the opportunity to flesh out the "Listening for Deposits" section, for both SOL and tokens. General recommendation is that the For SOL, scanning the transaction meta |
There's probably a small handful of issues that are going to come out of this effort @t-nelson. Consider creating a Github project so that it's easy to track them all and we can have different folks working on some in parallel potentially. |
This seems to be the best withdrawal flow: Deposit flow is through a normal spl-token transfer operation |
New project: https://github.com/orgs/solana-labs/projects/2 I've populated it with the stuff I'm aware of so far |
Is this going to fit into existing withdraw UX flows without additional integration overhead? |
Wasn't there discussion of extending |
I think so. Withdraw flow is pretty simple: user provides address and amount. In this case the address is for the account authority. Then rather than running a |
Ah that's probably a better solution. I think we can scope out both and then decide if we want to skip the interim option entirely |
Yeah, I guess my concern is that there will be significant education required to communicate the indirection here. I could see a user providing an actual SPL Token account for w/d, which was created with a throwaway keypair for instance, which would be bad.
I'll add an issue! |
27854b6
to
4f43db6
Compare
4f43db6
to
3246156
Compare
3246156
to
dbc5ba5
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.
One typo, then lgtm!
Pull request has been modified.
@mvines does this cover our bases now? |
Yep! I think this is a great start. There's a number of improvements of course but that's all incremental work |
Pull request has been modified.
Co-authored-by: Tyera Eulberg <[email protected]>
Co-authored-by: Tyera Eulberg <[email protected]>
3c757bc
to
aca7f6b
Compare
automerge label removed due to a CI failure |
Problem
No documentation to assist exchanges in integrating SPL Token
Summary of Changes
Add some
Fixes #12281
TODOAdd--verbose
flag tospl-token balance
for also printing the mintRecommend checking withdraw accounts with ☝️I'm going to punt the TODO to solana-labs/solana-program-library#467