mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-23 08:54:22 +01:00
Fix pay onchain claim fee (#499)
* Fix pay onchain claim fee * Bump flutter example dependencies
This commit is contained in:
@@ -716,16 +716,16 @@ class PrepareBuyBitcoinResponse {
|
||||
class PreparePayOnchainRequest {
|
||||
final PayOnchainAmount amount;
|
||||
|
||||
/// The optional fee rate of the Bitcoin claim transaction in msat/vB. Defaults to the swapper estimated claim fee.
|
||||
final int? feeRateMsatPerVbyte;
|
||||
/// The optional fee rate of the Bitcoin claim transaction in sat/vB. Defaults to the swapper estimated claim fee.
|
||||
final int? feeRateSatPerVbyte;
|
||||
|
||||
const PreparePayOnchainRequest({
|
||||
required this.amount,
|
||||
this.feeRateMsatPerVbyte,
|
||||
this.feeRateSatPerVbyte,
|
||||
});
|
||||
|
||||
@override
|
||||
int get hashCode => amount.hashCode ^ feeRateMsatPerVbyte.hashCode;
|
||||
int get hashCode => amount.hashCode ^ feeRateSatPerVbyte.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
@@ -733,7 +733,7 @@ class PreparePayOnchainRequest {
|
||||
other is PreparePayOnchainRequest &&
|
||||
runtimeType == other.runtimeType &&
|
||||
amount == other.amount &&
|
||||
feeRateMsatPerVbyte == other.feeRateMsatPerVbyte;
|
||||
feeRateSatPerVbyte == other.feeRateSatPerVbyte;
|
||||
}
|
||||
|
||||
/// Returned when calling [crate::sdk::LiquidSdk::prepare_pay_onchain].
|
||||
@@ -816,17 +816,17 @@ class PrepareRefundRequest {
|
||||
/// The address to refund the swap funds to
|
||||
final String refundAddress;
|
||||
|
||||
/// The fee rate in msat/vB for the refund transaction
|
||||
final int feeRateMsatPerVbyte;
|
||||
/// The fee rate in sat/vB for the refund transaction
|
||||
final int feeRateSatPerVbyte;
|
||||
|
||||
const PrepareRefundRequest({
|
||||
required this.swapAddress,
|
||||
required this.refundAddress,
|
||||
required this.feeRateMsatPerVbyte,
|
||||
required this.feeRateSatPerVbyte,
|
||||
});
|
||||
|
||||
@override
|
||||
int get hashCode => swapAddress.hashCode ^ refundAddress.hashCode ^ feeRateMsatPerVbyte.hashCode;
|
||||
int get hashCode => swapAddress.hashCode ^ refundAddress.hashCode ^ feeRateSatPerVbyte.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
@@ -835,7 +835,7 @@ class PrepareRefundRequest {
|
||||
runtimeType == other.runtimeType &&
|
||||
swapAddress == other.swapAddress &&
|
||||
refundAddress == other.refundAddress &&
|
||||
feeRateMsatPerVbyte == other.feeRateMsatPerVbyte;
|
||||
feeRateSatPerVbyte == other.feeRateSatPerVbyte;
|
||||
}
|
||||
|
||||
/// Returned when calling [crate::sdk::LiquidSdk::prepare_refund].
|
||||
@@ -1004,17 +1004,17 @@ class RefundRequest {
|
||||
/// The address to refund the swap funds to
|
||||
final String refundAddress;
|
||||
|
||||
/// The fee rate in msat/vB for the refund transaction
|
||||
final int feeRateMsatPerVbyte;
|
||||
/// The fee rate in sat/vB for the refund transaction
|
||||
final int feeRateSatPerVbyte;
|
||||
|
||||
const RefundRequest({
|
||||
required this.swapAddress,
|
||||
required this.refundAddress,
|
||||
required this.feeRateMsatPerVbyte,
|
||||
required this.feeRateSatPerVbyte,
|
||||
});
|
||||
|
||||
@override
|
||||
int get hashCode => swapAddress.hashCode ^ refundAddress.hashCode ^ feeRateMsatPerVbyte.hashCode;
|
||||
int get hashCode => swapAddress.hashCode ^ refundAddress.hashCode ^ feeRateSatPerVbyte.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
@@ -1023,7 +1023,7 @@ class RefundRequest {
|
||||
runtimeType == other.runtimeType &&
|
||||
swapAddress == other.swapAddress &&
|
||||
refundAddress == other.refundAddress &&
|
||||
feeRateMsatPerVbyte == other.feeRateMsatPerVbyte;
|
||||
feeRateSatPerVbyte == other.feeRateSatPerVbyte;
|
||||
}
|
||||
|
||||
/// Returned when calling [crate::sdk::LiquidSdk::refund].
|
||||
|
||||
Reference in New Issue
Block a user