feat: remove PrepareSendResponse fields

feat: add `PrepareSendRequest` object

fix: rename to `claim_tx_feerate`

fix: fix reverse submarine test

feat: improve prepare_send and prepare_receive interfaces

fix: use v2 to broadcast lowball tx

feat: finalize prepare_send and prepare_receive

feat: remove manual BTC pair from response

fix: remove `pair_hash` from PrepareReceive

rebasing

updating Cargo.lock

fix: update lbtc pair method names

fixing bindings

fix: re-add uniffi_macros

add comment to elements dependency

fix: switch back to v1 fee calculation

fix: revert to v1 pair hash

fix: simplify migrations

fix: rename `FeesExpired` to `InvalidOrExpiredFees`

Log error when list_ongoing_swaps() fails

Log swap ID when list_ongoing_swaps() succeeds

Migrations: add missing ongoing_receive_swaps field

Clarify swap type (reverse vs submarine) in logs
This commit is contained in:
yse
2024-05-02 00:41:11 +02:00
parent 612e2dd1f1
commit be3120c935
26 changed files with 2740 additions and 643 deletions

View File

@@ -82,6 +82,100 @@ abstract class PaymentError_AmountOutOfRange extends PaymentError {
const PaymentError_AmountOutOfRange._() : super._();
}
/// @nodoc
abstract class _$$PaymentError_InvalidOrExpiredFeesImplCopyWith<$Res> {
factory _$$PaymentError_InvalidOrExpiredFeesImplCopyWith(
_$PaymentError_InvalidOrExpiredFeesImpl value,
$Res Function(_$PaymentError_InvalidOrExpiredFeesImpl) then) =
__$$PaymentError_InvalidOrExpiredFeesImplCopyWithImpl<$Res>;
}
/// @nodoc
class __$$PaymentError_InvalidOrExpiredFeesImplCopyWithImpl<$Res>
extends _$PaymentErrorCopyWithImpl<$Res,
_$PaymentError_InvalidOrExpiredFeesImpl>
implements _$$PaymentError_InvalidOrExpiredFeesImplCopyWith<$Res> {
__$$PaymentError_InvalidOrExpiredFeesImplCopyWithImpl(
_$PaymentError_InvalidOrExpiredFeesImpl _value,
$Res Function(_$PaymentError_InvalidOrExpiredFeesImpl) _then)
: super(_value, _then);
}
/// @nodoc
class _$PaymentError_InvalidOrExpiredFeesImpl
extends PaymentError_InvalidOrExpiredFees {
const _$PaymentError_InvalidOrExpiredFeesImpl() : super._();
@override
String toString() {
return 'PaymentError.invalidOrExpiredFees()';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$PaymentError_InvalidOrExpiredFeesImpl);
}
@override
int get hashCode => runtimeType.hashCode;
}
abstract class PaymentError_InvalidOrExpiredFees extends PaymentError {
const factory PaymentError_InvalidOrExpiredFees() =
_$PaymentError_InvalidOrExpiredFeesImpl;
const PaymentError_InvalidOrExpiredFees._() : super._();
}
/// @nodoc
abstract class _$$PaymentError_InsufficientFundsImplCopyWith<$Res> {
factory _$$PaymentError_InsufficientFundsImplCopyWith(
_$PaymentError_InsufficientFundsImpl value,
$Res Function(_$PaymentError_InsufficientFundsImpl) then) =
__$$PaymentError_InsufficientFundsImplCopyWithImpl<$Res>;
}
/// @nodoc
class __$$PaymentError_InsufficientFundsImplCopyWithImpl<$Res>
extends _$PaymentErrorCopyWithImpl<$Res,
_$PaymentError_InsufficientFundsImpl>
implements _$$PaymentError_InsufficientFundsImplCopyWith<$Res> {
__$$PaymentError_InsufficientFundsImplCopyWithImpl(
_$PaymentError_InsufficientFundsImpl _value,
$Res Function(_$PaymentError_InsufficientFundsImpl) _then)
: super(_value, _then);
}
/// @nodoc
class _$PaymentError_InsufficientFundsImpl
extends PaymentError_InsufficientFunds {
const _$PaymentError_InsufficientFundsImpl() : super._();
@override
String toString() {
return 'PaymentError.insufficientFunds()';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$PaymentError_InsufficientFundsImpl);
}
@override
int get hashCode => runtimeType.hashCode;
}
abstract class PaymentError_InsufficientFunds extends PaymentError {
const factory PaymentError_InsufficientFunds() =
_$PaymentError_InsufficientFundsImpl;
const PaymentError_InsufficientFunds._() : super._();
}
/// @nodoc
abstract class _$$PaymentError_AlreadyClaimedImplCopyWith<$Res> {
factory _$$PaymentError_AlreadyClaimedImplCopyWith(