WIP: Bolt12 with support for multiple payments per mint quote #404
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 milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cashubtc/cdk!404
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "multiple_bolt12"
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?
This PR included bolt12 support for both the mint and the wallet. It also includes a large refactor of mintd, these really should have been separated but too late now (sorry).
* With use of LNDK as lnd does not directly support bolt12
** PHD doesnt allow creation of one time use bolt12, so receive cannot be supported
*** Strike api doesn't seem to support bolt12, coming soon?
Related Issues should be closed by this PR
@ -0,0 +1,102 @@use tracing::instrument;can we change this to reflect Bolt12 ->
Bolt12 mint request for unsupported unitset back to arg
@ -3,9 +3,9 @@ use std::io::Write;use std::str::FromStr;@ -90,6 +94,9 @@ pub struct MintQuoteBolt11Response {pub state: MintQuoteState,/// Unix timestamp until the quote is validMove these to bolt12 specific
crate/cdk/src/mint/mod.rs->fn wait_for_paid_offers()->bolt12.wait_any_offer()->mint.pay_mint_quote_for_request_id()->crates/cdk/src/mint/mint_nut04.rs->self.pubsub_manager.mint_quote_bolt11_status()-> event is broadcast as a something that can becomeMintQuoteBolt11ResponseDropping this comment to see if there will/should be a Bolt12 specific event for this? or are the Quotes relatively the same for 11 and 12 that this works for both? For context, I'm interested in subbing to events that occur when Bolt12 offers are paid and this seems like the right place. If I'm off-base in my understand, perhaps there's a better way of being alerted to a Bolt12 offer being paid?
I haven't thought about this since i did this before websockets but I think this is a good point I think the mint should send a notification each time the mint quote is paid for quote thats payable multiple times. I'm picking this pack up and will add this as well.
superseded by https://github.com/cashubtc/cdk/pull/709
close for https://github.com/cashubtc/cdk/pull/709
Pull request closed