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

invoice struct to wallet for mints and melts #19

Merged
merged 1 commit into from
May 29, 2024
Merged

Conversation

elnosh
Copy link
Owner

@elnosh elnosh commented May 27, 2024

add new invoice struct for wallet. Similar to previous struct that was using but with other extra fields: TransactionType (Mint or Melt) and SettledAt.

This was linked to issues May 27, 2024
@elnosh
Copy link
Owner Author

elnosh commented May 27, 2024

@rolznz I think this should help with #8 and #10. Invoices being saved now include both mints and melts. Also, added the SettledAt field. Let me know if this works for you :)

@rolznz
Copy link

rolznz commented May 28, 2024

@elnosh looks great! I added a couple of comments but they are just optional improvements (I'm not sure if Cashu supports them or not)

@elnosh elnosh merged commit 5a98e3f into main May 29, 2024
1 check passed
@elnosh elnosh deleted the wallet-invoice branch May 29, 2024 13:11
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.

Store payments Save Settled and Redeemed dates on Invoice
2 participants