mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-23 00:44:26 +01:00
Bump flutter_rust_bridge to 2.0.0-dev.38 (#304)
* Generate Dart bindings * flutter_rust_bridge has relative path issues with this new approach introduced in 2.0.0-dev.38, we'll be using the default rust_output path until it's addressed.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// This file is automatically generated, so please do not edit it.
|
||||
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36.
|
||||
// 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
|
||||
|
||||
@@ -52,18 +52,27 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
BackupRequest dco_decode_backup_request(dynamic raw);
|
||||
|
||||
@protected
|
||||
BindingEventListener dco_decode_binding_event_listener(dynamic raw);
|
||||
|
||||
@protected
|
||||
bool dco_decode_bool(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
|
||||
GetInfoRequest dco_decode_box_autoadd_get_info_request(dynamic raw);
|
||||
|
||||
@protected
|
||||
LiquidSdkEvent dco_decode_box_autoadd_liquid_sdk_event(dynamic raw);
|
||||
|
||||
@protected
|
||||
Payment dco_decode_box_autoadd_payment(dynamic raw);
|
||||
|
||||
@@ -216,18 +225,27 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
BackupRequest sse_decode_backup_request(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
BindingEventListener sse_decode_binding_event_listener(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
bool sse_decode_bool(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
|
||||
GetInfoRequest sse_decode_box_autoadd_get_info_request(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
LiquidSdkEvent sse_decode_box_autoadd_liquid_sdk_event(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
Payment sse_decode_box_autoadd_payment(SseDeserializer deserializer);
|
||||
|
||||
@@ -387,6 +405,15 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
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
|
||||
@@ -403,6 +430,14 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
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
|
||||
@@ -528,12 +563,24 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
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) {
|
||||
@@ -546,6 +593,12 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
cst_api_fill_to_wire_get_info_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);
|
||||
@@ -923,18 +976,27 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@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_bool(bool 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_get_info_request(GetInfoRequest 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);
|
||||
|
||||
@@ -1313,6 +1375,28 @@ class RustLibWire implements BaseWire {
|
||||
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,
|
||||
@@ -1415,6 +1499,16 @@ class RustLibWire implements BaseWire {
|
||||
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();
|
||||
}
|
||||
@@ -1435,6 +1529,16 @@ class RustLibWire implements BaseWire {
|
||||
late final _cst_new_box_autoadd_get_info_request = _cst_new_box_autoadd_get_info_requestPtr
|
||||
.asFunction<ffi.Pointer<wire_cst_get_info_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();
|
||||
}
|
||||
@@ -1626,24 +1730,8 @@ final class wire_cst_prepare_send_response extends ffi.Struct {
|
||||
external int fees_sat;
|
||||
}
|
||||
|
||||
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_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 {
|
||||
@@ -1673,6 +1761,71 @@ final class wire_cst_payment extends ffi.Struct {
|
||||
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;
|
||||
|
||||
@@ -1746,51 +1899,6 @@ final class wire_cst_liquid_sdk_error extends ffi.Struct {
|
||||
external LiquidSdkErrorKind kind;
|
||||
}
|
||||
|
||||
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_ln_invoice extends ffi.Struct {
|
||||
external ffi.Pointer<wire_cst_list_prim_u_8_strict> bolt11;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user