Daniel Granhão
6760960cb0
Add SdkEvent for refundable swap ( #683 )
2025-01-21 14:43:23 +00:00
Daniel Granhão
0cdfa2057c
Prevent claiming of overpaid swaps ( #667 )
...
* Handle overpayments gracefully
* Fix test mock txs and swaps
* Get actual payer amount from blockchain
* Check first tx output instead of script balance
* Fetch actual payer amount if not available
* Remove user lockup amount verification in recoverer
* Refactor user lockup amount check into appropriate method
2025-01-21 10:13:13 +00:00
Ross Savage
16ac13e5b4
Include non-swap state in list payments query ( #673 )
2025-01-21 10:12:13 +01:00
yse
95998013a9
fix: remove mandatory API key checks ( #639 )
2025-01-21 08:32:05 +01:00
yse
4abcebcde8
feat: add sort_ascending flag to list_payments ( #679 )
2025-01-21 08:06:18 +01:00
Daniel Granhão
dd95b5a3f6
Fix receive chain swap is_refundable condition ( #680 )
2025-01-20 09:14:40 +00:00
Roei Erez
58e95334d3
fix confirmed balance
...
(cherry picked from commit 538a100140c948a867360972c399beda79601e75)
2025-01-19 19:01:05 +02:00
Ross Savage
746b6e0223
Discount Confidential Transactions ( #637 )
...
* 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
2025-01-19 13:57:38 +01:00
yse
3a09bbe653
fix: increase keep-alive time and add cli sync flag ( #672 )
...
Reflects changes from breez/data-sync#14
2025-01-17 18:25:47 +01:00
Ross Savage
f92a6b9f0f
Ensure fees are calculated without overflow ( #671 )
2025-01-17 15:28:09 +01:00
yse
b185ff0e35
feat: add cooperative preimage recovery and optimize flow ( #669 )
2025-01-17 14:32:58 +01:00
Daniel Granhão
bc779e3269
Fix amountless receiver amount and waiting fee acceptance condition ( #670 )
2025-01-17 13:26:42 +00:00
Daniel Granhão
037c77ab9f
Fix swap structs PartialEq implementation ( #662 )
2025-01-17 10:57:44 +00:00
Ross Savage
fb6c4e9a01
Store the payer/receiver amount ( #668 )
2025-01-16 20:53:01 +01:00
yse
ffcdfdbac3
fix: consider only confirmed txs for wallet balance ( #664 )
2025-01-16 12:07:15 +01:00
Daniel Granhão
9a4360bf00
Fix: prevent non-local chain swap claim ( #660 )
...
* Fix: prevent non-local chain swap claim
* Setup dotnet in binding tests
* Update cli Cargo.lock
2025-01-15 15:43:11 +00:00
yse
bb0b370d17
fix: remove auto-formatting command from build ( #655 )
...
* feat: use `include_protos` macro instead of builder
* fix: pin boltz to rev SatoshiPortal/boltz-rust@3bbc0dd
2025-01-15 11:02:35 +01:00
yse
53b5d9a5b0
fix(testnet): add lbtc asset matching network type ( #658 )
2025-01-14 15:56:44 +01:00
Daniel Granhão
0fa28623fd
Ignore claim tx if preimage is not known or invalid ( #653 )
2025-01-14 09:46:50 +00:00
Daniel Granhão
22e79fc761
Fix migrations ordering ( #656 )
2025-01-13 15:07:19 +00:00
Daniel Granhão
95bbd0e49b
Implement optimistic locking for read-update-write swap operations ( #652 )
...
* Implement optimistic locking for read-update-write swap operations
* Fail on stale swap update and add tests
2025-01-12 22:44:15 +00:00
Ross Savage
50cb8be18c
Add destination pubkey and bolt12 invoice to payment details ( #649 )
...
* Add destination pubkey and bolt12 invoice to payment details
* Change macro to fn
2025-01-10 13:53:43 +03:00
Daniel Granhão
95352b9d75
Fix actual payer amount recovery
2025-01-09 15:10:39 +00:00
Ross Savage
66810ecdf6
feat: add swap expiry timestamp ( #622 )
2025-01-08 14:55:47 +01:00
Daniel Granhão
ad71cde463
Fix missing dart bindings
2025-01-07 15:45:29 +00:00
Erdem Yerebasmaz
1695c88d9c
Update flutter_rust_bridge to 2.7.0 ( #642 )
...
* Suppress no-nullability-completeness errors
* Use 'dart run' instead of the deprecated 'flutter pub run' cmd
* Update flutter_rust_bridge to version 2.7.0
Set flutter_rust_bridge range to ">=2.4.0 <=2.7.0" on Dart plugin.
* Generate Dart bindings
* Update Flutter to latest version
* Update melos to latest version
* Make Flutter plugin compatible with AGP 8.+
- Declare 'namespace' property on module-level build script
- Change default namespace
- Remove package name from AndroidManifest
- Bump compileSdkVersion to latest
- Update source and target compatibility
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
2025-01-07 14:03:08 +03:00
Daniel Granhão
eadcdbf8da
Merge pull request #641 from breez/fix-chain-swap-fee-display
...
Fix fees shown for send chain swaps
2025-01-07 10:13:48 +00:00
Daniel Granhão
8897352895
Merge pull request #638 from breez/bolt12-parsing-in-sdk-common
...
Move bolt12 parsing to sdk-common
2025-01-06 19:24:17 +00:00
Daniel Granhão
87c7a9fb40
Move bolt12 parsing to sdk-common
2025-01-06 18:40:13 +00:00
Daniel Granhão
a9ec1c01dd
Fix fees shown for send chain swaps
2025-01-06 12:45:56 +00:00
Ross Savage
73d13b4e54
Increase the max zero-conf amount for receive swaps ( #640 )
2025-01-06 13:14:23 +01:00
Daniel Granhão
fa70c0b6df
Add receiver amount to FetchPaymentProposedFeesResponse
2025-01-03 09:53:12 +00:00
Daniel Granhão
b18ad6d097
Fix update_fields
2025-01-03 09:37:02 +00:00
Daniel Granhão
a020ed5ddb
Optimistically persist accepted receiver amount
2025-01-02 10:40:31 +00:00
Daniel Granhão
c4f707f87e
Derive chain swap fees using claim tx amount when available
2025-01-02 10:40:31 +00:00
Daniel Granhão
dd6038be60
Implement accepted_receiver_amount_sat merge
2025-01-02 10:40:31 +00:00
Daniel Granhão
9383be49bc
Bump schema minor version
2025-01-02 10:40:31 +00:00
Daniel Granhão
ed8cc4f24f
Address review comments
2025-01-02 10:40:30 +00:00
Daniel Granhão
535d2ec063
Always fill in the actual_payer_amount_sat
2025-01-02 10:40:30 +00:00
Daniel Granhão
b120e707cd
Fix server lockup tx verification
2025-01-02 10:40:30 +00:00
Daniel Granhão
cd433446c2
Fix recoverer over/underpayment condition
2025-01-02 10:40:29 +00:00
Daniel Granhão
5198de8b4b
Prevent accepted_receiver_amount_sat overwritting with null
2025-01-02 10:40:29 +00:00
Daniel Granhão
d09a9ab6d8
Fix missing update for new chain swap fields
2025-01-02 10:40:29 +00:00
Daniel Granhão
74d9466804
Fix: use lockup amount instead of lockup address balance for setting actual_payer_amount
2025-01-02 10:40:29 +00:00
Daniel Granhão
a1e5576286
Store actual payer and accepted receiver amounts
2025-01-02 10:40:25 +00:00
Daniel Granhão
d2be2ea49a
Prevent recovering state from WaitingFeeAcceptance to Pending
2025-01-02 10:35:45 +00:00
Daniel Granhão
0394a66d4c
Fix after rebase
2025-01-02 10:35:45 +00:00
Daniel Granhão
351473a41e
Expose fees for review + auto accept
2025-01-02 10:35:45 +00:00
Ross Savage
ba6c41106c
fix: pre-check updated fields before committing for real-time sync ( #623 )
...
---------
Co-authored-by: yse <hydra_yse@proton.me >
2025-01-02 09:44:18 +01:00
Ross Savage
9253caa388
Store unblinding data for the tx ( #584 )
2025-01-02 09:03:01 +01:00