-
Notifications
You must be signed in to change notification settings - Fork 27
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
claimable-balances-account-viewer by DFugere1 #158
Comments
Hi, there! Thanks for jumping on this one! I'd suggest when a user clicks "claim balance" (or whatever you call it) in your viewer, the app should automatically:
I don't see a need for it to be an "offer" they could opt in or out of. If there's no trustline the claim will fail. If they want the asset, I think we can safely assume they want the trustline, too. I think this is how most of the wallets work? Does that all make sense? |
Hi, Here is the PR to the feature. Let me know if that does not complete the requirement. Thank you |
Do you have a preview setup where we can see/test your change? A standalone version of the account viewer that includes your changes would be required for the bounty to be considered complete, as per the second bullet point here. |
You are right, I forgot about that. I edited my post and added a demo. |
Thanks for adding the preview. Can confirm that it worked to claim a random balance on the testnet. Good job! I tried using a testnet account that's setup for the YieldBlox public testnet beta, but it threw some kind of error after signing the transaction. I'm willing to bet it was something weird with that account, though, rather than your preview. Worked like a charm on a vanilla testnet account. Let's see if we can get some code reviewers over here to give it a look-through. |
I will take a look at the problem with the network when using Albedo, thank you for bringing it up! |
After some testing, the issue is also appening on the master branch of the application. I will try to investiguate it further? |
I see you are correct! Very interesting. I'll add an issue to the repository, and we won't count it against your implementation. Thanks for helping to catch this! Here's the issue: stellar/account-viewer-v2#376 @DFugere1, you might want to check that and add any information I missed or got wrong. Thanks! |
I now also tested it with Freighter and can confirm it works as intended, so the issue with Albedo is indeed in the Account Viewer itself, as far as I tested it everything works fine, as @LorDDark6660 already mentioned, a separate CB Button would be nice, however, it isn't mentioned in the quest afaik. So I would say the Quest is done and ready for a reward. |
Also, don't forget to add a PR for adding your Address to the ADDRESSES.yml file. |
Thank you, I submitted the PR. I will still work on the PR made to the account-viewer project and try to get it up to standard. |
The PR has been canceled on the account viewer project. |
Thanks for the update on that. Still a good experience, and certainly worthy of a bounty reward! Great job and excellent contribution!
|
Link the bounty file
https://github.com/tyvdh/stellar-quest-bounties/blob/main/bounties/level-1/claimable_balances_account_viewer.md
Mark your progress
Provide relevant details
PR to the account_viewer
stellar/account-viewer-v2#375
Demo:
https://elegant-perlman-79e8d5.netlify.app/?testnet=true
Greeting,
I made a POC for claiming balance on the account viewer. The PR should be available tomorrow.
Before submitting, I would like to discuss the term of completeness.
If a Claimable Balance (CB) is a non native asset, shall we go ahead and offer to add the asset trust line to the wallet. Or is this feature in a following ticket.
Thank you.
The text was updated successfully, but these errors were encountered: