Add zero-amount Receive Chain Swap (#538)

Add support for Zero-Amount Receive Chain Swaps
This commit is contained in:
ok300
2024-12-09 16:10:52 +00:00
committed by GitHub
parent 790dfa91be
commit cfc883ae00
20 changed files with 571 additions and 60 deletions

View File

@@ -939,6 +939,20 @@ class FlutterBreezLiquidBindings {
_frbgen_breez_liquid_cst_new_box_autoadd_connect_requestPtr
.asFunction<ffi.Pointer<wire_cst_connect_request> Function()>();
ffi.Pointer<ffi.Double> frbgen_breez_liquid_cst_new_box_autoadd_f_64(
double value,
) {
return _frbgen_breez_liquid_cst_new_box_autoadd_f_64(
value,
);
}
late final _frbgen_breez_liquid_cst_new_box_autoadd_f_64Ptr =
_lookup<ffi.NativeFunction<ffi.Pointer<ffi.Double> Function(ffi.Double)>>(
'frbgen_breez_liquid_cst_new_box_autoadd_f_64');
late final _frbgen_breez_liquid_cst_new_box_autoadd_f_64 =
_frbgen_breez_liquid_cst_new_box_autoadd_f_64Ptr.asFunction<ffi.Pointer<ffi.Double> Function(double)>();
ffi.Pointer<wire_cst_get_payment_request> frbgen_breez_liquid_cst_new_box_autoadd_get_payment_request() {
return _frbgen_breez_liquid_cst_new_box_autoadd_get_payment_request();
}
@@ -4327,6 +4341,12 @@ final class wire_cst_prepare_receive_response extends ffi.Struct {
@ffi.Uint64()
external int fees_sat;
external ffi.Pointer<ffi.Uint64> min_payer_amount_sat;
external ffi.Pointer<ffi.Uint64> max_payer_amount_sat;
external ffi.Pointer<ffi.Double> swapper_feerate;
}
final class wire_cst_receive_payment_request extends ffi.Struct {