From d1b77e2b1f261b4eec1fe10ec6ecd2eaa4a5435f Mon Sep 17 00:00:00 2001 From: ethicnology Date: Tue, 14 Jan 2025 11:36:03 -0500 Subject: [PATCH] chore: ./codegen.sh --- lib/boltz.dart | 2 +- lib/src/generated/frb_generated.dart | 2 +- lib/src/generated/frb_generated.io.dart | 10 +++++++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/boltz.dart b/lib/boltz.dart index bdc0812..ced12aa 100644 --- a/lib/boltz.dart +++ b/lib/boltz.dart @@ -1,4 +1,4 @@ -library boltz; +library; export './src/generated/frb_generated.dart'; export './src/generated/api/btc_ln.dart'; diff --git a/lib/src/generated/frb_generated.dart b/lib/src/generated/frb_generated.dart index d069fc2..1a00cd9 100644 --- a/lib/src/generated/frb_generated.dart +++ b/lib/src/generated/frb_generated.dart @@ -66,7 +66,7 @@ class BoltzCore static const kDefaultExternalLibraryLoaderConfig = ExternalLibraryLoaderConfig( - stem: 'boltz_dart', + stem: 'boltz', ioDirectory: 'rust/target/release/', webPrefix: 'pkg/', ); diff --git a/lib/src/generated/frb_generated.io.dart b/lib/src/generated/frb_generated.io.dart index 155aaad..f4db8dc 100644 --- a/lib/src/generated/frb_generated.io.dart +++ b/lib/src/generated/frb_generated.io.dart @@ -2330,10 +2330,14 @@ class BoltzCoreWire implements BaseWire { _dummy_method_to_enforce_bundlingPtr.asFunction(); } -typedef DartPostCObjectFnType = ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(DartPort port_id, ffi.Pointer message)>>; typedef DartPort = ffi.Int64; +typedef DartDartPort = int; +typedef DartPostCObjectFnTypeFunction = ffi.Bool Function( + DartPort port_id, ffi.Pointer message); +typedef DartDartPostCObjectFnTypeFunction = bool Function( + DartDartPort port_id, ffi.Pointer message); +typedef DartPostCObjectFnType + = ffi.Pointer>; final class wire_cst_list_prim_u_8_strict extends ffi.Struct { external ffi.Pointer ptr;