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

feat: paper wallet balance and token params #1450

Merged

Conversation

PanchoBubble
Copy link
Collaborator

@PanchoBubble PanchoBubble commented Jan 28, 2025

Updates Paper wallet QR code.
Includes into url:

  • tt = temporary token used for getting airdrop user on mobile
  • balance = used to display use balance until mobile app syncs
  • anon_id = appId used to later subscribe for push notifications on un auth users

@PanchoBubble PanchoBubble self-assigned this Jan 28, 2025
@PanchoBubble PanchoBubble marked this pull request as ready for review February 3, 2025 11:55
@PanchoBubble PanchoBubble requested a review from brianp February 3, 2025 11:57
@BalazsSevecsek
Copy link
Collaborator

Overall, it looks good, nice job!

Comment on lines +165 to +175
// Add wallet_balance as a query parameter if it exists
if let Some(balance) = &wallet_balance {
let available_balance = balance.available_balance
+ balance.timelocked_balance
+ balance.pending_incoming_balance;

link.push_str(&format!(
"&balance={}",
encode(&available_balance.to_string())
));
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm just curious what the reasoning for adding the balance is?

@brianp brianp merged commit d5458f7 into tari-project:main Feb 4, 2025
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants