* Update dependencies
* Use discount-ct when building txs
* Broadcast using the electrum client
* Fix CI
* Remove use of esplora url
* Address PR feedback
* Fix dart/flutter
* Update zero-conf fee rate check
* Fix clippy
* rescan_onchain_swaps: separate internal (scheduled) from external (manual) call
* Add TODOs for supporting more utxos in BtcSwapTx::new_refund
* Update boltz-client to build refund tx with all utxos
* list-refundables: show refundable amount, not swap amount
* Chain swap cooperative refund: fix "Liquid chain used for Bitcoin operations" error
* Revert "Chain swap cooperative refund: fix "Liquid chain used for Bitcoin operations" error"
This reverts commit 8a325e3c13b7e9b54b9f5256bea206989eac53b6.
* Bump boltz-rust to include sign_refund fix
* Bump boltz-rust to include sign_refund fix for non-coop refund
* Fix state handling when incoming chain swaps are refunded
* Move swap state change inside refund_incoming_swap
* Bump to latest boltz-client branch version
* 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