Wallet updates#8
Merged
Merged
Conversation
Add a coin-control path so the user can spend specific coins: - send_ark_selected command — wraps the SDK's send_vtxo_selection to spend exactly the named outpoints, skipping automatic selection. Ark-only; the SDK has no onchain-offboard selection variant. - Coins screen "Select" mode — pick VTXOs, then a drawer to send them to an Ark address
- Add an exponential-backoff retry layer for transient esplora transport errors and a socket timeout so a stalled connection can't hang a syn cycle. - Gate sync-failure UI toasts behind a sustained failure streak so a lone device-sleep failure stays silent while real outages still get reported. - Make the Esplora explorer presets network-aware.
Addresses the four breaking changes that surface against avark's call sites: - `OfflineClient::new` now takes 10 args instead of 8 (added`delegator_pk` + `historical_delegator_pks` for 3rd-party delegator support). Pass `None` + `vec![]` to preserve no-delegator behavior. - `ExplorerUtxo` gained a required `confirmations: u64` field for block-based unilateral exit delay support. Set to `0` until/unless we need to surface confirmation counts (the only ExplorerUtxo construction in `find_outpoints` doesn't have confirmation data ready; the spent-side literal inherits via struct-update). - `Client::send_vtxo(addr, amount)` → `Client::send(vec![SendReceiver::bitcoin(addr, amount)])`. Same for `send_vtxo_selection` → `send_selection`. New shape accommodates multi-receiver + asset transfers. - `wait_for_invoice_paid` now resolves with the preimage (`[u8; 32]`) instead of `()`. Discard — Boltz has already claimed against it by the time we observe settlement.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.