* list-refundables: show refundable amount, not swap amount
* Rename chainswap fn for clarity
get_lockup_swap_script_pubkey only applies to Receive Chain Swaps, so it was renamed to get_receive_lockup_swap_script_pubkey.
* list_refundables: batch calls to fetch balance from chain service
* Simplify conversion from Chain Swap to RefundableSwap
* Fix MockBitcoinChainService
* Re-generate flutter bindings
* Add utility for creating SdkError::Generic with &str or String
* Chain Swap getter for swap script pk: throw SdkError instead of anyhow::Error
* Update RefundableSwap comment
Co-authored-by: Ross Savage <551697+dangeross@users.noreply.github.com>
* Re-generate dart files
---------
Co-authored-by: Ross Savage <551697+dangeross@users.noreply.github.com>
* Implement Chain Swaps for receiving
* Send: validate if we have sufficient funds (#321)
* Implement Chain Swaps for receiving
* Fix rebase of flutter_rust_bridge version
* Send: validate if we have sufficient funds
* Re-generate FRB
---------
Co-authored-by: Ross Savage <hello@satimoto.com>
* Chaim swap claim: remove refund_tx arg (#328)
---------
Co-authored-by: ok300 <106775972+ok300@users.noreply.github.com>
* Receive: Add magic routing hint support
* Send: add MRH support
* Filter out and reject self-transfers
* Extract self-transfer validation in own fn
* PrepareSendResponse: use onchain fee as fees_sat if MRH present
* Use onchain tx fee as payment fee, if MRH used for direct onchain tx
* Fix swap fee calculation when MRH is used
* Apply boltz-client patch that aborts send if tx broadcast fails
* Send with MRH: return pending payment
* Receive with MRH: validate BIP21 amount, address
* Emit remaining events for MRH Send, Receive
* Sync: update swap info and emit events after new tx data is persisted
* Extract MRH send into its own send_payment_via_mrh()
* Pending Send via swap: store tx fees for pseudo-tx
* Fix clippy