mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-18 06:24:21 +01:00
* get_info: remove with_scan argument * Fix binding tests * Update dart test and kotlin example app * Update RN example app
1940 lines
66 KiB
Dart
1940 lines
66 KiB
Dart
// This file is automatically generated, so please do not edit it.
|
|
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.38.
|
|
|
|
// ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field
|
|
|
|
import 'bindings.dart';
|
|
import 'dart:async';
|
|
import 'dart:convert';
|
|
import 'dart:ffi' as ffi;
|
|
import 'error.dart';
|
|
import 'frb_generated.dart';
|
|
import 'model.dart';
|
|
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated_io.dart';
|
|
|
|
abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
|
RustLibApiImplPlatform({
|
|
required super.handler,
|
|
required super.wire,
|
|
required super.generalizedFrbRustBinding,
|
|
required super.portManager,
|
|
});
|
|
|
|
CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_BindingLiquidSdkPtr => wire
|
|
._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdkPtr;
|
|
|
|
@protected
|
|
AnyhowException dco_decode_AnyhowException(dynamic raw);
|
|
|
|
@protected
|
|
BindingLiquidSdk
|
|
dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdk(
|
|
dynamic raw);
|
|
|
|
@protected
|
|
BindingLiquidSdk
|
|
dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdk(
|
|
dynamic raw);
|
|
|
|
@protected
|
|
BindingLiquidSdk dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdk(
|
|
dynamic raw);
|
|
|
|
@protected
|
|
RustStreamSink<LiquidSdkEvent> dco_decode_StreamSink_liquid_sdk_event_Dco(dynamic raw);
|
|
|
|
@protected
|
|
RustStreamSink<LogEntry> dco_decode_StreamSink_log_entry_Dco(dynamic raw);
|
|
|
|
@protected
|
|
String dco_decode_String(dynamic raw);
|
|
|
|
@protected
|
|
BackupRequest dco_decode_backup_request(dynamic raw);
|
|
|
|
@protected
|
|
BindingEventListener dco_decode_binding_event_listener(dynamic raw);
|
|
|
|
@protected
|
|
BackupRequest dco_decode_box_autoadd_backup_request(dynamic raw);
|
|
|
|
@protected
|
|
BindingEventListener dco_decode_box_autoadd_binding_event_listener(dynamic raw);
|
|
|
|
@protected
|
|
ConnectRequest dco_decode_box_autoadd_connect_request(dynamic raw);
|
|
|
|
@protected
|
|
LiquidSdkEvent dco_decode_box_autoadd_liquid_sdk_event(dynamic raw);
|
|
|
|
@protected
|
|
Payment dco_decode_box_autoadd_payment(dynamic raw);
|
|
|
|
@protected
|
|
PrepareReceiveRequest dco_decode_box_autoadd_prepare_receive_request(dynamic raw);
|
|
|
|
@protected
|
|
PrepareReceiveResponse dco_decode_box_autoadd_prepare_receive_response(dynamic raw);
|
|
|
|
@protected
|
|
PrepareSendRequest dco_decode_box_autoadd_prepare_send_request(dynamic raw);
|
|
|
|
@protected
|
|
PrepareSendResponse dco_decode_box_autoadd_prepare_send_response(dynamic raw);
|
|
|
|
@protected
|
|
RestoreRequest dco_decode_box_autoadd_restore_request(dynamic raw);
|
|
|
|
@protected
|
|
BigInt dco_decode_box_autoadd_u_64(dynamic raw);
|
|
|
|
@protected
|
|
Config dco_decode_config(dynamic raw);
|
|
|
|
@protected
|
|
ConnectRequest dco_decode_connect_request(dynamic raw);
|
|
|
|
@protected
|
|
GetInfoResponse dco_decode_get_info_response(dynamic raw);
|
|
|
|
@protected
|
|
int dco_decode_i_32(dynamic raw);
|
|
|
|
@protected
|
|
LiquidSdkError dco_decode_liquid_sdk_error(dynamic raw);
|
|
|
|
@protected
|
|
LiquidSdkEvent dco_decode_liquid_sdk_event(dynamic raw);
|
|
|
|
@protected
|
|
List<Payment> dco_decode_list_payment(dynamic raw);
|
|
|
|
@protected
|
|
Uint8List dco_decode_list_prim_u_8_strict(dynamic raw);
|
|
|
|
@protected
|
|
List<RouteHint> dco_decode_list_route_hint(dynamic raw);
|
|
|
|
@protected
|
|
List<RouteHintHop> dco_decode_list_route_hint_hop(dynamic raw);
|
|
|
|
@protected
|
|
LNInvoice dco_decode_ln_invoice(dynamic raw);
|
|
|
|
@protected
|
|
LogEntry dco_decode_log_entry(dynamic raw);
|
|
|
|
@protected
|
|
Network dco_decode_network(dynamic raw);
|
|
|
|
@protected
|
|
String? dco_decode_opt_String(dynamic raw);
|
|
|
|
@protected
|
|
BigInt? dco_decode_opt_box_autoadd_u_64(dynamic raw);
|
|
|
|
@protected
|
|
Payment dco_decode_payment(dynamic raw);
|
|
|
|
@protected
|
|
PaymentError dco_decode_payment_error(dynamic raw);
|
|
|
|
@protected
|
|
PaymentState dco_decode_payment_state(dynamic raw);
|
|
|
|
@protected
|
|
PaymentType dco_decode_payment_type(dynamic raw);
|
|
|
|
@protected
|
|
PrepareReceiveRequest dco_decode_prepare_receive_request(dynamic raw);
|
|
|
|
@protected
|
|
PrepareReceiveResponse dco_decode_prepare_receive_response(dynamic raw);
|
|
|
|
@protected
|
|
PrepareSendRequest dco_decode_prepare_send_request(dynamic raw);
|
|
|
|
@protected
|
|
PrepareSendResponse dco_decode_prepare_send_response(dynamic raw);
|
|
|
|
@protected
|
|
ReceivePaymentResponse dco_decode_receive_payment_response(dynamic raw);
|
|
|
|
@protected
|
|
RestoreRequest dco_decode_restore_request(dynamic raw);
|
|
|
|
@protected
|
|
RouteHint dco_decode_route_hint(dynamic raw);
|
|
|
|
@protected
|
|
RouteHintHop dco_decode_route_hint_hop(dynamic raw);
|
|
|
|
@protected
|
|
SendPaymentResponse dco_decode_send_payment_response(dynamic raw);
|
|
|
|
@protected
|
|
int dco_decode_u_32(dynamic raw);
|
|
|
|
@protected
|
|
BigInt dco_decode_u_64(dynamic raw);
|
|
|
|
@protected
|
|
int dco_decode_u_8(dynamic raw);
|
|
|
|
@protected
|
|
void dco_decode_unit(dynamic raw);
|
|
|
|
@protected
|
|
BigInt dco_decode_usize(dynamic raw);
|
|
|
|
@protected
|
|
AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
BindingLiquidSdk
|
|
sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdk(
|
|
SseDeserializer deserializer);
|
|
|
|
@protected
|
|
BindingLiquidSdk
|
|
sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdk(
|
|
SseDeserializer deserializer);
|
|
|
|
@protected
|
|
BindingLiquidSdk sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdk(
|
|
SseDeserializer deserializer);
|
|
|
|
@protected
|
|
RustStreamSink<LiquidSdkEvent> sse_decode_StreamSink_liquid_sdk_event_Dco(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
RustStreamSink<LogEntry> sse_decode_StreamSink_log_entry_Dco(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
String sse_decode_String(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
BackupRequest sse_decode_backup_request(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
BindingEventListener sse_decode_binding_event_listener(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
BackupRequest sse_decode_box_autoadd_backup_request(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
BindingEventListener sse_decode_box_autoadd_binding_event_listener(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
ConnectRequest sse_decode_box_autoadd_connect_request(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
LiquidSdkEvent sse_decode_box_autoadd_liquid_sdk_event(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
Payment sse_decode_box_autoadd_payment(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
PrepareReceiveRequest sse_decode_box_autoadd_prepare_receive_request(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
PrepareReceiveResponse sse_decode_box_autoadd_prepare_receive_response(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
PrepareSendRequest sse_decode_box_autoadd_prepare_send_request(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
PrepareSendResponse sse_decode_box_autoadd_prepare_send_response(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
RestoreRequest sse_decode_box_autoadd_restore_request(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
BigInt sse_decode_box_autoadd_u_64(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
Config sse_decode_config(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
ConnectRequest sse_decode_connect_request(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
GetInfoResponse sse_decode_get_info_response(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
int sse_decode_i_32(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
LiquidSdkError sse_decode_liquid_sdk_error(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
LiquidSdkEvent sse_decode_liquid_sdk_event(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
List<Payment> sse_decode_list_payment(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
Uint8List sse_decode_list_prim_u_8_strict(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
List<RouteHint> sse_decode_list_route_hint(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
List<RouteHintHop> sse_decode_list_route_hint_hop(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
LNInvoice sse_decode_ln_invoice(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
LogEntry sse_decode_log_entry(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
Network sse_decode_network(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
String? sse_decode_opt_String(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
BigInt? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
Payment sse_decode_payment(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
PaymentError sse_decode_payment_error(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
PaymentState sse_decode_payment_state(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
PaymentType sse_decode_payment_type(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
PrepareReceiveRequest sse_decode_prepare_receive_request(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
PrepareReceiveResponse sse_decode_prepare_receive_response(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
PrepareSendRequest sse_decode_prepare_send_request(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
PrepareSendResponse sse_decode_prepare_send_response(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
ReceivePaymentResponse sse_decode_receive_payment_response(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
RestoreRequest sse_decode_restore_request(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
RouteHint sse_decode_route_hint(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
RouteHintHop sse_decode_route_hint_hop(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
SendPaymentResponse sse_decode_send_payment_response(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
int sse_decode_u_32(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
BigInt sse_decode_u_64(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
int sse_decode_u_8(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
void sse_decode_unit(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
BigInt sse_decode_usize(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
bool sse_decode_bool(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_AnyhowException(AnyhowException raw) {
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
throw UnimplementedError();
|
|
}
|
|
|
|
@protected
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_StreamSink_liquid_sdk_event_Dco(
|
|
RustStreamSink<LiquidSdkEvent> raw) {
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
return cst_encode_String(raw.setupAndSerialize(
|
|
codec: DcoCodec(decodeSuccessData: dco_decode_liquid_sdk_event, decodeErrorData: null)));
|
|
}
|
|
|
|
@protected
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_StreamSink_log_entry_Dco(
|
|
RustStreamSink<LogEntry> raw) {
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
return cst_encode_String(raw.setupAndSerialize(
|
|
codec: DcoCodec(decodeSuccessData: dco_decode_log_entry, decodeErrorData: null)));
|
|
}
|
|
|
|
@protected
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_String(String raw) {
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
return cst_encode_list_prim_u_8_strict(utf8.encoder.convert(raw));
|
|
}
|
|
|
|
@protected
|
|
ffi.Pointer<wire_cst_backup_request> cst_encode_box_autoadd_backup_request(BackupRequest raw) {
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
final ptr = wire.cst_new_box_autoadd_backup_request();
|
|
cst_api_fill_to_wire_backup_request(raw, ptr.ref);
|
|
return ptr;
|
|
}
|
|
|
|
@protected
|
|
ffi.Pointer<wire_cst_binding_event_listener> cst_encode_box_autoadd_binding_event_listener(
|
|
BindingEventListener raw) {
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
final ptr = wire.cst_new_box_autoadd_binding_event_listener();
|
|
cst_api_fill_to_wire_binding_event_listener(raw, ptr.ref);
|
|
return ptr;
|
|
}
|
|
|
|
@protected
|
|
ffi.Pointer<wire_cst_connect_request> cst_encode_box_autoadd_connect_request(ConnectRequest raw) {
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
final ptr = wire.cst_new_box_autoadd_connect_request();
|
|
cst_api_fill_to_wire_connect_request(raw, ptr.ref);
|
|
return ptr;
|
|
}
|
|
|
|
@protected
|
|
ffi.Pointer<wire_cst_liquid_sdk_event> cst_encode_box_autoadd_liquid_sdk_event(LiquidSdkEvent raw) {
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
final ptr = wire.cst_new_box_autoadd_liquid_sdk_event();
|
|
cst_api_fill_to_wire_liquid_sdk_event(raw, ptr.ref);
|
|
return ptr;
|
|
}
|
|
|
|
@protected
|
|
ffi.Pointer<wire_cst_payment> cst_encode_box_autoadd_payment(Payment raw) {
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
final ptr = wire.cst_new_box_autoadd_payment();
|
|
cst_api_fill_to_wire_payment(raw, ptr.ref);
|
|
return ptr;
|
|
}
|
|
|
|
@protected
|
|
ffi.Pointer<wire_cst_prepare_receive_request> cst_encode_box_autoadd_prepare_receive_request(
|
|
PrepareReceiveRequest raw) {
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
final ptr = wire.cst_new_box_autoadd_prepare_receive_request();
|
|
cst_api_fill_to_wire_prepare_receive_request(raw, ptr.ref);
|
|
return ptr;
|
|
}
|
|
|
|
@protected
|
|
ffi.Pointer<wire_cst_prepare_receive_response> cst_encode_box_autoadd_prepare_receive_response(
|
|
PrepareReceiveResponse raw) {
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
final ptr = wire.cst_new_box_autoadd_prepare_receive_response();
|
|
cst_api_fill_to_wire_prepare_receive_response(raw, ptr.ref);
|
|
return ptr;
|
|
}
|
|
|
|
@protected
|
|
ffi.Pointer<wire_cst_prepare_send_request> cst_encode_box_autoadd_prepare_send_request(
|
|
PrepareSendRequest raw) {
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
final ptr = wire.cst_new_box_autoadd_prepare_send_request();
|
|
cst_api_fill_to_wire_prepare_send_request(raw, ptr.ref);
|
|
return ptr;
|
|
}
|
|
|
|
@protected
|
|
ffi.Pointer<wire_cst_prepare_send_response> cst_encode_box_autoadd_prepare_send_response(
|
|
PrepareSendResponse raw) {
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
final ptr = wire.cst_new_box_autoadd_prepare_send_response();
|
|
cst_api_fill_to_wire_prepare_send_response(raw, ptr.ref);
|
|
return ptr;
|
|
}
|
|
|
|
@protected
|
|
ffi.Pointer<wire_cst_restore_request> cst_encode_box_autoadd_restore_request(RestoreRequest raw) {
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
final ptr = wire.cst_new_box_autoadd_restore_request();
|
|
cst_api_fill_to_wire_restore_request(raw, ptr.ref);
|
|
return ptr;
|
|
}
|
|
|
|
@protected
|
|
ffi.Pointer<ffi.Uint64> cst_encode_box_autoadd_u_64(BigInt raw) {
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
return wire.cst_new_box_autoadd_u_64(cst_encode_u_64(raw));
|
|
}
|
|
|
|
@protected
|
|
ffi.Pointer<wire_cst_list_payment> cst_encode_list_payment(List<Payment> raw) {
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
final ans = wire.cst_new_list_payment(raw.length);
|
|
for (var i = 0; i < raw.length; ++i) {
|
|
cst_api_fill_to_wire_payment(raw[i], ans.ref.ptr[i]);
|
|
}
|
|
return ans;
|
|
}
|
|
|
|
@protected
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_list_prim_u_8_strict(Uint8List raw) {
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
final ans = wire.cst_new_list_prim_u_8_strict(raw.length);
|
|
ans.ref.ptr.asTypedList(raw.length).setAll(0, raw);
|
|
return ans;
|
|
}
|
|
|
|
@protected
|
|
ffi.Pointer<wire_cst_list_route_hint> cst_encode_list_route_hint(List<RouteHint> raw) {
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
final ans = wire.cst_new_list_route_hint(raw.length);
|
|
for (var i = 0; i < raw.length; ++i) {
|
|
cst_api_fill_to_wire_route_hint(raw[i], ans.ref.ptr[i]);
|
|
}
|
|
return ans;
|
|
}
|
|
|
|
@protected
|
|
ffi.Pointer<wire_cst_list_route_hint_hop> cst_encode_list_route_hint_hop(List<RouteHintHop> raw) {
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
final ans = wire.cst_new_list_route_hint_hop(raw.length);
|
|
for (var i = 0; i < raw.length; ++i) {
|
|
cst_api_fill_to_wire_route_hint_hop(raw[i], ans.ref.ptr[i]);
|
|
}
|
|
return ans;
|
|
}
|
|
|
|
@protected
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_opt_String(String? raw) {
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
return raw == null ? ffi.nullptr : cst_encode_String(raw);
|
|
}
|
|
|
|
@protected
|
|
ffi.Pointer<ffi.Uint64> cst_encode_opt_box_autoadd_u_64(BigInt? raw) {
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
return raw == null ? ffi.nullptr : cst_encode_box_autoadd_u_64(raw);
|
|
}
|
|
|
|
@protected
|
|
int cst_encode_u_64(BigInt raw) {
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
return raw.toSigned(64).toInt();
|
|
}
|
|
|
|
@protected
|
|
int cst_encode_usize(BigInt raw) {
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
return raw.toSigned(64).toInt();
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_backup_request(BackupRequest apiObj, wire_cst_backup_request wireObj) {
|
|
wireObj.backup_path = cst_encode_opt_String(apiObj.backupPath);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_binding_event_listener(
|
|
BindingEventListener apiObj, wire_cst_binding_event_listener wireObj) {
|
|
wireObj.stream = cst_encode_StreamSink_liquid_sdk_event_Dco(apiObj.stream);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_box_autoadd_backup_request(
|
|
BackupRequest apiObj, ffi.Pointer<wire_cst_backup_request> wireObj) {
|
|
cst_api_fill_to_wire_backup_request(apiObj, wireObj.ref);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_box_autoadd_binding_event_listener(
|
|
BindingEventListener apiObj, ffi.Pointer<wire_cst_binding_event_listener> wireObj) {
|
|
cst_api_fill_to_wire_binding_event_listener(apiObj, wireObj.ref);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_box_autoadd_connect_request(
|
|
ConnectRequest apiObj, ffi.Pointer<wire_cst_connect_request> wireObj) {
|
|
cst_api_fill_to_wire_connect_request(apiObj, wireObj.ref);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_box_autoadd_liquid_sdk_event(
|
|
LiquidSdkEvent apiObj, ffi.Pointer<wire_cst_liquid_sdk_event> wireObj) {
|
|
cst_api_fill_to_wire_liquid_sdk_event(apiObj, wireObj.ref);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_box_autoadd_payment(Payment apiObj, ffi.Pointer<wire_cst_payment> wireObj) {
|
|
cst_api_fill_to_wire_payment(apiObj, wireObj.ref);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_box_autoadd_prepare_receive_request(
|
|
PrepareReceiveRequest apiObj, ffi.Pointer<wire_cst_prepare_receive_request> wireObj) {
|
|
cst_api_fill_to_wire_prepare_receive_request(apiObj, wireObj.ref);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_box_autoadd_prepare_receive_response(
|
|
PrepareReceiveResponse apiObj, ffi.Pointer<wire_cst_prepare_receive_response> wireObj) {
|
|
cst_api_fill_to_wire_prepare_receive_response(apiObj, wireObj.ref);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_box_autoadd_prepare_send_request(
|
|
PrepareSendRequest apiObj, ffi.Pointer<wire_cst_prepare_send_request> wireObj) {
|
|
cst_api_fill_to_wire_prepare_send_request(apiObj, wireObj.ref);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_box_autoadd_prepare_send_response(
|
|
PrepareSendResponse apiObj, ffi.Pointer<wire_cst_prepare_send_response> wireObj) {
|
|
cst_api_fill_to_wire_prepare_send_response(apiObj, wireObj.ref);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_box_autoadd_restore_request(
|
|
RestoreRequest apiObj, ffi.Pointer<wire_cst_restore_request> wireObj) {
|
|
cst_api_fill_to_wire_restore_request(apiObj, wireObj.ref);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_config(Config apiObj, wire_cst_config wireObj) {
|
|
wireObj.boltz_url = cst_encode_String(apiObj.boltzUrl);
|
|
wireObj.electrum_url = cst_encode_String(apiObj.electrumUrl);
|
|
wireObj.working_dir = cst_encode_String(apiObj.workingDir);
|
|
wireObj.network = cst_encode_network(apiObj.network);
|
|
wireObj.payment_timeout_sec = cst_encode_u_64(apiObj.paymentTimeoutSec);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_connect_request(ConnectRequest apiObj, wire_cst_connect_request wireObj) {
|
|
wireObj.mnemonic = cst_encode_String(apiObj.mnemonic);
|
|
cst_api_fill_to_wire_config(apiObj.config, wireObj.config);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_get_info_response(GetInfoResponse apiObj, wire_cst_get_info_response wireObj) {
|
|
wireObj.balance_sat = cst_encode_u_64(apiObj.balanceSat);
|
|
wireObj.pending_send_sat = cst_encode_u_64(apiObj.pendingSendSat);
|
|
wireObj.pending_receive_sat = cst_encode_u_64(apiObj.pendingReceiveSat);
|
|
wireObj.pubkey = cst_encode_String(apiObj.pubkey);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_liquid_sdk_error(LiquidSdkError apiObj, wire_cst_liquid_sdk_error wireObj) {
|
|
if (apiObj is LiquidSdkError_AlreadyStarted) {
|
|
wireObj.tag = 0;
|
|
return;
|
|
}
|
|
if (apiObj is LiquidSdkError_Generic) {
|
|
var pre_err = cst_encode_String(apiObj.err);
|
|
wireObj.tag = 1;
|
|
wireObj.kind.Generic.err = pre_err;
|
|
return;
|
|
}
|
|
if (apiObj is LiquidSdkError_NotStarted) {
|
|
wireObj.tag = 2;
|
|
return;
|
|
}
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_liquid_sdk_event(LiquidSdkEvent apiObj, wire_cst_liquid_sdk_event wireObj) {
|
|
if (apiObj is LiquidSdkEvent_PaymentFailed) {
|
|
var pre_details = cst_encode_box_autoadd_payment(apiObj.details);
|
|
wireObj.tag = 0;
|
|
wireObj.kind.PaymentFailed.details = pre_details;
|
|
return;
|
|
}
|
|
if (apiObj is LiquidSdkEvent_PaymentPending) {
|
|
var pre_details = cst_encode_box_autoadd_payment(apiObj.details);
|
|
wireObj.tag = 1;
|
|
wireObj.kind.PaymentPending.details = pre_details;
|
|
return;
|
|
}
|
|
if (apiObj is LiquidSdkEvent_PaymentRefunded) {
|
|
var pre_details = cst_encode_box_autoadd_payment(apiObj.details);
|
|
wireObj.tag = 2;
|
|
wireObj.kind.PaymentRefunded.details = pre_details;
|
|
return;
|
|
}
|
|
if (apiObj is LiquidSdkEvent_PaymentRefundPending) {
|
|
var pre_details = cst_encode_box_autoadd_payment(apiObj.details);
|
|
wireObj.tag = 3;
|
|
wireObj.kind.PaymentRefundPending.details = pre_details;
|
|
return;
|
|
}
|
|
if (apiObj is LiquidSdkEvent_PaymentSucceeded) {
|
|
var pre_details = cst_encode_box_autoadd_payment(apiObj.details);
|
|
wireObj.tag = 4;
|
|
wireObj.kind.PaymentSucceeded.details = pre_details;
|
|
return;
|
|
}
|
|
if (apiObj is LiquidSdkEvent_PaymentWaitingConfirmation) {
|
|
var pre_details = cst_encode_box_autoadd_payment(apiObj.details);
|
|
wireObj.tag = 5;
|
|
wireObj.kind.PaymentWaitingConfirmation.details = pre_details;
|
|
return;
|
|
}
|
|
if (apiObj is LiquidSdkEvent_Synced) {
|
|
wireObj.tag = 6;
|
|
return;
|
|
}
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_ln_invoice(LNInvoice apiObj, wire_cst_ln_invoice wireObj) {
|
|
wireObj.bolt11 = cst_encode_String(apiObj.bolt11);
|
|
wireObj.network = cst_encode_network(apiObj.network);
|
|
wireObj.payee_pubkey = cst_encode_String(apiObj.payeePubkey);
|
|
wireObj.payment_hash = cst_encode_String(apiObj.paymentHash);
|
|
wireObj.description = cst_encode_opt_String(apiObj.description);
|
|
wireObj.description_hash = cst_encode_opt_String(apiObj.descriptionHash);
|
|
wireObj.amount_msat = cst_encode_opt_box_autoadd_u_64(apiObj.amountMsat);
|
|
wireObj.timestamp = cst_encode_u_64(apiObj.timestamp);
|
|
wireObj.expiry = cst_encode_u_64(apiObj.expiry);
|
|
wireObj.routing_hints = cst_encode_list_route_hint(apiObj.routingHints);
|
|
wireObj.payment_secret = cst_encode_list_prim_u_8_strict(apiObj.paymentSecret);
|
|
wireObj.min_final_cltv_expiry_delta = cst_encode_u_64(apiObj.minFinalCltvExpiryDelta);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_log_entry(LogEntry apiObj, wire_cst_log_entry wireObj) {
|
|
wireObj.line = cst_encode_String(apiObj.line);
|
|
wireObj.level = cst_encode_String(apiObj.level);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_payment(Payment apiObj, wire_cst_payment wireObj) {
|
|
wireObj.tx_id = cst_encode_String(apiObj.txId);
|
|
wireObj.swap_id = cst_encode_opt_String(apiObj.swapId);
|
|
wireObj.timestamp = cst_encode_u_32(apiObj.timestamp);
|
|
wireObj.amount_sat = cst_encode_u_64(apiObj.amountSat);
|
|
wireObj.fees_sat = cst_encode_u_64(apiObj.feesSat);
|
|
wireObj.preimage = cst_encode_opt_String(apiObj.preimage);
|
|
wireObj.refund_tx_id = cst_encode_opt_String(apiObj.refundTxId);
|
|
wireObj.refund_tx_amount_sat = cst_encode_opt_box_autoadd_u_64(apiObj.refundTxAmountSat);
|
|
wireObj.payment_type = cst_encode_payment_type(apiObj.paymentType);
|
|
wireObj.status = cst_encode_payment_state(apiObj.status);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_payment_error(PaymentError apiObj, wire_cst_payment_error wireObj) {
|
|
if (apiObj is PaymentError_AlreadyClaimed) {
|
|
wireObj.tag = 0;
|
|
return;
|
|
}
|
|
if (apiObj is PaymentError_AlreadyPaid) {
|
|
wireObj.tag = 1;
|
|
return;
|
|
}
|
|
if (apiObj is PaymentError_PaymentInProgress) {
|
|
wireObj.tag = 2;
|
|
return;
|
|
}
|
|
if (apiObj is PaymentError_AmountOutOfRange) {
|
|
wireObj.tag = 3;
|
|
return;
|
|
}
|
|
if (apiObj is PaymentError_Generic) {
|
|
var pre_err = cst_encode_String(apiObj.err);
|
|
wireObj.tag = 4;
|
|
wireObj.kind.Generic.err = pre_err;
|
|
return;
|
|
}
|
|
if (apiObj is PaymentError_InvalidOrExpiredFees) {
|
|
wireObj.tag = 5;
|
|
return;
|
|
}
|
|
if (apiObj is PaymentError_InsufficientFunds) {
|
|
wireObj.tag = 6;
|
|
return;
|
|
}
|
|
if (apiObj is PaymentError_InvalidInvoice) {
|
|
var pre_err = cst_encode_String(apiObj.err);
|
|
wireObj.tag = 7;
|
|
wireObj.kind.InvalidInvoice.err = pre_err;
|
|
return;
|
|
}
|
|
if (apiObj is PaymentError_InvalidPreimage) {
|
|
wireObj.tag = 8;
|
|
return;
|
|
}
|
|
if (apiObj is PaymentError_LwkError) {
|
|
var pre_err = cst_encode_String(apiObj.err);
|
|
wireObj.tag = 9;
|
|
wireObj.kind.LwkError.err = pre_err;
|
|
return;
|
|
}
|
|
if (apiObj is PaymentError_PairsNotFound) {
|
|
wireObj.tag = 10;
|
|
return;
|
|
}
|
|
if (apiObj is PaymentError_PaymentTimeout) {
|
|
wireObj.tag = 11;
|
|
return;
|
|
}
|
|
if (apiObj is PaymentError_PersistError) {
|
|
wireObj.tag = 12;
|
|
return;
|
|
}
|
|
if (apiObj is PaymentError_ReceiveError) {
|
|
var pre_err = cst_encode_String(apiObj.err);
|
|
wireObj.tag = 13;
|
|
wireObj.kind.ReceiveError.err = pre_err;
|
|
return;
|
|
}
|
|
if (apiObj is PaymentError_Refunded) {
|
|
var pre_err = cst_encode_String(apiObj.err);
|
|
var pre_refund_tx_id = cst_encode_String(apiObj.refundTxId);
|
|
wireObj.tag = 14;
|
|
wireObj.kind.Refunded.err = pre_err;
|
|
wireObj.kind.Refunded.refund_tx_id = pre_refund_tx_id;
|
|
return;
|
|
}
|
|
if (apiObj is PaymentError_SelfTransferNotSupported) {
|
|
wireObj.tag = 15;
|
|
return;
|
|
}
|
|
if (apiObj is PaymentError_SendError) {
|
|
var pre_err = cst_encode_String(apiObj.err);
|
|
wireObj.tag = 16;
|
|
wireObj.kind.SendError.err = pre_err;
|
|
return;
|
|
}
|
|
if (apiObj is PaymentError_SignerError) {
|
|
var pre_err = cst_encode_String(apiObj.err);
|
|
wireObj.tag = 17;
|
|
wireObj.kind.SignerError.err = pre_err;
|
|
return;
|
|
}
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_prepare_receive_request(
|
|
PrepareReceiveRequest apiObj, wire_cst_prepare_receive_request wireObj) {
|
|
wireObj.payer_amount_sat = cst_encode_u_64(apiObj.payerAmountSat);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_prepare_receive_response(
|
|
PrepareReceiveResponse apiObj, wire_cst_prepare_receive_response wireObj) {
|
|
wireObj.payer_amount_sat = cst_encode_u_64(apiObj.payerAmountSat);
|
|
wireObj.fees_sat = cst_encode_u_64(apiObj.feesSat);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_prepare_send_request(
|
|
PrepareSendRequest apiObj, wire_cst_prepare_send_request wireObj) {
|
|
wireObj.invoice = cst_encode_String(apiObj.invoice);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_prepare_send_response(
|
|
PrepareSendResponse apiObj, wire_cst_prepare_send_response wireObj) {
|
|
wireObj.invoice = cst_encode_String(apiObj.invoice);
|
|
wireObj.fees_sat = cst_encode_u_64(apiObj.feesSat);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_receive_payment_response(
|
|
ReceivePaymentResponse apiObj, wire_cst_receive_payment_response wireObj) {
|
|
wireObj.id = cst_encode_String(apiObj.id);
|
|
wireObj.invoice = cst_encode_String(apiObj.invoice);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_restore_request(RestoreRequest apiObj, wire_cst_restore_request wireObj) {
|
|
wireObj.backup_path = cst_encode_opt_String(apiObj.backupPath);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_route_hint(RouteHint apiObj, wire_cst_route_hint wireObj) {
|
|
wireObj.hops = cst_encode_list_route_hint_hop(apiObj.hops);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_route_hint_hop(RouteHintHop apiObj, wire_cst_route_hint_hop wireObj) {
|
|
wireObj.src_node_id = cst_encode_String(apiObj.srcNodeId);
|
|
wireObj.short_channel_id = cst_encode_u_64(apiObj.shortChannelId);
|
|
wireObj.fees_base_msat = cst_encode_u_32(apiObj.feesBaseMsat);
|
|
wireObj.fees_proportional_millionths = cst_encode_u_32(apiObj.feesProportionalMillionths);
|
|
wireObj.cltv_expiry_delta = cst_encode_u_64(apiObj.cltvExpiryDelta);
|
|
wireObj.htlc_minimum_msat = cst_encode_opt_box_autoadd_u_64(apiObj.htlcMinimumMsat);
|
|
wireObj.htlc_maximum_msat = cst_encode_opt_box_autoadd_u_64(apiObj.htlcMaximumMsat);
|
|
}
|
|
|
|
@protected
|
|
void cst_api_fill_to_wire_send_payment_response(
|
|
SendPaymentResponse apiObj, wire_cst_send_payment_response wireObj) {
|
|
cst_api_fill_to_wire_payment(apiObj.payment, wireObj.payment);
|
|
}
|
|
|
|
@protected
|
|
int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdk(
|
|
BindingLiquidSdk raw);
|
|
|
|
@protected
|
|
int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdk(
|
|
BindingLiquidSdk raw);
|
|
|
|
@protected
|
|
int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdk(
|
|
BindingLiquidSdk raw);
|
|
|
|
@protected
|
|
int cst_encode_i_32(int raw);
|
|
|
|
@protected
|
|
int cst_encode_network(Network raw);
|
|
|
|
@protected
|
|
int cst_encode_payment_state(PaymentState raw);
|
|
|
|
@protected
|
|
int cst_encode_payment_type(PaymentType raw);
|
|
|
|
@protected
|
|
int cst_encode_u_32(int raw);
|
|
|
|
@protected
|
|
int cst_encode_u_8(int raw);
|
|
|
|
@protected
|
|
void cst_encode_unit(void raw);
|
|
|
|
@protected
|
|
void sse_encode_AnyhowException(AnyhowException self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdk(
|
|
BindingLiquidSdk self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdk(
|
|
BindingLiquidSdk self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdk(
|
|
BindingLiquidSdk self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_StreamSink_liquid_sdk_event_Dco(
|
|
RustStreamSink<LiquidSdkEvent> self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_StreamSink_log_entry_Dco(RustStreamSink<LogEntry> self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_String(String self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_backup_request(BackupRequest self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_binding_event_listener(BindingEventListener self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_box_autoadd_backup_request(BackupRequest self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_box_autoadd_binding_event_listener(BindingEventListener self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_box_autoadd_connect_request(ConnectRequest self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_box_autoadd_liquid_sdk_event(LiquidSdkEvent self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_box_autoadd_payment(Payment self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_box_autoadd_prepare_receive_request(PrepareReceiveRequest self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_box_autoadd_prepare_receive_response(PrepareReceiveResponse self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_box_autoadd_prepare_send_request(PrepareSendRequest self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_box_autoadd_prepare_send_response(PrepareSendResponse self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_box_autoadd_restore_request(RestoreRequest self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_box_autoadd_u_64(BigInt self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_config(Config self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_connect_request(ConnectRequest self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_get_info_response(GetInfoResponse self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_i_32(int self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_liquid_sdk_error(LiquidSdkError self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_liquid_sdk_event(LiquidSdkEvent self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_list_payment(List<Payment> self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_list_prim_u_8_strict(Uint8List self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_list_route_hint(List<RouteHint> self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_list_route_hint_hop(List<RouteHintHop> self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_ln_invoice(LNInvoice self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_log_entry(LogEntry self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_network(Network self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_opt_String(String? self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_opt_box_autoadd_u_64(BigInt? self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_payment(Payment self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_payment_error(PaymentError self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_payment_state(PaymentState self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_payment_type(PaymentType self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_prepare_receive_request(PrepareReceiveRequest self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_prepare_receive_response(PrepareReceiveResponse self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_prepare_send_request(PrepareSendRequest self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_prepare_send_response(PrepareSendResponse self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_receive_payment_response(ReceivePaymentResponse self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_restore_request(RestoreRequest self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_route_hint(RouteHint self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_route_hint_hop(RouteHintHop self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_send_payment_response(SendPaymentResponse self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_u_32(int self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_u_64(BigInt self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_u_8(int self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_unit(void self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_usize(BigInt self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_bool(bool self, SseSerializer serializer);
|
|
}
|
|
|
|
// Section: wire_class
|
|
|
|
// ignore_for_file: camel_case_types, non_constant_identifier_names, avoid_positional_boolean_parameters, annotate_overrides, constant_identifier_names
|
|
// AUTO GENERATED FILE, DO NOT EDIT.
|
|
//
|
|
// Generated by `package:ffigen`.
|
|
// ignore_for_file: type=lint
|
|
|
|
/// generated by flutter_rust_bridge
|
|
class RustLibWire implements BaseWire {
|
|
factory RustLibWire.fromExternalLibrary(ExternalLibrary lib) => RustLibWire(lib.ffiDynamicLibrary);
|
|
|
|
/// Holds the symbol lookup function.
|
|
final ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName) _lookup;
|
|
|
|
/// The symbols are looked up in [dynamicLibrary].
|
|
RustLibWire(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup;
|
|
|
|
/// The symbols are looked up with [lookup].
|
|
RustLibWire.fromLookup(ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName) lookup)
|
|
: _lookup = lookup;
|
|
|
|
void store_dart_post_cobject(
|
|
DartPostCObjectFnType ptr,
|
|
) {
|
|
return _store_dart_post_cobject(
|
|
ptr,
|
|
);
|
|
}
|
|
|
|
late final _store_dart_post_cobjectPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Void Function(DartPostCObjectFnType)>>('store_dart_post_cobject');
|
|
late final _store_dart_post_cobject =
|
|
_store_dart_post_cobjectPtr.asFunction<void Function(DartPostCObjectFnType)>();
|
|
|
|
void wire__crate__bindings__BindingLiquidSdk_add_event_listener(
|
|
int port_,
|
|
int that,
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> listener,
|
|
) {
|
|
return _wire__crate__bindings__BindingLiquidSdk_add_event_listener(
|
|
port_,
|
|
that,
|
|
listener,
|
|
);
|
|
}
|
|
|
|
late final _wire__crate__bindings__BindingLiquidSdk_add_event_listenerPtr = _lookup<
|
|
ffi.NativeFunction<
|
|
ffi.Void Function(ffi.Int64, ffi.UintPtr, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>(
|
|
'frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_add_event_listener');
|
|
late final _wire__crate__bindings__BindingLiquidSdk_add_event_listener =
|
|
_wire__crate__bindings__BindingLiquidSdk_add_event_listenerPtr
|
|
.asFunction<void Function(int, int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>();
|
|
|
|
WireSyncRust2DartDco wire__crate__bindings__BindingLiquidSdk_backup(
|
|
int that,
|
|
ffi.Pointer<wire_cst_backup_request> req,
|
|
) {
|
|
return _wire__crate__bindings__BindingLiquidSdk_backup(
|
|
that,
|
|
req,
|
|
);
|
|
}
|
|
|
|
late final _wire__crate__bindings__BindingLiquidSdk_backupPtr = _lookup<
|
|
ffi
|
|
.NativeFunction<WireSyncRust2DartDco Function(ffi.UintPtr, ffi.Pointer<wire_cst_backup_request>)>>(
|
|
'frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_backup');
|
|
late final _wire__crate__bindings__BindingLiquidSdk_backup =
|
|
_wire__crate__bindings__BindingLiquidSdk_backupPtr
|
|
.asFunction<WireSyncRust2DartDco Function(int, ffi.Pointer<wire_cst_backup_request>)>();
|
|
|
|
void wire__crate__bindings__BindingLiquidSdk_disconnect(
|
|
int port_,
|
|
int that,
|
|
) {
|
|
return _wire__crate__bindings__BindingLiquidSdk_disconnect(
|
|
port_,
|
|
that,
|
|
);
|
|
}
|
|
|
|
late final _wire__crate__bindings__BindingLiquidSdk_disconnectPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.UintPtr)>>(
|
|
'frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_disconnect');
|
|
late final _wire__crate__bindings__BindingLiquidSdk_disconnect =
|
|
_wire__crate__bindings__BindingLiquidSdk_disconnectPtr.asFunction<void Function(int, int)>();
|
|
|
|
WireSyncRust2DartDco wire__crate__bindings__BindingLiquidSdk_empty_wallet_cache(
|
|
int that,
|
|
) {
|
|
return _wire__crate__bindings__BindingLiquidSdk_empty_wallet_cache(
|
|
that,
|
|
);
|
|
}
|
|
|
|
late final _wire__crate__bindings__BindingLiquidSdk_empty_wallet_cachePtr =
|
|
_lookup<ffi.NativeFunction<WireSyncRust2DartDco Function(ffi.UintPtr)>>(
|
|
'frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_empty_wallet_cache');
|
|
late final _wire__crate__bindings__BindingLiquidSdk_empty_wallet_cache =
|
|
_wire__crate__bindings__BindingLiquidSdk_empty_wallet_cachePtr
|
|
.asFunction<WireSyncRust2DartDco Function(int)>();
|
|
|
|
void wire__crate__bindings__BindingLiquidSdk_get_info(
|
|
int port_,
|
|
int that,
|
|
) {
|
|
return _wire__crate__bindings__BindingLiquidSdk_get_info(
|
|
port_,
|
|
that,
|
|
);
|
|
}
|
|
|
|
late final _wire__crate__bindings__BindingLiquidSdk_get_infoPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.UintPtr)>>(
|
|
'frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_get_info');
|
|
late final _wire__crate__bindings__BindingLiquidSdk_get_info =
|
|
_wire__crate__bindings__BindingLiquidSdk_get_infoPtr.asFunction<void Function(int, int)>();
|
|
|
|
void wire__crate__bindings__BindingLiquidSdk_list_payments(
|
|
int port_,
|
|
int that,
|
|
) {
|
|
return _wire__crate__bindings__BindingLiquidSdk_list_payments(
|
|
port_,
|
|
that,
|
|
);
|
|
}
|
|
|
|
late final _wire__crate__bindings__BindingLiquidSdk_list_paymentsPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.UintPtr)>>(
|
|
'frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_list_payments');
|
|
late final _wire__crate__bindings__BindingLiquidSdk_list_payments =
|
|
_wire__crate__bindings__BindingLiquidSdk_list_paymentsPtr.asFunction<void Function(int, int)>();
|
|
|
|
void wire__crate__bindings__BindingLiquidSdk_prepare_receive_payment(
|
|
int port_,
|
|
int that,
|
|
ffi.Pointer<wire_cst_prepare_receive_request> req,
|
|
) {
|
|
return _wire__crate__bindings__BindingLiquidSdk_prepare_receive_payment(
|
|
port_,
|
|
that,
|
|
req,
|
|
);
|
|
}
|
|
|
|
late final _wire__crate__bindings__BindingLiquidSdk_prepare_receive_paymentPtr = _lookup<
|
|
ffi.NativeFunction<
|
|
ffi.Void Function(ffi.Int64, ffi.UintPtr, ffi.Pointer<wire_cst_prepare_receive_request>)>>(
|
|
'frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_prepare_receive_payment');
|
|
late final _wire__crate__bindings__BindingLiquidSdk_prepare_receive_payment =
|
|
_wire__crate__bindings__BindingLiquidSdk_prepare_receive_paymentPtr
|
|
.asFunction<void Function(int, int, ffi.Pointer<wire_cst_prepare_receive_request>)>();
|
|
|
|
void wire__crate__bindings__BindingLiquidSdk_prepare_send_payment(
|
|
int port_,
|
|
int that,
|
|
ffi.Pointer<wire_cst_prepare_send_request> req,
|
|
) {
|
|
return _wire__crate__bindings__BindingLiquidSdk_prepare_send_payment(
|
|
port_,
|
|
that,
|
|
req,
|
|
);
|
|
}
|
|
|
|
late final _wire__crate__bindings__BindingLiquidSdk_prepare_send_paymentPtr = _lookup<
|
|
ffi.NativeFunction<
|
|
ffi.Void Function(ffi.Int64, ffi.UintPtr, ffi.Pointer<wire_cst_prepare_send_request>)>>(
|
|
'frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_prepare_send_payment');
|
|
late final _wire__crate__bindings__BindingLiquidSdk_prepare_send_payment =
|
|
_wire__crate__bindings__BindingLiquidSdk_prepare_send_paymentPtr
|
|
.asFunction<void Function(int, int, ffi.Pointer<wire_cst_prepare_send_request>)>();
|
|
|
|
void wire__crate__bindings__BindingLiquidSdk_receive_payment(
|
|
int port_,
|
|
int that,
|
|
ffi.Pointer<wire_cst_prepare_receive_response> req,
|
|
) {
|
|
return _wire__crate__bindings__BindingLiquidSdk_receive_payment(
|
|
port_,
|
|
that,
|
|
req,
|
|
);
|
|
}
|
|
|
|
late final _wire__crate__bindings__BindingLiquidSdk_receive_paymentPtr = _lookup<
|
|
ffi.NativeFunction<
|
|
ffi.Void Function(ffi.Int64, ffi.UintPtr, ffi.Pointer<wire_cst_prepare_receive_response>)>>(
|
|
'frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_receive_payment');
|
|
late final _wire__crate__bindings__BindingLiquidSdk_receive_payment =
|
|
_wire__crate__bindings__BindingLiquidSdk_receive_paymentPtr
|
|
.asFunction<void Function(int, int, ffi.Pointer<wire_cst_prepare_receive_response>)>();
|
|
|
|
WireSyncRust2DartDco wire__crate__bindings__BindingLiquidSdk_restore(
|
|
int that,
|
|
ffi.Pointer<wire_cst_restore_request> req,
|
|
) {
|
|
return _wire__crate__bindings__BindingLiquidSdk_restore(
|
|
that,
|
|
req,
|
|
);
|
|
}
|
|
|
|
late final _wire__crate__bindings__BindingLiquidSdk_restorePtr = _lookup<
|
|
ffi
|
|
.NativeFunction<WireSyncRust2DartDco Function(ffi.UintPtr, ffi.Pointer<wire_cst_restore_request>)>>(
|
|
'frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_restore');
|
|
late final _wire__crate__bindings__BindingLiquidSdk_restore =
|
|
_wire__crate__bindings__BindingLiquidSdk_restorePtr
|
|
.asFunction<WireSyncRust2DartDco Function(int, ffi.Pointer<wire_cst_restore_request>)>();
|
|
|
|
void wire__crate__bindings__BindingLiquidSdk_send_payment(
|
|
int port_,
|
|
int that,
|
|
ffi.Pointer<wire_cst_prepare_send_response> req,
|
|
) {
|
|
return _wire__crate__bindings__BindingLiquidSdk_send_payment(
|
|
port_,
|
|
that,
|
|
req,
|
|
);
|
|
}
|
|
|
|
late final _wire__crate__bindings__BindingLiquidSdk_send_paymentPtr = _lookup<
|
|
ffi.NativeFunction<
|
|
ffi.Void Function(ffi.Int64, ffi.UintPtr, ffi.Pointer<wire_cst_prepare_send_response>)>>(
|
|
'frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_send_payment');
|
|
late final _wire__crate__bindings__BindingLiquidSdk_send_payment =
|
|
_wire__crate__bindings__BindingLiquidSdk_send_paymentPtr
|
|
.asFunction<void Function(int, int, ffi.Pointer<wire_cst_prepare_send_response>)>();
|
|
|
|
void wire__crate__bindings__BindingLiquidSdk_sync(
|
|
int port_,
|
|
int that,
|
|
) {
|
|
return _wire__crate__bindings__BindingLiquidSdk_sync(
|
|
port_,
|
|
that,
|
|
);
|
|
}
|
|
|
|
late final _wire__crate__bindings__BindingLiquidSdk_syncPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.UintPtr)>>(
|
|
'frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_sync');
|
|
late final _wire__crate__bindings__BindingLiquidSdk_sync =
|
|
_wire__crate__bindings__BindingLiquidSdk_syncPtr.asFunction<void Function(int, int)>();
|
|
|
|
void wire__crate__bindings__binding_event_listener_on_event(
|
|
int port_,
|
|
ffi.Pointer<wire_cst_binding_event_listener> that,
|
|
ffi.Pointer<wire_cst_liquid_sdk_event> e,
|
|
) {
|
|
return _wire__crate__bindings__binding_event_listener_on_event(
|
|
port_,
|
|
that,
|
|
e,
|
|
);
|
|
}
|
|
|
|
late final _wire__crate__bindings__binding_event_listener_on_eventPtr = _lookup<
|
|
ffi.NativeFunction<
|
|
ffi.Void Function(ffi.Int64, ffi.Pointer<wire_cst_binding_event_listener>,
|
|
ffi.Pointer<wire_cst_liquid_sdk_event>)>>(
|
|
'frbgen_breez_liquid_wire__crate__bindings__binding_event_listener_on_event');
|
|
late final _wire__crate__bindings__binding_event_listener_on_event =
|
|
_wire__crate__bindings__binding_event_listener_on_eventPtr.asFunction<
|
|
void Function(
|
|
int, ffi.Pointer<wire_cst_binding_event_listener>, ffi.Pointer<wire_cst_liquid_sdk_event>)>();
|
|
|
|
void wire__crate__bindings__breez_log_stream(
|
|
int port_,
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> s,
|
|
) {
|
|
return _wire__crate__bindings__breez_log_stream(
|
|
port_,
|
|
s,
|
|
);
|
|
}
|
|
|
|
late final _wire__crate__bindings__breez_log_streamPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>(
|
|
'frbgen_breez_liquid_wire__crate__bindings__breez_log_stream');
|
|
late final _wire__crate__bindings__breez_log_stream = _wire__crate__bindings__breez_log_streamPtr
|
|
.asFunction<void Function(int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>();
|
|
|
|
void wire__crate__bindings__connect(
|
|
int port_,
|
|
ffi.Pointer<wire_cst_connect_request> req,
|
|
) {
|
|
return _wire__crate__bindings__connect(
|
|
port_,
|
|
req,
|
|
);
|
|
}
|
|
|
|
late final _wire__crate__bindings__connectPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.Pointer<wire_cst_connect_request>)>>(
|
|
'frbgen_breez_liquid_wire__crate__bindings__connect');
|
|
late final _wire__crate__bindings__connect = _wire__crate__bindings__connectPtr
|
|
.asFunction<void Function(int, ffi.Pointer<wire_cst_connect_request>)>();
|
|
|
|
WireSyncRust2DartDco wire__crate__bindings__default_config(
|
|
int network,
|
|
) {
|
|
return _wire__crate__bindings__default_config(
|
|
network,
|
|
);
|
|
}
|
|
|
|
late final _wire__crate__bindings__default_configPtr =
|
|
_lookup<ffi.NativeFunction<WireSyncRust2DartDco Function(ffi.Int32)>>(
|
|
'frbgen_breez_liquid_wire__crate__bindings__default_config');
|
|
late final _wire__crate__bindings__default_config =
|
|
_wire__crate__bindings__default_configPtr.asFunction<WireSyncRust2DartDco Function(int)>();
|
|
|
|
WireSyncRust2DartDco wire__crate__bindings__parse_invoice(
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> input,
|
|
) {
|
|
return _wire__crate__bindings__parse_invoice(
|
|
input,
|
|
);
|
|
}
|
|
|
|
late final _wire__crate__bindings__parse_invoicePtr =
|
|
_lookup<ffi.NativeFunction<WireSyncRust2DartDco Function(ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>(
|
|
'frbgen_breez_liquid_wire__crate__bindings__parse_invoice');
|
|
late final _wire__crate__bindings__parse_invoice = _wire__crate__bindings__parse_invoicePtr
|
|
.asFunction<WireSyncRust2DartDco Function(ffi.Pointer<wire_cst_list_prim_u_8_strict>)>();
|
|
|
|
void
|
|
rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdk(
|
|
ffi.Pointer<ffi.Void> ptr,
|
|
) {
|
|
return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdk(
|
|
ptr,
|
|
);
|
|
}
|
|
|
|
late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdkPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void>)>>(
|
|
'frbgen_breez_liquid_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdk');
|
|
late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdk =
|
|
_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdkPtr
|
|
.asFunction<void Function(ffi.Pointer<ffi.Void>)>();
|
|
|
|
void
|
|
rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdk(
|
|
ffi.Pointer<ffi.Void> ptr,
|
|
) {
|
|
return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdk(
|
|
ptr,
|
|
);
|
|
}
|
|
|
|
late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdkPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void>)>>(
|
|
'frbgen_breez_liquid_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdk');
|
|
late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdk =
|
|
_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdkPtr
|
|
.asFunction<void Function(ffi.Pointer<ffi.Void>)>();
|
|
|
|
ffi.Pointer<wire_cst_backup_request> cst_new_box_autoadd_backup_request() {
|
|
return _cst_new_box_autoadd_backup_request();
|
|
}
|
|
|
|
late final _cst_new_box_autoadd_backup_requestPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_backup_request> Function()>>(
|
|
'frbgen_breez_liquid_cst_new_box_autoadd_backup_request');
|
|
late final _cst_new_box_autoadd_backup_request =
|
|
_cst_new_box_autoadd_backup_requestPtr.asFunction<ffi.Pointer<wire_cst_backup_request> Function()>();
|
|
|
|
ffi.Pointer<wire_cst_binding_event_listener> cst_new_box_autoadd_binding_event_listener() {
|
|
return _cst_new_box_autoadd_binding_event_listener();
|
|
}
|
|
|
|
late final _cst_new_box_autoadd_binding_event_listenerPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_binding_event_listener> Function()>>(
|
|
'frbgen_breez_liquid_cst_new_box_autoadd_binding_event_listener');
|
|
late final _cst_new_box_autoadd_binding_event_listener = _cst_new_box_autoadd_binding_event_listenerPtr
|
|
.asFunction<ffi.Pointer<wire_cst_binding_event_listener> Function()>();
|
|
|
|
ffi.Pointer<wire_cst_connect_request> cst_new_box_autoadd_connect_request() {
|
|
return _cst_new_box_autoadd_connect_request();
|
|
}
|
|
|
|
late final _cst_new_box_autoadd_connect_requestPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_connect_request> Function()>>(
|
|
'frbgen_breez_liquid_cst_new_box_autoadd_connect_request');
|
|
late final _cst_new_box_autoadd_connect_request =
|
|
_cst_new_box_autoadd_connect_requestPtr.asFunction<ffi.Pointer<wire_cst_connect_request> Function()>();
|
|
|
|
ffi.Pointer<wire_cst_liquid_sdk_event> cst_new_box_autoadd_liquid_sdk_event() {
|
|
return _cst_new_box_autoadd_liquid_sdk_event();
|
|
}
|
|
|
|
late final _cst_new_box_autoadd_liquid_sdk_eventPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_liquid_sdk_event> Function()>>(
|
|
'frbgen_breez_liquid_cst_new_box_autoadd_liquid_sdk_event');
|
|
late final _cst_new_box_autoadd_liquid_sdk_event = _cst_new_box_autoadd_liquid_sdk_eventPtr
|
|
.asFunction<ffi.Pointer<wire_cst_liquid_sdk_event> Function()>();
|
|
|
|
ffi.Pointer<wire_cst_payment> cst_new_box_autoadd_payment() {
|
|
return _cst_new_box_autoadd_payment();
|
|
}
|
|
|
|
late final _cst_new_box_autoadd_paymentPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_payment> Function()>>(
|
|
'frbgen_breez_liquid_cst_new_box_autoadd_payment');
|
|
late final _cst_new_box_autoadd_payment =
|
|
_cst_new_box_autoadd_paymentPtr.asFunction<ffi.Pointer<wire_cst_payment> Function()>();
|
|
|
|
ffi.Pointer<wire_cst_prepare_receive_request> cst_new_box_autoadd_prepare_receive_request() {
|
|
return _cst_new_box_autoadd_prepare_receive_request();
|
|
}
|
|
|
|
late final _cst_new_box_autoadd_prepare_receive_requestPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_prepare_receive_request> Function()>>(
|
|
'frbgen_breez_liquid_cst_new_box_autoadd_prepare_receive_request');
|
|
late final _cst_new_box_autoadd_prepare_receive_request = _cst_new_box_autoadd_prepare_receive_requestPtr
|
|
.asFunction<ffi.Pointer<wire_cst_prepare_receive_request> Function()>();
|
|
|
|
ffi.Pointer<wire_cst_prepare_receive_response> cst_new_box_autoadd_prepare_receive_response() {
|
|
return _cst_new_box_autoadd_prepare_receive_response();
|
|
}
|
|
|
|
late final _cst_new_box_autoadd_prepare_receive_responsePtr =
|
|
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_prepare_receive_response> Function()>>(
|
|
'frbgen_breez_liquid_cst_new_box_autoadd_prepare_receive_response');
|
|
late final _cst_new_box_autoadd_prepare_receive_response = _cst_new_box_autoadd_prepare_receive_responsePtr
|
|
.asFunction<ffi.Pointer<wire_cst_prepare_receive_response> Function()>();
|
|
|
|
ffi.Pointer<wire_cst_prepare_send_request> cst_new_box_autoadd_prepare_send_request() {
|
|
return _cst_new_box_autoadd_prepare_send_request();
|
|
}
|
|
|
|
late final _cst_new_box_autoadd_prepare_send_requestPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_prepare_send_request> Function()>>(
|
|
'frbgen_breez_liquid_cst_new_box_autoadd_prepare_send_request');
|
|
late final _cst_new_box_autoadd_prepare_send_request = _cst_new_box_autoadd_prepare_send_requestPtr
|
|
.asFunction<ffi.Pointer<wire_cst_prepare_send_request> Function()>();
|
|
|
|
ffi.Pointer<wire_cst_prepare_send_response> cst_new_box_autoadd_prepare_send_response() {
|
|
return _cst_new_box_autoadd_prepare_send_response();
|
|
}
|
|
|
|
late final _cst_new_box_autoadd_prepare_send_responsePtr =
|
|
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_prepare_send_response> Function()>>(
|
|
'frbgen_breez_liquid_cst_new_box_autoadd_prepare_send_response');
|
|
late final _cst_new_box_autoadd_prepare_send_response = _cst_new_box_autoadd_prepare_send_responsePtr
|
|
.asFunction<ffi.Pointer<wire_cst_prepare_send_response> Function()>();
|
|
|
|
ffi.Pointer<wire_cst_restore_request> cst_new_box_autoadd_restore_request() {
|
|
return _cst_new_box_autoadd_restore_request();
|
|
}
|
|
|
|
late final _cst_new_box_autoadd_restore_requestPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_restore_request> Function()>>(
|
|
'frbgen_breez_liquid_cst_new_box_autoadd_restore_request');
|
|
late final _cst_new_box_autoadd_restore_request =
|
|
_cst_new_box_autoadd_restore_requestPtr.asFunction<ffi.Pointer<wire_cst_restore_request> Function()>();
|
|
|
|
ffi.Pointer<ffi.Uint64> cst_new_box_autoadd_u_64(
|
|
int value,
|
|
) {
|
|
return _cst_new_box_autoadd_u_64(
|
|
value,
|
|
);
|
|
}
|
|
|
|
late final _cst_new_box_autoadd_u_64Ptr =
|
|
_lookup<ffi.NativeFunction<ffi.Pointer<ffi.Uint64> Function(ffi.Uint64)>>(
|
|
'frbgen_breez_liquid_cst_new_box_autoadd_u_64');
|
|
late final _cst_new_box_autoadd_u_64 =
|
|
_cst_new_box_autoadd_u_64Ptr.asFunction<ffi.Pointer<ffi.Uint64> Function(int)>();
|
|
|
|
ffi.Pointer<wire_cst_list_payment> cst_new_list_payment(
|
|
int len,
|
|
) {
|
|
return _cst_new_list_payment(
|
|
len,
|
|
);
|
|
}
|
|
|
|
late final _cst_new_list_paymentPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_list_payment> Function(ffi.Int32)>>(
|
|
'frbgen_breez_liquid_cst_new_list_payment');
|
|
late final _cst_new_list_payment =
|
|
_cst_new_list_paymentPtr.asFunction<ffi.Pointer<wire_cst_list_payment> Function(int)>();
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_new_list_prim_u_8_strict(
|
|
int len,
|
|
) {
|
|
return _cst_new_list_prim_u_8_strict(
|
|
len,
|
|
);
|
|
}
|
|
|
|
late final _cst_new_list_prim_u_8_strictPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_list_prim_u_8_strict> Function(ffi.Int32)>>(
|
|
'frbgen_breez_liquid_cst_new_list_prim_u_8_strict');
|
|
late final _cst_new_list_prim_u_8_strict =
|
|
_cst_new_list_prim_u_8_strictPtr.asFunction<ffi.Pointer<wire_cst_list_prim_u_8_strict> Function(int)>();
|
|
|
|
ffi.Pointer<wire_cst_list_route_hint> cst_new_list_route_hint(
|
|
int len,
|
|
) {
|
|
return _cst_new_list_route_hint(
|
|
len,
|
|
);
|
|
}
|
|
|
|
late final _cst_new_list_route_hintPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_list_route_hint> Function(ffi.Int32)>>(
|
|
'frbgen_breez_liquid_cst_new_list_route_hint');
|
|
late final _cst_new_list_route_hint =
|
|
_cst_new_list_route_hintPtr.asFunction<ffi.Pointer<wire_cst_list_route_hint> Function(int)>();
|
|
|
|
ffi.Pointer<wire_cst_list_route_hint_hop> cst_new_list_route_hint_hop(
|
|
int len,
|
|
) {
|
|
return _cst_new_list_route_hint_hop(
|
|
len,
|
|
);
|
|
}
|
|
|
|
late final _cst_new_list_route_hint_hopPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_list_route_hint_hop> Function(ffi.Int32)>>(
|
|
'frbgen_breez_liquid_cst_new_list_route_hint_hop');
|
|
late final _cst_new_list_route_hint_hop =
|
|
_cst_new_list_route_hint_hopPtr.asFunction<ffi.Pointer<wire_cst_list_route_hint_hop> Function(int)>();
|
|
|
|
int dummy_method_to_enforce_bundling() {
|
|
return _dummy_method_to_enforce_bundling();
|
|
}
|
|
|
|
late final _dummy_method_to_enforce_bundlingPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Int64 Function()>>('dummy_method_to_enforce_bundling');
|
|
late final _dummy_method_to_enforce_bundling =
|
|
_dummy_method_to_enforce_bundlingPtr.asFunction<int Function()>();
|
|
}
|
|
|
|
typedef DartPostCObjectFnType = ffi.Pointer<ffi.NativeFunction<DartPostCObjectFnTypeFunction>>;
|
|
typedef DartPostCObjectFnTypeFunction = ffi.Bool Function(DartPort port_id, ffi.Pointer<ffi.Void> message);
|
|
typedef DartDartPostCObjectFnTypeFunction = bool Function(
|
|
DartDartPort port_id, ffi.Pointer<ffi.Void> message);
|
|
typedef DartPort = ffi.Int64;
|
|
typedef DartDartPort = int;
|
|
|
|
final class wire_cst_list_prim_u_8_strict extends ffi.Struct {
|
|
external ffi.Pointer<ffi.Uint8> ptr;
|
|
|
|
@ffi.Int32()
|
|
external int len;
|
|
}
|
|
|
|
final class wire_cst_backup_request extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> backup_path;
|
|
}
|
|
|
|
final class wire_cst_prepare_receive_request extends ffi.Struct {
|
|
@ffi.Uint64()
|
|
external int payer_amount_sat;
|
|
}
|
|
|
|
final class wire_cst_prepare_send_request extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> invoice;
|
|
}
|
|
|
|
final class wire_cst_prepare_receive_response extends ffi.Struct {
|
|
@ffi.Uint64()
|
|
external int payer_amount_sat;
|
|
|
|
@ffi.Uint64()
|
|
external int fees_sat;
|
|
}
|
|
|
|
final class wire_cst_restore_request extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> backup_path;
|
|
}
|
|
|
|
final class wire_cst_prepare_send_response extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> invoice;
|
|
|
|
@ffi.Uint64()
|
|
external int fees_sat;
|
|
}
|
|
|
|
final class wire_cst_binding_event_listener extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> stream;
|
|
}
|
|
|
|
final class wire_cst_payment extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> tx_id;
|
|
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> swap_id;
|
|
|
|
@ffi.Uint32()
|
|
external int timestamp;
|
|
|
|
@ffi.Uint64()
|
|
external int amount_sat;
|
|
|
|
@ffi.Uint64()
|
|
external int fees_sat;
|
|
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> preimage;
|
|
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> refund_tx_id;
|
|
|
|
external ffi.Pointer<ffi.Uint64> refund_tx_amount_sat;
|
|
|
|
@ffi.Int32()
|
|
external int payment_type;
|
|
|
|
@ffi.Int32()
|
|
external int status;
|
|
}
|
|
|
|
final class wire_cst_LiquidSdkEvent_PaymentFailed extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_payment> details;
|
|
}
|
|
|
|
final class wire_cst_LiquidSdkEvent_PaymentPending extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_payment> details;
|
|
}
|
|
|
|
final class wire_cst_LiquidSdkEvent_PaymentRefunded extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_payment> details;
|
|
}
|
|
|
|
final class wire_cst_LiquidSdkEvent_PaymentRefundPending extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_payment> details;
|
|
}
|
|
|
|
final class wire_cst_LiquidSdkEvent_PaymentSucceeded extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_payment> details;
|
|
}
|
|
|
|
final class wire_cst_LiquidSdkEvent_PaymentWaitingConfirmation extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_payment> details;
|
|
}
|
|
|
|
final class LiquidSdkEventKind extends ffi.Union {
|
|
external wire_cst_LiquidSdkEvent_PaymentFailed PaymentFailed;
|
|
|
|
external wire_cst_LiquidSdkEvent_PaymentPending PaymentPending;
|
|
|
|
external wire_cst_LiquidSdkEvent_PaymentRefunded PaymentRefunded;
|
|
|
|
external wire_cst_LiquidSdkEvent_PaymentRefundPending PaymentRefundPending;
|
|
|
|
external wire_cst_LiquidSdkEvent_PaymentSucceeded PaymentSucceeded;
|
|
|
|
external wire_cst_LiquidSdkEvent_PaymentWaitingConfirmation PaymentWaitingConfirmation;
|
|
}
|
|
|
|
final class wire_cst_liquid_sdk_event extends ffi.Struct {
|
|
@ffi.Int32()
|
|
external int tag;
|
|
|
|
external LiquidSdkEventKind kind;
|
|
}
|
|
|
|
final class wire_cst_config extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> boltz_url;
|
|
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> electrum_url;
|
|
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> working_dir;
|
|
|
|
@ffi.Int32()
|
|
external int network;
|
|
|
|
@ffi.Uint64()
|
|
external int payment_timeout_sec;
|
|
}
|
|
|
|
final class wire_cst_connect_request extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> mnemonic;
|
|
|
|
external wire_cst_config config;
|
|
}
|
|
|
|
final class wire_cst_list_payment extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_payment> ptr;
|
|
|
|
@ffi.Int32()
|
|
external int len;
|
|
}
|
|
|
|
final class wire_cst_route_hint_hop extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> src_node_id;
|
|
|
|
@ffi.Uint64()
|
|
external int short_channel_id;
|
|
|
|
@ffi.Uint32()
|
|
external int fees_base_msat;
|
|
|
|
@ffi.Uint32()
|
|
external int fees_proportional_millionths;
|
|
|
|
@ffi.Uint64()
|
|
external int cltv_expiry_delta;
|
|
|
|
external ffi.Pointer<ffi.Uint64> htlc_minimum_msat;
|
|
|
|
external ffi.Pointer<ffi.Uint64> htlc_maximum_msat;
|
|
}
|
|
|
|
final class wire_cst_list_route_hint_hop extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_route_hint_hop> ptr;
|
|
|
|
@ffi.Int32()
|
|
external int len;
|
|
}
|
|
|
|
final class wire_cst_route_hint extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_list_route_hint_hop> hops;
|
|
}
|
|
|
|
final class wire_cst_list_route_hint extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_route_hint> ptr;
|
|
|
|
@ffi.Int32()
|
|
external int len;
|
|
}
|
|
|
|
final class wire_cst_get_info_response extends ffi.Struct {
|
|
@ffi.Uint64()
|
|
external int balance_sat;
|
|
|
|
@ffi.Uint64()
|
|
external int pending_send_sat;
|
|
|
|
@ffi.Uint64()
|
|
external int pending_receive_sat;
|
|
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> pubkey;
|
|
}
|
|
|
|
final class wire_cst_LiquidSdkError_Generic extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> err;
|
|
}
|
|
|
|
final class LiquidSdkErrorKind extends ffi.Union {
|
|
external wire_cst_LiquidSdkError_Generic Generic;
|
|
}
|
|
|
|
final class wire_cst_liquid_sdk_error extends ffi.Struct {
|
|
@ffi.Int32()
|
|
external int tag;
|
|
|
|
external LiquidSdkErrorKind kind;
|
|
}
|
|
|
|
final class wire_cst_ln_invoice extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> bolt11;
|
|
|
|
@ffi.Int32()
|
|
external int network;
|
|
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> payee_pubkey;
|
|
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> payment_hash;
|
|
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> description;
|
|
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> description_hash;
|
|
|
|
external ffi.Pointer<ffi.Uint64> amount_msat;
|
|
|
|
@ffi.Uint64()
|
|
external int timestamp;
|
|
|
|
@ffi.Uint64()
|
|
external int expiry;
|
|
|
|
external ffi.Pointer<wire_cst_list_route_hint> routing_hints;
|
|
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> payment_secret;
|
|
|
|
@ffi.Uint64()
|
|
external int min_final_cltv_expiry_delta;
|
|
}
|
|
|
|
final class wire_cst_log_entry extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> line;
|
|
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> level;
|
|
}
|
|
|
|
final class wire_cst_PaymentError_Generic extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> err;
|
|
}
|
|
|
|
final class wire_cst_PaymentError_InvalidInvoice extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> err;
|
|
}
|
|
|
|
final class wire_cst_PaymentError_LwkError extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> err;
|
|
}
|
|
|
|
final class wire_cst_PaymentError_ReceiveError extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> err;
|
|
}
|
|
|
|
final class wire_cst_PaymentError_Refunded extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> err;
|
|
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> refund_tx_id;
|
|
}
|
|
|
|
final class wire_cst_PaymentError_SendError extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> err;
|
|
}
|
|
|
|
final class wire_cst_PaymentError_SignerError extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> err;
|
|
}
|
|
|
|
final class PaymentErrorKind extends ffi.Union {
|
|
external wire_cst_PaymentError_Generic Generic;
|
|
|
|
external wire_cst_PaymentError_InvalidInvoice InvalidInvoice;
|
|
|
|
external wire_cst_PaymentError_LwkError LwkError;
|
|
|
|
external wire_cst_PaymentError_ReceiveError ReceiveError;
|
|
|
|
external wire_cst_PaymentError_Refunded Refunded;
|
|
|
|
external wire_cst_PaymentError_SendError SendError;
|
|
|
|
external wire_cst_PaymentError_SignerError SignerError;
|
|
}
|
|
|
|
final class wire_cst_payment_error extends ffi.Struct {
|
|
@ffi.Int32()
|
|
external int tag;
|
|
|
|
external PaymentErrorKind kind;
|
|
}
|
|
|
|
final class wire_cst_receive_payment_response extends ffi.Struct {
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> id;
|
|
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> invoice;
|
|
}
|
|
|
|
final class wire_cst_send_payment_response extends ffi.Struct {
|
|
external wire_cst_payment payment;
|
|
}
|
|
|
|
const double LIQUID_CLAIM_TX_FEERATE_MSAT = 100.0;
|