Skip to content

Commit e157be9

Browse files
committed
feat: update remaining Dart generated code and FFI bindings
- Update unified_qr API bindings - Regenerate error utilities with enhanced error handling - Update main frb_generated bindings with all API changes - Update platform-specific IO bindings
1 parent 5721f7c commit e157be9

File tree

5 files changed

+2915
-1171
lines changed

5 files changed

+2915
-1171
lines changed

lib/src/generated/api/unified_qr.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,22 @@ class FfiUnifiedQrPayment {
3838
///
3939
/// [BOLT 11]: https://github.com/lightning/bolts/blob/master/11-payment-encoding.md
4040
/// [BOLT 12]: https://github.com/lightning/bolts/blob/master/12-offer-encoding.md
41-
Future<String> receive(
41+
Future<String> receiveUnsafe(
4242
{required BigInt amountSats,
4343
required String message,
4444
required int expirySec}) =>
45-
core.instance.api.crateApiUnifiedQrFfiUnifiedQrPaymentReceive(
45+
core.instance.api.crateApiUnifiedQrFfiUnifiedQrPaymentReceiveUnsafe(
4646
that: this,
4747
amountSats: amountSats,
4848
message: message,
4949
expirySec: expirySec);
5050

5151
///Sends a payment given a BIP 21 URI.
5252
///This method parses the provided URI string and attempts to send the payment. If the URI has an offer and or invoice, it will try to pay the offer first followed by the invoice. If they both fail, the on-chain payment will be paid.
53-
Future<QrPaymentResult> send({required String uriStr}) => core.instance.api
54-
.crateApiUnifiedQrFfiUnifiedQrPaymentSend(that: this, uriStr: uriStr);
53+
Future<QrPaymentResult> sendUnsafe(
54+
{required String uriStr, RouteParametersConfig? routeParameters}) =>
55+
core.instance.api.crateApiUnifiedQrFfiUnifiedQrPaymentSendUnsafe(
56+
that: this, uriStr: uriStr, routeParameters: routeParameters);
5557

5658
@override
5759
int get hashCode => opaque.hashCode;

0 commit comments

Comments
 (0)