Add MultiMintWallet check and wait for mint quotes #1146
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!1146
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "mmw-check-mint-quote"
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
This PR adds two new methods to the
MultiMintWalletfor better mint quote management:check_mint_quote- Checks the current state of a specific mint quote by querying the mint and updating the local storage. Returns the updatedMintQuotewith the latest state.wait_for_mint_quote- Waits for a mint quote to be paid (using subscriptions) and automatically mints the proofs once payment is confirmed. This provides a convenient single-operation method with configurable timeout and split target options.Both methods are available in the core
MultiMintWalletimplementation and exposed through FFI bindings for use in language bindings (Swift, Kotlin, etc.).Notes to the reviewers
check_mint_quoteimplementation follows the same pattern as other quote-related methods inMultiMintWalletwait_for_mint_quoteleverages the existingWallet::wait_and_mint_quotemethod, which handles subscriptions and automatic mintingSuggested CHANGELOG Updates
ADDED
MultiMintWallet::check_mint_quote- Check the state of a specific mint quoteMultiMintWallet::wait_for_mint_quote- Wait for a mint quote to be paid and automatically mint proofsChecklist
just final-checkbefore committing