Introduce Future Streams for Payments and Minting Proofs #985
No reviewers
Labels
No labels
DB & Storage
Deployment
Error Handling & Logging
Maintenance
Payment Backend
backport
backport v0.13.x
backport v0.14.x
backport v0.15.x
bindings
blocked
bug
cdk-sql
ci
cli
deps
documentation
duplicate
enhancement
good first issue
help wanted
invalid
keep-open
ldk-node-ui
migrations
mint
mutation-testing
needs rebase
needs review
new nut
nut change
question
ready
rust-version
rustfmt
stacked hold
stale
testing
wallet
weekly-report
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cashubtc/cdk!985
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/introduce-wallet-streams"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Introduce Future Streams (
ProofStream,PaymentStream) for Payments and Proofs, an easier to use interface, async friendly, to interact for the mint waiting for payments of mints for Bolt11 and Bolt12.Notes to the reviewers
Suggested CHANGELOG Updates
CHANGED
ADDED
REMOVED
FIXED
Checklist
just final-checkbefore committing@ -107,3 +98,3 @@.unwrap();.expect("payment");let invoice_amount = 9;Will just just keep the stream open for 60 seconds or because it bolt11 the stream ends after one? Either way I don't think we need the stream when we're just minting once.
For the examples where using bolt12 we probably don't need the stream the stream is really for bolt12 keeping it open and re minting.
We want this to be to be Amount::ZERO there is no issuing happening here we only got a payment.
We did not get a payment here we only issued so we do not need to update the amount payed.
@ -0,0 +1,185 @@//! Mint StreamLets make this a cancel token instead of a duration. This gives the user more control of when they want to stop waiting on the stream.
This will be very helpful!
@ -0,0 +1,122 @@//! Wallet waiter APInWould streaming the mint quote to get status updates be beneficial?
@ -0,0 +1,122 @@//! Wallet waiter APInThis would return the proofs already, meaning the quote would already be paid. Maybe it should also be useful to have a status update stream? So the UI/UX can be changed accordingly?
@ -0,0 +1,122 @@//! Wallet waiter APInI don't have a strong opinion, but I wanted to raise the issue to consider whether returning the status is useful.
@ -0,0 +1,122 @@//! Wallet waiter APInI think here since you're subscribing to one mint quote proofs is good. I think another fn to subscribe to many mint quotes you would want to return the proofs and the quote id then to know what proof has been paid. I think @crodas started on a wallet subscription method in another pr.