Skip to content

Commit

Permalink
fix: bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
hydra-yse committed Jan 8, 2025
1 parent 266f834 commit 1fc334f
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 64 deletions.
21 changes: 11 additions & 10 deletions lib/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions lib/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ bip39 = "2.0.0"
boltz-client = { git = "https://github.com/dangeross/boltz-rust", rev = "8f64af8d3c7433d19fc8a99887beb341b150c38e" }
chrono = "0.4"
env_logger = "0.11"
flutter_rust_bridge = { version = "=2.4.0", features = [
"chrono",
], optional = true }
flutter_rust_bridge = { version = "=2.7.0", features = ["chrono"], optional = true }
# We need at least lightning v0.0.125 for the Bolt12 structs. The lightning version from sdk-common is too old (v0.0.118, matching vls-core).
lightning = "0.0.125"
log = { workspace = true }
Expand Down
8 changes: 4 additions & 4 deletions lib/core/src/frb_generated.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.4.0.
// @generated by `flutter_rust_bridge`@ 2.7.0.

#![allow(
non_camel_case_types,
Expand Down Expand Up @@ -38,7 +38,7 @@ flutter_rust_bridge::frb_generated_boilerplate!(
default_rust_opaque = RustOpaqueNom,
default_rust_auto_opaque = RustAutoOpaqueNom,
);
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.4.0";
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.7.0";
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = -2032324171;

// Section: executor
Expand Down Expand Up @@ -1572,7 +1572,7 @@ fn wire__crate__bindings__BindingLiquidSdk_sync_impl(
) {
FLUTTER_RUST_BRIDGE_HANDLER.wrap_async::<flutter_rust_bridge::for_generated::DcoCodec, _, _, _>(
flutter_rust_bridge::for_generated::TaskInfo {
debug_name: "BindingLiquidSdk_sync",
debug_name: "BindingLiquidSdk_sync(dart_style=sync)",
port: Some(port_),
mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
},
Expand Down Expand Up @@ -8380,7 +8380,7 @@ impl SseEncode for usize {
#[cfg(not(target_family = "wasm"))]
mod io {
// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.4.0.
// @generated by `flutter_rust_bridge`@ 2.7.0.

// Section: imports

Expand Down
2 changes: 1 addition & 1 deletion packages/dart/lib/src/bindings.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.4.0.
// @generated by `flutter_rust_bridge`@ 2.7.0.

// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import

Expand Down
2 changes: 1 addition & 1 deletion packages/dart/lib/src/bindings/duplicates.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.4.0.
// @generated by `flutter_rust_bridge`@ 2.7.0.

// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import

Expand Down
2 changes: 1 addition & 1 deletion packages/dart/lib/src/error.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.4.0.
// @generated by `flutter_rust_bridge`@ 2.7.0.

// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import

Expand Down
44 changes: 3 additions & 41 deletions packages/dart/lib/src/frb_generated.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.4.0.
// @generated by `flutter_rust_bridge`@ 2.7.0.

// 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

Expand Down Expand Up @@ -62,7 +62,7 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
ExternalLibraryLoaderConfig get defaultExternalLibraryLoaderConfig => kDefaultExternalLibraryLoaderConfig;

@override
String get codegenVersion => '2.4.0';
String get codegenVersion => '2.7.0';

@override
int get rustContentHash => -2032324171;
Expand Down Expand Up @@ -1055,7 +1055,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
}

TaskConstMeta get kCrateBindingsBindingLiquidSdkSyncConstMeta => const TaskConstMeta(
debugName: "BindingLiquidSdk_sync",
debugName: "BindingLiquidSdk_sync(dart_style=sync)",
argNames: ["that"],
);

Expand Down Expand Up @@ -5429,8 +5429,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
case AesSuccessActionDataResult_ErrorStatus(reason: final reason):
sse_encode_i_32(1, serializer);
sse_encode_String(reason, serializer);
default:
throw UnimplementedError('');
}
}

Expand All @@ -5445,8 +5443,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
sse_encode_i_32(1, serializer);
sse_encode_String(iso4217Code, serializer);
sse_encode_u_64(fractionalAmount, serializer);
default:
throw UnimplementedError('');
}
}

Expand Down Expand Up @@ -5896,8 +5892,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
case GetPaymentRequest_Lightning(paymentHash: final paymentHash):
sse_encode_i_32(0, serializer);
sse_encode_String(paymentHash, serializer);
default:
throw UnimplementedError('');
}
}

Expand Down Expand Up @@ -5947,8 +5941,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
case InputType_LnUrlError(data: final data):
sse_encode_i_32(9, serializer);
sse_encode_box_autoadd_ln_url_error_data(data, serializer);
default:
throw UnimplementedError('');
}
}

Expand Down Expand Up @@ -6058,8 +6050,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
case ListPaymentDetails_Bitcoin(address: final address):
sse_encode_i_32(1, serializer);
sse_encode_String(address, serializer);
default:
throw UnimplementedError('');
}
}

Expand Down Expand Up @@ -6185,8 +6175,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
case LnUrlAuthError_ServiceConnectivity(err: final err):
sse_encode_i_32(2, serializer);
sse_encode_String(err, serializer);
default:
throw UnimplementedError('');
}
}

Expand All @@ -6208,8 +6196,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
case LnUrlCallbackStatus_ErrorStatus(data: final data):
sse_encode_i_32(1, serializer);
sse_encode_box_autoadd_ln_url_error_data(data, serializer);
default:
throw UnimplementedError('');
}
}

Expand Down Expand Up @@ -6270,8 +6256,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
case LnUrlPayError_ServiceConnectivity(err: final err):
sse_encode_i_32(11, serializer);
sse_encode_String(err, serializer);
default:
throw UnimplementedError('');
}
}

Expand Down Expand Up @@ -6315,8 +6299,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
case LnUrlPayResult_PayError(data: final data):
sse_encode_i_32(2, serializer);
sse_encode_box_autoadd_ln_url_pay_error_data(data, serializer);
default:
throw UnimplementedError('');
}
}

Expand Down Expand Up @@ -6349,8 +6331,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
case LnUrlWithdrawError_ServiceConnectivity(err: final err):
sse_encode_i_32(5, serializer);
sse_encode_String(err, serializer);
default:
throw UnimplementedError('');
}
}

Expand Down Expand Up @@ -6385,8 +6365,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
case LnUrlWithdrawResult_ErrorStatus(data: final data):
sse_encode_i_32(2, serializer);
sse_encode_box_autoadd_ln_url_error_data(data, serializer);
default:
throw UnimplementedError('');
}
}

Expand Down Expand Up @@ -6618,8 +6596,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
sse_encode_u_64(amountSat, serializer);
case PayAmount_Drain():
sse_encode_i_32(1, serializer);
default:
throw UnimplementedError('');
}
}

Expand Down Expand Up @@ -6685,8 +6661,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
sse_encode_String(description, serializer);
sse_encode_opt_String(refundTxId, serializer);
sse_encode_opt_box_autoadd_u_64(refundTxAmountSat, serializer);
default:
throw UnimplementedError('');
}
}

Expand Down Expand Up @@ -6747,8 +6721,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
case PaymentError_SignerError(err: final err):
sse_encode_i_32(20, serializer);
sse_encode_String(err, serializer);
default:
throw UnimplementedError('');
}
}

Expand Down Expand Up @@ -6958,8 +6930,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
case SdkError_ServiceConnectivity(err: final err):
sse_encode_i_32(3, serializer);
sse_encode_String(err, serializer);
default:
throw UnimplementedError('');
}
}

Expand Down Expand Up @@ -6990,8 +6960,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
sse_encode_box_autoadd_payment(details, serializer);
case SdkEvent_Synced():
sse_encode_i_32(7, serializer);
default:
throw UnimplementedError('');
}
}

Expand All @@ -7009,8 +6977,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
sse_encode_i_32(2, serializer);
sse_encode_box_autoadd_ln_offer(offer, serializer);
sse_encode_u_64(receiverAmountSat, serializer);
default:
throw UnimplementedError('');
}
}

Expand Down Expand Up @@ -7051,8 +7017,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
case SuccessAction_Url(data: final data):
sse_encode_i_32(2, serializer);
sse_encode_box_autoadd_url_success_action_data(data, serializer);
default:
throw UnimplementedError('');
}
}

Expand All @@ -7069,8 +7033,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
case SuccessActionProcessed_Url(data: final data):
sse_encode_i_32(2, serializer);
sse_encode_box_autoadd_url_success_action_data(data, serializer);
default:
throw UnimplementedError('');
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/dart/lib/src/frb_generated.io.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.4.0.
// @generated by `flutter_rust_bridge`@ 2.7.0.

// 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

Expand Down
2 changes: 1 addition & 1 deletion packages/dart/lib/src/model.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.4.0.
// @generated by `flutter_rust_bridge`@ 2.7.0.

// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import

Expand Down
2 changes: 1 addition & 1 deletion packages/dart/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dev_dependencies:
test: ^1.25.5
dependencies:
ffi: ^2.1.2
flutter_rust_bridge: 2.4.0
flutter_rust_bridge: 2.7.0
freezed_annotation: ^2.4.1
logging: ^1.2.0
meta: ^1.12.0 # meta is pinned to version 1.12.0 by integration_test from the flutter SDK.

0 comments on commit 1fc334f

Please sign in to comment.