feat: expose subscribe_mint_quote_state to FFI bindings #1725
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!1725
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/expose-mint-quote-state-subscription"
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
Add
subscribe_mint_quote_state(quote_ids, payment_method)convenience method to the FFI Wallet, allowing binding users (Swift/Kotlin) to subscribe to mint quote state updates without manually constructingSubscribeParamswith the correctSubscriptionKind.The method automatically maps
PaymentMethodto the correct subscription kind (Bolt11 ->Bolt11MintQuote, Bolt12 ->Bolt12MintQuote) and returns anActiveSubscriptionwhererecv()yieldsNotificationPayload::MintQuoteUpdate.Notes to the reviewers
The generic subscribe() method was already exposed to FFI bindings. This adds a higher-level convenience specifically for mint quote subscriptions, which is the most common use case from mobile apps.
Custom payment methods return an error since SubscriptionKind in FFI doesn't have a Custom variant yet. Users can still use the generic subscribe() for those cases.
The second function mentioned in the issue ("a stream of updates") is already covered by ActiveSubscription.recv().
Suggested CHANGELOG Updates
CHANGED
ADDED
REMOVED
FIXED
Checklist
just final-checkbefore committingcloses #1336